Newer
Older
Federico Sergio Godoy Cammardella
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
>
<ui:decorate template="/WEB-INF/templates/template.xhtml">
<ui:define name="contenido">
<h:form>
<p:outputPanel style="font-size: 30px;text-align: center">
<h:outputText value="Cancelar/Publicar Hechos"/>
</p:outputPanel>
<p:dataTable var="hecho" id="dataHecho" value="#{gestionHechos.facts}" widgetVar="NoticiasTable"
emptyMessage="Hecho no encontrada" filteredValue="#{gestionHechos.filteredFacts}">
<p:column filterBy="#{hecho.title}" headerText="Titulo" filterMatchMode="contains" visible="#{!hecho.EstaVerifcado()}">
<h:outputText value="#{hecho.title}"/>
</p:column>
<p:column filterBy="#{hecho.description}" headerText="Descripción" filterMatchMode="contains" visible="#{!hecho.EstaVerifcado()}">
<h:outputText value="#{hecho.description}"/>
</p:column>
<p:column filterBy="#{hecho.actualState.value}" headerText="Estados" filterMatchMode="exact" visible="#{!hecho.EstaVerifcado()}">
<h:outputText value="#{hecho.actualState.value}"/>
</p:column>
<p:column headerText="" style="text-align: center" visible="#{!hecho.EstaVerifcado()}" >
<p:growl id="message" showDetail="true" />
<p:commandButton value="Publicar" action="#{hecho.PublicarHecho()}" update="@form" >
<p:confirm header="Confirmar" message="¿Confirmar Hecho?" icon="pi pi-exclamation-triangle" />
</p:commandButton>
<p:commandButton value="Cancelar" action="#{hecho.CancelarHecho()}" update="@form" >
<p:confirm header="Confirmar" message="¿Cancelar Hecho?" icon="pi pi-exclamation-triangle" />
</p:commandButton>
<p:confirmDialog global="true" showEffect="fade" hideEffect="fade">
<p:commandButton value="Si" type="button" styleClass="ui-confirmdialog-yes" icon="pi pi-check" />
<p:commandButton value="No" type="button" styleClass="ui-confirmdialog-no" icon="pi pi-times" />
</p:confirmDialog>
</p:column>
</p:dataTable>
</h:form>
</ui:define>
</ui:decorate>
</html>