Commit | Line | Data |
---|---|---|
8abf21a0 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 | <h:form id="privilegioSearch" styleClass="edit"> | |
14 | ||
15 | <rich:simpleTogglePanel label="Pesquisar" switchType="ajax"> | |
16 | ||
17 | <s:decorate template="/layout/display.xhtml"> | |
18 | <ui:define name="label">Nome</ui:define> | |
19 | <h:inputText id="nome" size="100" value="#{privilegioList.privilegio.nome}"/> | |
20 | </s:decorate> | |
21 | ||
22 | <s:decorate template="/layout/display.xhtml"> | |
23 | <ui:define name="label">Token</ui:define> | |
24 | <h:inputText id="token" size="100" value="#{privilegioList.privilegio.token}"/> | |
25 | </s:decorate> | |
26 | ||
27 | <s:decorate template="/layout/display.xhtml"> | |
28 | <ui:define name="label">Opções de Pesquisa</ui:define> | |
29 | <h:selectOneRadio id="logic" value="#{privilegioList.restrictionLogicOperator}" styleClass="radio"> | |
30 | <f:selectItem itemLabel="Com todas as palavras" itemValue="and"/> | |
31 | <f:selectItem itemLabel="Com qualquer uma das palavras" itemValue="or"/> | |
32 | </h:selectOneRadio> | |
33 | </s:decorate> | |
34 | ||
35 | </rich:simpleTogglePanel> | |
36 | ||
37 | <div class="actionButtons"> | |
38 | <h:commandButton id="search" value="Pesquisar" action="/seguro/admin/privilegio/PrivilegioList.xhtml"/> | |
39 | <s:button id="reset" value="Limpar" includePageParams="false"/> | |
40 | </div> | |
41 | ||
42 | </h:form> | |
43 | ||
44 | <rich:panel> | |
45 | <f:facet name="header">Resultados da Pesquisa(#{empty privilegioList.resultList ? 0 : (privilegioList.paginated ? privilegioList.resultCount : privilegioList.resultList.size)})</f:facet> | |
46 | <div class="results" id="privilegioList"> | |
47 | ||
48 | <h:outputText value="A pesquisa não encontrou resultados! " | |
49 | rendered="#{empty privilegioList.resultList}"/> | |
50 | ||
51 | <rich:dataTable id="privilegioList" | |
52 | var="_privilegio" | |
53 | value="#{privilegioList.resultList}" | |
54 | rendered="#{not empty privilegioList.resultList}"> | |
55 | <h:column> | |
56 | <f:facet name="header"> | |
57 | <ui:include src="/layout/sort.xhtml"> | |
58 | <ui:param name="entityList" value="#{privilegioList}"/> | |
59 | <ui:param name="propertyLabel" value="Id"/> | |
60 | <ui:param name="propertyPath" value="privilegio.id"/> | |
61 | </ui:include> | |
62 | </f:facet> | |
63 | <h:outputText value="#{_privilegio.id}"/> | |
64 | </h:column> | |
65 | <h:column> | |
66 | <f:facet name="header"> | |
67 | <ui:include src="/layout/sort.xhtml"> | |
68 | <ui:param name="entityList" value="#{privilegioList}"/> | |
69 | <ui:param name="propertyLabel" value="Nome"/> | |
70 | <ui:param name="propertyPath" value="privilegio.nome"/> | |
71 | </ui:include> | |
72 | </f:facet> | |
73 | <h:outputText value="#{_privilegio.nome}"/> | |
74 | </h:column> | |
75 | <h:column> | |
76 | <f:facet name="header"> | |
77 | <ui:include src="/layout/sort.xhtml"> | |
78 | <ui:param name="entityList" value="#{privilegioList}"/> | |
79 | <ui:param name="propertyLabel" value="Token"/> | |
80 | <ui:param name="propertyPath" value="privilegio.token"/> | |
81 | </ui:include> | |
82 | </f:facet> | |
83 | <h:outputText value="#{_privilegio.token}"/> | |
84 | </h:column> | |
85 | <rich:column styleClass="action"> | |
86 | <f:facet name="header">Action</f:facet> | |
87 | <s:link view="/seguro/admin/privilegio/#{empty from ? 'Privilegio' : from}.xhtml" | |
88 | value="#{empty from ? 'Ver' : 'Selecionar'}" | |
89 | propagation="#{empty from ? 'none' : 'default'}" | |
90 | id="privilegioViewId"> | |
91 | <f:param name="privilegioId" | |
92 | value="#{_privilegio.id}"/> | |
93 | </s:link> | |
94 | #{' '} | |
95 | <s:link view="/seguro/admin/privilegio/PrivilegioEdit.xhtml" | |
96 | value="Editar" | |
97 | propagation="none" | |
98 | id="privilegioEdit" | |
99 | rendered="#{empty from}"> | |
100 | <f:param name="privilegioId" | |
101 | value="#{_privilegio.id}"/> | |
102 | </s:link> | |
103 | </rich:column> | |
104 | </rich:dataTable> | |
105 | ||
106 | </div> | |
107 | </rich:panel> | |
108 | ||
109 | <div class="tableControl"> | |
110 | ||
111 | <s:link view="/seguro/admin/privilegio/PrivilegioList.xhtml" | |
112 | rendered="#{privilegioList.previousExists}" | |
113 | value="#{messages.left}#{messages.left} Primeira Página" | |
114 | id="firstPage"> | |
115 | <f:param name="firstResult" value="0"/> | |
116 | </s:link> | |
117 | ||
118 | <s:link view="/seguro/admin/privilegio/PrivilegioList.xhtml" | |
119 | rendered="#{privilegioList.previousExists}" | |
120 | value="#{messages.left} Página Anterior" | |
121 | id="previousPage"> | |
122 | <f:param name="firstResult" | |
123 | value="#{privilegioList.previousFirstResult}"/> | |
124 | </s:link> | |
125 | ||
126 | <s:link view="/seguro/admin/privilegio/PrivilegioList.xhtml" | |
127 | rendered="#{privilegioList.nextExists}" | |
128 | value="Próxima Página #{messages.right}" | |
129 | id="nextPage"> | |
130 | <f:param name="firstResult" | |
131 | value="#{privilegioList.nextFirstResult}"/> | |
132 | </s:link> | |
133 | ||
134 | <s:link view="/seguro/admin/privilegio/PrivilegioList.xhtml" | |
135 | rendered="#{privilegioList.nextExists}" | |
136 | value="Última Página #{messages.right}#{messages.right}" | |
137 | id="lastPage"> | |
138 | <f:param name="firstResult" | |
139 | value="#{privilegioList.lastFirstResult}"/> | |
140 | </s:link> | |
141 | ||
142 | </div> | |
143 | ||
144 | <s:div styleClass="actionButtons" rendered="#{empty from}"> | |
145 | <s:button view="/seguro/admin/privilegio/PrivilegioEdit.xhtml" | |
146 | id="create" | |
147 | propagation="none" | |
148 | value="Novo Privilégio"> | |
149 | <f:param name="privilegioId"/> | |
150 | </s:button> | |
151 | </s:div> | |
152 | ||
153 | </ui:define> | |
154 | ||
155 | </ui:composition> |