Advertisement
Guest User

Untitled

a guest
Jan 6th, 2017
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 29.48 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3.                 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
  4.                 xmlns:h="http://xmlns.jcp.org/jsf/html"
  5.                 xmlns:p="http://primefaces.org/ui" xmlns:f="http://xmlns.jcp.org/jsf/core"
  6.  
  7.                 xmlns:s="http://java.sun.com/jsp/jstl/core"
  8.                 template="layouts/standard.xhtml">
  9.  
  10.  
  11.     <script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
  12.  
  13.     <ui:define name="header"><h:outputText value="#{msg['text.fikirOlustur']}"></h:outputText></ui:define>
  14.     <ui:define name="content">
  15.  
  16.  
  17.         <h:form prependId="false" id="addIdeaForm" cache="true">
  18.  
  19.             <h:panelGrid id="addIdeaPanel" cache="true">
  20.  
  21.                 <p:tab id="firstPage" cache="true">
  22.                     <br/>
  23.                     <h:outputLabel value="1. #{msg['question.1']}"/>
  24.                     <i id="help1" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
  25.                        data-content="Buraya bakarlar!"/>
  26.  
  27.                     <h:panelGrid columns="2" columnClasses="panel-col" disabled="#{ideaBean.createdIdea}">
  28.                         <p:autoComplete id="autocomp" value="#{ideaBean.owners}" var="user" multiple="true"
  29.                                         completeMethod="#{ideaBean.completeUser}" required="true"
  30.                                         requiredMessage="Bu alan boş bırakılamaz."
  31.                                         itemLabel="#{user.fullName} (#{user.email}) " itemValue="#{user}"
  32.                                         converter="userConvertertwo" disabled="#{ideaBean.createdIdea}"
  33.                                         forceSelection="true" styleClass="ui-autocomplete-multiple-container"
  34.                                         dropdownMode="true" scrollHeight="250">
  35.                             <div onclick="openNewExternalMemberWindow('#{user.employeeNumber}');">
  36.                                 <p:column style="text-align:center">
  37.                                     <p:graphicImage value="//tr-is/pers_info/foto/#{user.employeeNumber}.jpg"
  38.                                                     rendered="#{user.employeeNumber != null}" width="100px"/>
  39.                                     <p:graphicImage library="images" name="anonymousUserPhoto.png" height="20%"
  40.                                                     rendered="#{user.employeeNumber == null}"/>
  41.                                 </p:column>
  42.                                 <p:column>
  43.                                     <br/>
  44.                                     <div class="media-body">
  45.                                         <h4 class="media-heading">#{user.fullName}</h4>
  46.                                         <p>#{user.email}</p>
  47.                                         <p>#{user.title.split(' - ')[1]}</p>
  48.                                         <p>#{user.department}</p>
  49.                                     </div>
  50.                                 </p:column>
  51.                             </div>
  52.                         </p:autoComplete>
  53.                     </h:panelGrid>
  54.                     <p:message for="autocomp" display="text"/>
  55.  
  56.                     <br/>
  57.                     <h:outputLabel value="2. #{msg['question.2']}"/>
  58.                     <h:panelGrid id="volkan" columns="1" columnClasses="panel-col" style="margin-left: 9px">
  59.                         <h:panelGrid id="reasonFikirGrid" columns="1" columnClasses="panel-col">
  60.                             <p:selectBooleanCheckbox id="fikirCheckbox" itemLabel="#{msg['text.fikir']}"
  61.                                                      styleClass="labelNormal"
  62.                                                      value="#{true}" disabled="true"/>
  63.                         </h:panelGrid>
  64.  
  65.  
  66.                         <h:panelGrid id="reasonPatentGrid" columns="2" style="width:400px">
  67.                             <p:selectBooleanCheckbox id="patentCheckbox" itemLabel="#{msg['text.patent']}"
  68.                                                      styleClass="labelNormal"
  69.                                                      value="#{ideaBean.newIdea.answer.patentReason}"
  70.                                                      disabled="#{ideaBean.createdIdea}">
  71.                                 <p:ajax event="change" update="patentSelectMenu"/>
  72.                             </p:selectBooleanCheckbox>
  73.  
  74.                             <h:panelGrid id="patentSelectMenu" columns="1" style="width:250px">
  75.                                 <h:selectOneMenu value="#{ideaBean.newIdea.answer.answerPatent}"
  76.                                                  styleClass="form-control"
  77.                                                  rendered="#{ideaBean.newIdea.answer.patentReason}"
  78.                                                  disabled="#{ideaBean.createdIdea}">
  79.                                     <f:selectItem itemLabel="#{msg['text.choose']}" itemValue=""
  80.                                                   noSelectionOption="true"/>
  81.                                     <f:selectItems
  82.                                             value="#{ideaBean.influenceAreas}"/>
  83.                                 </h:selectOneMenu>
  84.                             </h:panelGrid>
  85.                         </h:panelGrid>
  86.  
  87.                         <h:panelGrid id="reasonTesvikGrid" columns="2" style="width:400px">
  88.                             <p:selectBooleanCheckbox id="tesvikCheckbox" itemLabel="#{msg['text.tesvik']}"
  89.                                                      styleClass="labelNormal"
  90.                                                      value="#{ideaBean.newIdea.answer.tesvikReason}"
  91.                                                      disabled="#{ideaBean.createdIdea}">
  92.                                 <p:ajax event="change" update="tesvikSelectMenu"/>
  93.                             </p:selectBooleanCheckbox>
  94.  
  95.                             <h:panelGrid id="tesvikSelectMenu" columns="1" style="width:250px">
  96.                                 <h:selectOneMenu value="#{ideaBean.newIdea.answer.answerTesvik}"
  97.                                                  styleClass="form-control"
  98.                                                  rendered="#{ideaBean.newIdea.answer.tesvikReason}"
  99.                                                  disabled="#{ideaBean.createdIdea}">
  100.                                     <f:selectItem itemLabel="#{msg['text.choose']}" itemValue=""
  101.                                                   noSelectionOption="true"/>
  102.                                     <f:selectItem itemLabel="#{msg['text.h2020']}"
  103.                                                   itemValue="#{msg['text.h2020']}"/>
  104.                                     <f:selectItem itemLabel="#{msg['text.teydeb']}"
  105.                                                   itemValue="#{msg['text.teydeb']}"/>
  106.                                     <f:selectItem itemLabel="#{msg['text.udh']}" itemValue="#{msg['text.udh']}"/>
  107.                                     <f:selectItem itemLabel="#{msg['text.other']}" itemValue="#{msg['text.other']}"/>
  108.  
  109.                                     <f:selectItem/>
  110.                                 </h:selectOneMenu>
  111.                             </h:panelGrid>
  112.                         </h:panelGrid>
  113.  
  114.                         <h:panelGrid id="reasonMakaleGrid" columns="1" columnClasses="panel-col">
  115.                             <p:selectBooleanCheckbox id="makaleCheckbox" itemLabel="#{msg['text.article']}"
  116.                                                      styleClass="labelNormal"
  117.                                                      value="#{ideaBean.newIdea.answer.makaleReason}"
  118.                                                      disabled="#{ideaBean.createdIdea}"/>
  119.                         </h:panelGrid>
  120.                     </h:panelGrid>
  121.  
  122.                     <br/>
  123.                     <h:outputLabel value="3. #{msg['question.3']}"/>
  124.                     <i id="help4" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
  125.                        data-content="Fikrinizi en iyi şekilde özetleyecek bir başlık giriniz."/>
  126.  
  127.                     <h:panelGrid columns="2" columnClasses="panel-col">
  128.                         <h:inputText value="#{ideaBean.newIdea.title}" required="true" id="q3"
  129.                                      requiredMessage="Bu alan boş bırakılamaz."
  130.                                      readonly="#{ideaBean.createdIdea}" styleClass="form-control"/>
  131.                     </h:panelGrid>
  132.                     <p:message for="q3" display="text"/>
  133.  
  134.                     <br/>
  135.                     <h:outputLabel value="4. #{msg['question.4']}"/>
  136.                     <i id="help5" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
  137.                        data-content="Buraya bakarlar!"/>
  138.  
  139.                     <h:panelGrid columns="2" columnClasses="panel-col">
  140.                         <p:inputTextarea value="#{ideaBean.newIdea.desc}" readonly="#{ideaBean.createdIdea}"
  141.                                          required="true" style="overflow: auto" autoResize="true"
  142.                                          requiredMessage="Bu alan boş bırakılamaz."
  143.                                          styleClass="form-control" id="q4"/>
  144.  
  145.                     </h:panelGrid>
  146.                     <p:message for="q4" display="text"/>
  147.  
  148.                     <br/>
  149.                     <h:outputLabel value="5. #{msg['question.5']}"/>
  150.                     <i id="help1111" class="fa fa-lg fa-question-circle help noprint"
  151.                        title="#{msg['text.help']}" style="visibility: hidden;"></i>
  152.                     <h:panelGrid columns="2" columnClasses="panel-col" style="width: 50%">
  153.                         <h:selectOneMenu value="#{ideaBean.newIdea.answer.answerProjectTechnologyPart}"
  154.                                          requiredMessage="Bu alan boş bırakılamaz." styleClass="form-control"
  155.                                          disabled="#{ideaBean.createdIdea}" id="q5" required="true">
  156.                             <f:selectItem itemLabel="#{msg['text.choose']}" itemValue="" noSelectionOption="true"/>
  157.                             <f:selectItems value="#{ideaBean.technologyAreas}"/>
  158.                         </h:selectOneMenu>
  159.                     </h:panelGrid>
  160.                     <p:message for="q5" display="text"/>
  161.  
  162.                     <br/>
  163.                     <h:outputLabel value="6. #{msg['question.6']}"/>
  164.                     <i id="help1000" class="fa fa-lg fa-question-circle help noprint"
  165.                        title="#{msg['text.help']}" style="visibility: hidden;"></i>
  166.                     <h:panelGrid columns="2" columnClasses="panel-col" width="100%">
  167.                         <h:inputText value="#{ideaBean.newIdea.keyWords}" readonly="#{ideaBean.createdIdea}"
  168.                                      required="true" styleClass="form-control" id="q6"
  169.                                      requiredMessage="Bu alan boş bırakılamaz.">
  170.                             <f:passThroughAttribute name="placeholder" value="#{msg['placeholder.keyword']}"/>
  171.                         </h:inputText>
  172.                     </h:panelGrid>
  173.                     <p:message for="q6" display="text"/>
  174.  
  175.                     <br/>
  176.                     <h:outputLabel value="7. #{msg['question.7']}"/>
  177.                     <i id="help2222" class="fa fa-lg fa-question-circle help noprint"
  178.                        title="#{msg['text.help']}" style="visibility: hidden;"></i>
  179.                     <h:panelGrid columns="2" columnClasses="panel-col" style="width: 50%">
  180.                         <h:selectOneMenu value="#{ideaBean.newIdea.answer.answerProjectStage}" id="q7"
  181.                                          required="true"
  182.                                          styleClass="form-control" disabled="#{ideaBean.createdIdea}"
  183.                                          requiredMessage="Bu alan boş bırakılamaz.">
  184.                             <f:selectItem itemLabel="#{msg['text.choose']}" itemValue="" noSelectionOption="true"/>
  185.                             <f:selectItems value="#{ideaBean.projectStages}"/>
  186.                         </h:selectOneMenu>
  187.  
  188.  
  189.                     </h:panelGrid>
  190.                     <p:message for="q7" display="text"/>
  191.  
  192.                     <br/>
  193.  
  194.                     <p:message for="q8" display="text"/>
  195.  
  196.                     <br/>
  197.                     <h:outputLabel value="8. #{msg['question.9']}"/>
  198.                     <i id="help9" class="fa fa-lg fa-question-circle help noprint"
  199.                        title="#{msg['text.help']}"></i>
  200.  
  201.                     <h:panelGrid columns="2" columnClasses="panel-col">
  202.                         <p:inputTextarea value="#{ideaBean.newIdea.answer.answerTargetCustomer}"
  203.                                          readonly="#{ideaBean.createdIdea}" rows="6" cols="90"
  204.                                          style="overflow: auto" autoResize="true" id="q9"
  205.                                          styleClass="form-control" required="true"
  206.                                          requiredMessage="Bu alan boş bırakılamaz."/>
  207.  
  208.                     </h:panelGrid>
  209.                     <p:message for="q9" display="text"/>
  210.  
  211.                     <br/>
  212.                     <h:panelGrid columns="2" id="question15head" styleClass="noprint">
  213.                         <h:outputLabel value="9. #{msg['question.15']}" style="width: 820px"/>
  214.                     </h:panelGrid>
  215.                     <h:panelGrid columns="1" columnClasses="panel-col" styleClass="noprint">
  216.                         <h:panelGrid id="fileTable" style="width: 1000px" styleClass="datagrid">
  217.                             <table>
  218.                                 <thead>
  219.                                 <tr>
  220.                                     <th>Ad</th>
  221.                                     <th>Tür</th>
  222.                                     <th>Boyut</th>
  223.                                     <th></th>
  224.                                 </tr>
  225.                                 </thead>
  226.                                 <tbody>
  227.                                 <ui:repeat varStatus="status" value="#{ideaBean.newIdea.fileList}" var="file">
  228.                                     <tr>
  229.                                         <td>#{file.fileName}</td>
  230.                                         <td>#{file.contentType}</td>
  231.                                         <td>
  232.                                             <h:outputText value="#{file.size/1048576}">
  233.                                                 <f:convertNumber pattern="#0.00"/>
  234.                                             </h:outputText>
  235.                                             <span>MB</span>
  236.                                         </td>
  237.                                         <td>
  238.                                             <p:commandLink ajax="false" id="downloadButton"
  239.                                                            styleClass="btn btn-info"
  240.                                                            rendered="#{ideaBean.newIdea.template}">
  241.                                                 <i class="glyphicon glyphicon-save"/>
  242.                                                 <p:fileDownload value="#{ideaBean.downloadFile(status.index)}"/>
  243.                                             </p:commandLink>
  244.                                             <span/>
  245.                                             <p:commandLink id="removeButton" styleClass="btn btn-info"
  246.                                                            rendered="#{!ideaBean.createdIdea}">
  247.                                                 <i class="glyphicon glyphicon-remove"/>
  248.                                                 <p:ajax listener="#{ideaBean.removeFile(status.index)}"
  249.                                                         update="fileTable question15head"/>
  250.                                             </p:commandLink>
  251.                                         </td>
  252.                                     </tr>
  253.                                 </ui:repeat>
  254.                                 </tbody>
  255.                             </table>
  256.                             <s:if test="#{ideaBean.newIdea.fileList.size() != 0}">
  257.                                 <p:outputPanel style="float: right">
  258.                                     <p:commandLink ajax="false" id="downloadAll" styleClass="btn btn-primary">
  259.                                         <i class="glyphicon glyphicon-save"></i>
  260.                                         <span>#{msg['text.downloadAllFiles']}</span>
  261.                                         <p:fileDownload value="#{ideaBean.downloadAllFiles()}"/>
  262.                                         <f:param name="id" value="#{ideaBean.newIdea.id}"/>
  263.                                         <f:param name="page" value="ideas"/>
  264.                                     </p:commandLink>
  265.                                 </p:outputPanel>
  266.                             </s:if>
  267.                         </h:panelGrid>
  268.                         <p:fileUpload fileUploadListener="#{ideaBean.handleFileUpload}" mode="advanced"
  269.                                       dragDropSupport="true" id="uploadPanel" disabled="#{ideaBean.createdIdea}"
  270.                                       uploadLabel="#{msg['btn.upload']}" label="#{msg['btn.choose']}"
  271.                                       cancelLabel="#{msg['btn.cancel']}" sizeLimit="16793600" auto="true"
  272.                                       multiple="true" fileLimit="10" update="fileTable question15head"/>
  273.                     </h:panelGrid>
  274.  
  275.  
  276.                     <br/><br/>
  277.                     <h:outputLabel value="10.Bu fikir projelendirelebilecek bir fikir mi?"/>
  278.  
  279.  
  280.                     <br/>
  281.                     <h:selectOneRadio id="fikirorProje" required="true" value="#{ideaBean.newIdea.fikirProje}"
  282.                                       enabledClass="labelNormalRadio" disabled="#{ideaBean.createdIdea}"
  283.                                       requiredMessage="Bu alan boş bırakılamaz.">
  284.                         <f:selectItem itemValue="#{false}"
  285.                                       itemLabel="Hayır" uptade="butonThree"/>
  286.                         <f:selectItem itemValue="#{true}" itemLabel="Evet"/>
  287.                         <p:ajax event="change" update="addIdeaForm"  />
  288.                         <p:ajaxStatus onstart="PF('status').show()" onsuccess="PF('status').hide()"/>
  289.                     </h:selectOneRadio>
  290.  
  291.  
  292.                     <p:dialog widgetVar="status" draggable="false" closable="false" resizable="false" showHeader="false"
  293.                               modal="true">
  294.                         <h:graphicImage url="../resources/images/loading.gif"/>
  295.                     </p:dialog>
  296.  
  297.  
  298.                     <!-- ****************** ********************************** 2. SAYFA **************************************************** -->
  299.  
  300.                     <p:tab id="secondPage" rendered="#{ideaBean.newIdea.fikirProje}">
  301.                         <br/>
  302.                         <h:outputLabel value="11. #{msg['question.10']}"/>
  303.                         <i id="help14" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
  304.                            data-content="Proje/ürün, müşterinin hangi ihtiyacını karşılıyor veya problemini çözüyor sorusuna yanıt verilmelidir. Örneğin risk ve maliyet düşürücü, elverişli kullanım, performans artırıcı yönü ve kattığı yenilik."/>
  305.                         <h:panelGrid columns="2" columnClasses="panel-col">
  306.                             <p:inputTextarea value="#{ideaBean.newIdea.answer.answerDifferenceOnCustomer}"
  307.                                              required="true"
  308.                                              rows="6" cols="90" style="overflow: auto" autoResize="true"
  309.                                              requiredMessage="Bu alan boş bırakılamaz."
  310.                                              styleClass="form-control" readonly="#{ideaBean.createdIdea}" id="q10"/>
  311.  
  312.                             <p:message for="q10" display="text"/>
  313.                         </h:panelGrid>
  314.  
  315.                         <br/>
  316.                         <h:outputLabel value="12. #{msg['question.11']}"/>
  317.                         <i id="help10" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
  318.                            data-content="Proje/ürünün benzeri var mıdır? Rakip ürünlerin isimleri ve özellikleri nelerdir? Rakip firmalar kimdir? Rakip ürünlerin karşılaştırmalı tablosu varsa dosya olarak da yükleyebilirsiniz."/>
  319.                         <h:panelGrid columns="2" columnClasses="panel-col">
  320.                             <p:inputTextarea value="#{ideaBean.newIdea.answer.answerCompetitorAnalysis}"
  321.                                              readonly="#{ideaBean.createdIdea}" required="true"
  322.                                              requiredMessage="Bu alan boş bırakılamaz."
  323.                                              rows="6" cols="90" style="overflow: auto" autoResize="true"
  324.                                              styleClass="form-control" id="q11"/>
  325.  
  326.                             <p:message for="q11" display="text"/>
  327.                         </h:panelGrid>
  328.  
  329.                         <br/>
  330.                         <h:outputLabel value="13. #{msg['question.12']}"/>
  331.                         <i id="help11" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
  332.                            data-content="Proje/üründen sağlanacak gelir modelini belirtiniz. Örneğin gelir kullanım/abonelik ücreti, lisanslama ücreti, reklam veya ürün satış fiyatı üzerinden olabilir. Aylara/yıllara bölünmüş detaylı gelir planı varsa dosya olarak da yükleyebilirsiniz."/>
  333.                         <h:panelGrid columns="2" columnClasses="panel-col">
  334.                             <p:inputTextarea value="#{ideaBean.newIdea.answer.answerRevenueModel}"
  335.                                              readonly="#{ideaBean.createdIdea}" required="true"
  336.                                              requiredMessage="Bu alan boş bırakılamaz."
  337.                                              rows="6" cols="90" style="overflow: auto" autoResize="true"
  338.                                              styleClass="form-control" id="q12"/>
  339.  
  340.                             <p:message for="q12" display="text"/>
  341.                         </h:panelGrid>
  342.  
  343.                         <br/>
  344.                         <h:outputLabel value="14. #{msg['question.14']}"/>
  345.                         <i id="help12" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
  346.                            data-content="Proje/ürünün maliyet yapısı nedir sorusuna yanıt verilmeli ve maliyet kalemleri listelenmelidir. En fazla maliyet neden veya hangi nedenden oluşuyor? Örneğin sabit maliyetler (personel maaşı, kira, su/elektrik/ısınma), donanım ve/veya lisans almak gerekiyorsa onun maliyeti, ürün geliştirme süresince gerekli diğer maliyetler.  Aylara/yıllara bölünmüş detaylı maliyet planı varsa dosya olarak da yükleyebilirsiniz."/>
  347.                         <h:panelGrid columns="2" columnClasses="panel-col">
  348.                             <p:inputTextarea value="#{ideaBean.newIdea.answer.answerInvestmentAndSupport}"
  349.                                              readonly="#{ideaBean.createdIdea}" required="true"
  350.                                              requiredMessage="Bu alan boş bırakılamaz."
  351.                                              rows="6" cols="90" style="overflow: auto" autoResize="true"
  352.                                              styleClass="form-control" id="q13"/>
  353.  
  354.                             <p:message for="q13" display="text"/>
  355.                         </h:panelGrid>
  356.  
  357.                         <br/>
  358.                         <h:outputLabel value="15. #{msg['question.8']}"/>
  359.                         <h:panelGrid columns="2" columnClasses="panel-col" style="width: 47.5%">
  360.                             <h:panelGroup>
  361.                                 <div class="input-group">
  362.                                     <h:inputText value="#{ideaBean.newIdea.answer.answerProjectCompleteDuration}"
  363.                                                  onkeypress="return isNumberKey(event)"
  364.                                                  readonly="#{ideaBean.createdIdea}" required="true" type="number"
  365.                                                  styleClass="form-control" id="q8"
  366.                                                  requiredMessage="Bu alan boş bırakılamaz.">
  367.                                     </h:inputText>
  368.                                     <span class="input-group-addon">Adam/Ay</span>
  369.                                 </div>
  370.  
  371.                             </h:panelGroup>
  372.                         </h:panelGrid>
  373.                         <br/>
  374.                         <h:outputLabel value="16. #{msg['question.13']}"/>
  375.                         <i id="help13" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
  376.                            data-content="Buraya bakarlar!"/>
  377.                         <h:panelGrid columns="2" columnClasses="panel-col">
  378.                             <p:inputTextarea value="#{ideaBean.newIdea.answer.answerCostPlan}"
  379.                                              readonly="#{ideaBean.createdIdea}" required="true"
  380.                                              requiredMessage="Bu alan boş bırakılamaz."
  381.                                              rows="6" cols="90" style="overflow: auto" autoResize="true"
  382.                                              styleClass="form-control" id="q14"/>
  383.  
  384.                             <p:message for="q14" display="text"/>
  385.                         </h:panelGrid>
  386.  
  387.  
  388.                     </p:tab>
  389.                 </p:tab>
  390.  
  391.  
  392.                 <p:tab id="butonThree" rendered="true">
  393.                     <br/>
  394.                     <h:outputLabel value="#{msg['question.16']}"/>
  395.                     <h:panelGrid id="scopePanel" columns="2" columnClasses="panel-col">
  396.  
  397.                         <h:selectOneRadio id="scopeRadio" required="true" value="#{ideaBean.newIdea.scopeOfIdea}"
  398.                                           enabledClass="labelNormalRadio" disabled="#{ideaBean.createdIdea}"
  399.                                           requiredMessage="Bu alan boş bırakılamaz.">
  400.                             <f:selectItem itemValue="Herkes"
  401.                                           itemLabel="Herkes  "/>
  402.                             <f:selectItem itemValue="Komite Üyeleri" itemLabel="Komite Üyeleri"/>
  403.                         </h:selectOneRadio>
  404.  
  405.                     </h:panelGrid>
  406.                     <p:message for="scopeRadio" display="text"/>
  407.                     <br/>
  408.                     <h:selectBooleanCheckbox id="submitCheckx" value="#{ideaBean.newIdea.answer.answerSubmit}"
  409.                                              disabled="#{ideaBean.createdIdea}">
  410.                         <p:ajax event="change" update="sendx saveDraftx printx"/>
  411.                     </h:selectBooleanCheckbox>
  412.  
  413.                     <p:outputLabel for="submitCheckx" value="#{msg['text.agreement']}" styleClass="labelNormal"/>
  414.  
  415.  
  416.                     <br/><br/>
  417.  
  418.  
  419.                     <br/><br/>
  420.                     <p:separator/>
  421.                     <p:outputPanel>
  422.                         <p:commandButton id="printx" value="#{msg['btn.print']}" icon="fa fa-print"
  423.                                          update="addIdeaForm" ajax="false"
  424.                                          styleClass="btn btn-print noprint"
  425.                                          style="float: left; font-size: large; width: 15%">
  426.                             <f:param name="id" value="#{msg['btn.print']}"/>
  427.                             <p:printer target="addIdeaPanel"/>
  428.                         </p:commandButton>
  429.  
  430.                         <p:commandButton id="sendx" value="#{msg['btn.save']}" icon="fa fa-check-circle"
  431.                                          action="ideas.xhtml?faces-redirect=true" ajax="false"
  432.                                          disabled="#{!ideaBean.newIdea.answer.answerSubmit}"
  433.                                          actionListener="#{ideaBean.sendMailAndAddNewIdea}"
  434.                                          rendered="#{!ideaBean.createdIdea}"
  435.                                          styleClass="btn btn-success noprint"
  436.                                          style="float:right; font-size: large; width: 25%">
  437.                         </p:commandButton>
  438.  
  439.                         <p:commandButton id="saveDraftx" value="#{msg['btn.saveAsDraft']}" icon="fa fa-save"
  440.                                          action="ideas.xhtml?faces-redirect=true" ajax="false"
  441.                                          disabled="#{!ideaBean.newIdea.answer.answerSubmit}"
  442.                                          actionListener="#{ideaBean.saveIdeaAsDraft}"
  443.                                          rendered="#{!ideaBean.createdIdea}"
  444.                                          styleClass="btn btn-warning noprint"
  445.                                          style="font-size: large; float: right; width: 25%">
  446.                         </p:commandButton>
  447.                     </p:outputPanel>
  448.                 </p:tab>
  449.             </h:panelGrid>
  450.         </h:form>
  451.  
  452.  
  453.         <script>
  454.             function isNumberKey(evt) {
  455.                 var charCode = (evt.which) ? evt.which : event.keyCode;
  456.                 if (charCode > 31 &amp;&amp; (charCode &lt; 48 || charCode > 57)) return false;
  457.                 return true;
  458.             }
  459.         </script>
  460.  
  461.  
  462.     </ui:define>
  463. </ui:composition>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement