|
@@ -16,20 +16,6 @@ |
16 |
16 |
|
<ui:define name="conteudoCentro"> |
17 |
17 |
|
<p:layout> |
18 |
18 |
|
<h:form id="form"> |
19 |
|
- |
<p:layoutUnit position="west"> |
20 |
|
- |
<center> |
21 |
|
- |
<h:outputLabel value="Menu" |
22 |
|
- |
style="font-size: 25px; font-weight: bold"/> |
23 |
|
- |
<hr/> |
24 |
|
- |
<p:commandButton value="Voltar" |
25 |
|
- |
title="Voltar para a página inicial" |
26 |
|
- |
action="/projeto/listarProjetos.xhtml" |
27 |
|
- |
style="width: 99%" |
28 |
|
- |
ajax="false" |
29 |
|
- |
icon="ui-icon-arrowreturnthick-1-w" |
30 |
|
- |
iconPos="right"/> |
31 |
|
- |
</center> |
32 |
|
- |
</p:layoutUnit> |
33 |
19 |
|
<p:layoutUnit position="center"> |
34 |
20 |
|
<center> |
35 |
21 |
|
<h:outputLabel value="Colaboradores cadastrados" |
|
@@ -39,139 +25,27 @@ |
39 |
25 |
|
<p:growl showDetail="true"/> |
40 |
26 |
|
<p:panel id="panel" |
41 |
27 |
|
style="border-color: transparent"> |
42 |
|
- |
<p:dataTable value="#{conferenciaBean.conferencias}" |
|
28 |
+ |
<p:dataTable value="#{colaboradorBean.colaboradores}" |
|
29 |
+ |
paginator="true" |
|
30 |
+ |
rows="50" |
43 |
31 |
|
var="conf"> |
44 |
|
- |
<p:column headerText="Colaborador" |
45 |
|
- |
sortBy="#{conf.nome}" |
46 |
|
- |
width="85%"> |
|
32 |
+ |
<p:column headerText="Colaborador" |
|
33 |
+ |
> |
47 |
34 |
|
<h:outputText value="#{conf.nome}"/> |
|
35 |
+ |
</p:column> |
|
36 |
+ |
<p:column headerText="Email" |
|
37 |
+ |
> |
|
38 |
+ |
<h:outputText value="#{conf.email}"/> |
48 |
39 |
|
</p:column> |
49 |
|
- |
|
50 |
|
- |
<p:column style="width: 10%"> |
51 |
|
- |
<p:commandButton title="Detalhes da conferência" |
52 |
|
- |
onclick="dialogDetalhes.show();" |
53 |
|
- |
update=":form:displayDetalhes" |
54 |
|
- |
icon="ui-icon-newwin"> |
55 |
|
- |
<f:setPropertyActionListener value="#{conf}" |
56 |
|
- |
target="#{conferenciaBean.conferencia}"/> |
57 |
|
- |
</p:commandButton> |
58 |
|
- |
<p:commandButton title="Editar conferência" |
59 |
|
- |
onclick="editar.show();" |
60 |
|
- |
update=":formEdic:edicao" |
61 |
|
- |
icon="ui-icon-pencil" |
62 |
|
- |
rendered="#{colaboradorBean.administrador}"> |
63 |
|
- |
<f:setPropertyActionListener value="#{conf}" |
64 |
|
- |
target="#{conferenciaBean.conferencia}"/> |
65 |
|
- |
</p:commandButton> |
66 |
|
- |
<p:commandButton title="Excluir conferência" |
67 |
|
- |
onclick="confirmation.show();" |
68 |
|
- |
icon="ui-icon-trash" |
69 |
|
- |
rendered="#{colaboradorBean.administrador}"> |
70 |
|
- |
<f:setPropertyActionListener value="#{conf}" |
71 |
|
- |
target="#{conferenciaBean.conferencia}"/> |
72 |
|
- |
</p:commandButton> |
|
40 |
+ |
<p:column headerText="Login" |
|
41 |
+ |
> |
|
42 |
+ |
<h:outputText value="#{conf.login}"/> |
73 |
43 |
|
</p:column> |
|
44 |
+ |
|
74 |
45 |
|
</p:dataTable> |
75 |
46 |
|
</p:panel> |
76 |
|
- |
</p:layoutUnit> |
77 |
|
- |
|
78 |
|
- |
<p:dialog header="Detalhes da conferência" |
79 |
|
- |
widgetVar="dialogDetalhes" |
80 |
|
- |
appendToBody="true" |
81 |
|
- |
modal="true" |
82 |
|
- |
resizable="false" |
83 |
|
- |
closeOnEscape="true" |
84 |
|
- |
width="1000"> |
85 |
|
- |
<p:panel id="displayDetalhes" |
86 |
|
- |
style="border-color: transparent"> |
87 |
|
- |
<h:outputLabel value="Nome: " |
88 |
|
- |
style="font-weight: bold"/> |
89 |
|
- |
<h:outputText value="#{conferenciaBean.conferencia.nome}"/> |
90 |
|
- |
<br/> |
91 |
|
- |
<h:outputLabel value="Sigla: " |
92 |
|
- |
style="font-weight: bold"/> |
93 |
|
- |
<h:outputText value="#{conferenciaBean.conferencia.sigla}"/> |
94 |
|
- |
<br/> |
95 |
|
- |
<hr/> |
96 |
|
- |
<h:outputLabel value="Edições" |
97 |
|
- |
style="font-weight: bold"/> |
98 |
|
- |
<h:dataTable value="#{conferenciaBean.conferencia.edicaoList}" |
99 |
|
- |
var="edic"> |
100 |
|
- |
<h:column> |
101 |
|
- |
<h:outputText value="#{edic.ano}"/> |
102 |
|
- |
</h:column> |
103 |
|
- |
</h:dataTable> |
104 |
|
- |
<hr/> |
105 |
|
- |
<p:commandButton value="Fechar" |
106 |
|
- |
onclick="dialogDetalhes.hide();" |
107 |
|
- |
icon="ui-icon-close" |
108 |
|
- |
iconPos="right"/> |
109 |
|
- |
</p:panel> |
110 |
|
- |
</p:dialog> |
111 |
|
- |
</h:form> |
112 |
|
- |
|
113 |
|
- |
<p:dialog header="Edição dos dados da conferência" |
114 |
|
- |
widgetVar="editar" |
115 |
|
- |
appendToBody="true" |
116 |
|
- |
modal="true" |
117 |
|
- |
draggable="false" |
118 |
|
- |
resizable="false" |
119 |
|
- |
closeOnEscape="true"> |
120 |
|
- |
<h:form id="formEdic"> |
121 |
|
- |
<h:panelGrid id="edicao" |
122 |
|
- |
columns="1" |
123 |
|
- |
width="100%"> |
124 |
|
- |
<h:outputLabel value="Nome" |
125 |
|
- |
style="font-weight: bold"/> |
126 |
|
- |
<p:inputText value="#{conferenciaBean.conferencia.nome}" |
127 |
|
- |
required="true" |
128 |
|
- |
requiredMessage="A definição do do nome da conferência é obrigatória." |
129 |
|
- |
style="width: 100%"/> |
130 |
|
- |
<hr/> |
131 |
|
- |
</h:panelGrid> |
132 |
|
- |
<h:panelGrid columns="2" |
133 |
|
- |
width="100%"> |
134 |
|
- |
<p:commandButton value="Salvar" |
135 |
|
- |
title="Salvar alterações na conferência" |
136 |
|
- |
action="#{conferenciaBean.atualizar()}" |
137 |
|
- |
ajax="false" |
138 |
|
- |
style="width: 200px" |
139 |
|
- |
icon="ui-icon-disk" |
140 |
|
- |
iconPos="right"/> |
141 |
|
- |
<p:commandButton value="Cancelar" |
142 |
|
- |
title="Cancelar a edição da conferência" |
143 |
|
- |
onclick="editar.hide();" |
144 |
|
- |
style="width: 200px" |
145 |
|
- |
icon="ui-icon-cancel" |
146 |
|
- |
iconPos="right"/> |
147 |
|
- |
</h:panelGrid> |
148 |
|
- |
</h:form> |
149 |
|
- |
</p:dialog> |
150 |
|
- |
|
151 |
|
- |
<p:dialog header="Confirmação de exclusão" |
152 |
|
- |
widgetVar="confirmation" |
153 |
|
- |
appendToBody="true" |
154 |
|
- |
modal="true" |
155 |
|
- |
draggable="false" |
156 |
|
- |
closable="false" |
157 |
|
- |
resizable="false" |
158 |
|
- |
closeOnEscape="true"> |
159 |
|
- |
<h:outputText value="Você tem certeza que quer excluir esta conferência?"/> |
160 |
|
- |
<hr/> |
161 |
|
- |
<h:form dir="RTL"> |
162 |
|
- |
<p:commandButton value="Não" |
163 |
|
- |
onclick="confirmation.hide();" |
164 |
|
- |
style="width: 100px" |
165 |
|
- |
icon="ui-icon-closethick" |
166 |
|
- |
iconPos="right"/> |
167 |
|
- |
<p:commandButton value="Sim" |
168 |
|
- |
action="#{conferenciaBean.excluir()}" |
169 |
|
- |
ajax="false" |
170 |
|
- |
style="width: 100px" |
171 |
|
- |
icon="ui-icon-check" |
172 |
|
- |
iconPos="right"/> |
173 |
|
- |
</h:form> |
174 |
|
- |
</p:dialog> |
|
47 |
+ |
</p:layoutUnit> |
|
48 |
+ |
</h:form> |
175 |
49 |
|
</p:layout> |
176 |
50 |
|
</ui:define> |
177 |
51 |
|
</ui:composition> |