Added perguntas.
[simdecs_seam.git] / SimDeCS / WebContent / seguro / admin / rede / PerguntaNodo.xhtml
CommitLineData
79f1af86
MS
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:rich="http://richfaces.org/rich"
9 template="/layout/template.xhtml">
10
11<ui:define name="body">
12
13 <rich:panel>
3f4ddbae 14 <f:facet name="header">Pergunta nodo</f:facet>
79f1af86
MS
15
16
17 <s:decorate id="nodoId" template="/layout/display.xhtml">
18 <ui:define name="label">Nodo id</ui:define>
19 <h:outputText value="#{perguntaNodoHome.instance.nodo.id}"/>
20 </s:decorate>
21
22 <s:decorate id="texto" template="/layout/display.xhtml">
23 <ui:define name="label">Texto</ui:define>
24 <h:outputText value="#{perguntaNodoHome.instance.texto}"/>
25 </s:decorate>
3f4ddbae 26
79f1af86 27 <div style="clear:both"/>
3f4ddbae 28<div class="actionButtons">
79f1af86
MS
29
30 <s:button view="/seguro/admin/rede/PerguntaNodoEdit.xhtml"
31 id="edit"
3f4ddbae
MS
32 value="Editar"/>
33 <s:button id="perguntaButton"
34 value="Ver perguntas"
35 view="/seguro/admin/rede/PerguntaNodoList.xhtml"/>
36 </div>
37 </rich:panel>
79f1af86 38
3f4ddbae
MS
39<rich:panel>
40 <f:facet name="header">
41 <h:outputText value="#{perguntaHome.instance.respostas.size()} Respostas(s)"></h:outputText>
42 </f:facet>
43
44 <rich:dataTable value="#{respostaNodoList.resultList}" var="_respostaNodo">
45 <f:facet name="header">
46 <rich:columnGroup>
47 <rich:column>
48 <h:outputText value="Id"/>
49 </rich:column>
50 <rich:column>
51 <h:outputText value="Texto"/>
52 </rich:column>
53 <rich:column>
54 <h:outputText value="Percentual"/>
55 </rich:column>
56 <rich:column>
57 <h:outputText value="Ação"/>
58 </rich:column>
59 </rich:columnGroup>
60 </f:facet>
61 <rich:column rendered="#{_respostaNodo.pergunta.id == perguntaNodoHome.instance.id}">
62 <h:outputText value="#{_respostaNodo.id}"/>
63 </rich:column>
64 <rich:column rendered="#{_respostaNodo.pergunta.id == perguntaNodoHome.instance.id}">
65 <h:outputText value="#{_respostaNodo.texto}"/>
66 </rich:column>
67 <rich:column rendered="#{_respostaNodo.pergunta.id == perguntaNodoHome.instance.id}">
68 <h:outputText value="#{_respostaNodo.percentual}"/>
69 </rich:column>
70 <rich:column rendered="#{_respostaNodo.pergunta.id == perguntaNodoHome.instance.id}">
71 <s:link value="Ver" view="/seguro/admin/rede/RespostaNodo.xhtml">
72 <f:param name="respostaNodoId" value="${_respostaNodo.id}"/>
73 </s:link>
74 #{' '}
75 <s:link value="Editar" view="/seguro/admin/rede/RespostaNodoEdit.xhtml">
76 <f:param name="respostaNodoId" value="${_respostaNodo.id}"/>
77 </s:link>
78 </rich:column>
79 </rich:dataTable>
79f1af86 80
3f4ddbae
MS
81 <s:div styleClass="actionButtons" rendered="#{empty from}">
82 <s:button view="/seguro/admin/rede/RespostaNodoEdit.xhtml"
83 id="create"
84 propagation="none"
85 value="Criar resposta">
86 <f:param name="respostaNodoId"/>
87 <f:param name="nodoId"/>
88 </s:button>
89 <s:button id="respostaButton"
90 value="Ver respostas"
91 view="/seguro/admin/rede/RespostaNodoList.xhtml"/>
92 </s:div>
93 </rich:panel>
94
95
79f1af86
MS
96
97</ui:define>
98
99</ui:composition>