74 lines
2.7 KiB
HTML
74 lines
2.7 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
To change this license header, choose License Headers in Project Properties.
|
|
To change this template file, choose Tools | Templates
|
|
and open the template in the editor.
|
|
-->
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
|
xmlns:f="http://xmlns.jcp.org/jsf/core">
|
|
<head>
|
|
<title>Event</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
</head>
|
|
<body>
|
|
<div>Events Management</div>
|
|
|
|
<h:dataTable value="#{administratorManager.allEvents}"
|
|
var="event"
|
|
summary="List of all events of the Responsible"
|
|
rules="all"
|
|
cellpadding="5">
|
|
<h:column>
|
|
<f:facet name="header">Date</f:facet>
|
|
<h:outputText value="#{event.date}"/>
|
|
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">Name</f:facet>
|
|
<h:outputText value="#{event.name}"/>
|
|
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">Type</f:facet>
|
|
<h:outputText value="#{event.type}"/>
|
|
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">Local</f:facet>
|
|
<h:outputText value="#{event.local}"/>
|
|
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">Responsible</f:facet>
|
|
<h:outputText value="#{event.responsible_name}"/>
|
|
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Actions" />
|
|
</f:facet>
|
|
<h:form>
|
|
<h:commandLink value="Details" action="event_details?faces-redirect=true">
|
|
<f:setPropertyActionListener target="#{administratorManager.currentEvent}" value="#{event}" />
|
|
</h:commandLink>
|
|
<h:commandLink value="Update" action="update_event?faces-redirect=true">
|
|
<f:setPropertyActionListener target="#{administratorManager.currentEvent}" value="#{event}" />
|
|
</h:commandLink>
|
|
|
|
<h:commandLink value="Remove" actionListener="#{administratorManager.removeEvent}">
|
|
<f:param name="eventID" id="eventID" value="#{event.id}" />
|
|
</h:commandLink>
|
|
</h:form>
|
|
</h:column>
|
|
</h:dataTable>
|
|
|
|
<h:form>
|
|
<h:commandLink action="create_event" value="New Event"></h:commandLink>
|
|
<br></br>
|
|
<h:commandLink action="index" value="Back"></h:commandLink>
|
|
</h:form>
|
|
</body>
|
|
</html>
|