2d1eb003d263c9c0592d0972d710b7f3038ed387
[simdecs_seam.git] / SimDeCS / WebContent / seguro / admin / rede / PerguntaNodoEdit.xhtml
1 <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <ui:composition xmlns="http://www.w3.org/1999/xhtml"
4     xmlns:s="http://jboss.com/products/seam/taglib"
5     xmlns:ui="http://java.sun.com/jsf/facelets"
6     xmlns:f="http://java.sun.com/jsf/core"
7     xmlns:h="http://java.sun.com/jsf/html"
8     xmlns:a="http://richfaces.org/a4j"
9     xmlns:rich="http://richfaces.org/rich"
10     template="/layout/template.xhtml">
11
12 <ui:define name="body">
13
14     <h:form id="perguntaNodo" styleClass="edit">
15
16         <rich:panel>
17             <f:facet name="header">#{perguntaNodoHome.managed ? 'Edit' : 'Add'} Pergunta nodo</f:facet>
18
19
20
21             <s:decorate id="nodoIdField" template="/layout/edit.xhtml">
22                 <ui:define name="label">Nodo</ui:define>
23                 <h:inputText id="nodoId"              
24                           value="#{nodoHome.instance.id}">
25                 </h:inputText>
26             </s:decorate>
27
28
29             <s:decorate id="textoField" template="/layout/edit.xhtml">
30                 <ui:define name="label">Texto</ui:define>
31                 <h:inputTextarea id="texto"
32                                cols="80"
33                                rows="3"
34                               value="#{perguntaNodoHome.instance.texto}"/>
35             </s:decorate>
36
37             <div style="clear:both">
38                 <span class="required">*</span>
39                 required fields
40             </div>
41
42         </rich:panel>
43
44         <div class="actionButtons">
45
46             <h:commandButton id="save"
47                           value="Save"
48                          action="#{perguntaNodoHome.persist}"
49                        disabled="#{!perguntaNodoHome.wired}"
50                        rendered="#{!perguntaNodoHome.managed}"/>
51
52             <h:commandButton id="update"
53                           value="Save"
54                          action="#{perguntaNodoHome.update}"
55                        rendered="#{perguntaNodoHome.managed}"/>
56
57             <h:commandButton id="delete"
58                           value="Delete"
59                          action="#{perguntaNodoHome.remove}"
60                       immediate="true"
61                        rendered="#{perguntaNodoHome.managed}"/>
62
63             <s:button id="cancelEdit"
64                    value="Cancel"
65              propagation="end"
66                     view="/seguro/admin/rede/PerguntaNodo.xhtml"
67                 rendered="#{perguntaNodoHome.managed}"/>
68
69             <s:button id="cancelAdd"
70                    value="Cancel"
71              propagation="end"
72                     view="/#{empty perguntaNodoFrom ? 'seguro/admin/rede/PerguntaNodoList' : perguntaNodoFrom}.xhtml"
73                 rendered="#{!perguntaNodoHome.managed}"/>
74
75         </div>
76     </h:form>
77
78 </ui:define>
79
80 </ui:composition>