Add Participant to Event
parent
7e74e3a5e7
commit
3ac142c3ab
|
@ -18,7 +18,7 @@ and open the template in the editor.
|
|||
<h:dataTable value="#{administratorManager.allResponsibles}" var="responsible">
|
||||
<h:column>
|
||||
<f:facet name="header">Id</f:facet>
|
||||
<h:outputText value="#{responsible.i}"/>
|
||||
<h:outputText value="#{responsible.id}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">Name</f:facet>
|
||||
|
@ -31,9 +31,6 @@ and open the template in the editor.
|
|||
</h:column>
|
||||
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputText value="Actions" />
|
||||
</f:facet>
|
||||
<h:form>
|
||||
<h:commandLink value="Details" action="responsible_details?faces-redirect=true">
|
||||
<f:setPropertyActionListener target="#{administratorManager.currentResponsible}" value="#{responsible}" />
|
||||
|
@ -45,6 +42,7 @@ and open the template in the editor.
|
|||
<h:commandLink value="Remove" actionListener="#{administratorManager.removeUser}">
|
||||
<f:param name="deleteUserId" id="deleteUser" value="#{user.id}" />
|
||||
</h:commandLink>
|
||||
|
||||
</h:form>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
<?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>List Participants</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
</head>
|
||||
<body>
|
||||
<div>Lista de Utilizadores / Participantes : </div>
|
||||
<h:form>
|
||||
|
||||
<h:column>
|
||||
<h:selectManyMenu
|
||||
id="participant"
|
||||
value="#{administratorManager.currentParticipant.id}" >
|
||||
<f:selectItems
|
||||
value="#{administratorManager.allParticipants}"
|
||||
var="participant"
|
||||
itemValue="#{participant.id}"
|
||||
itemLabel="#{participant.name}" />
|
||||
</h:selectManyMenu>
|
||||
</h:column>
|
||||
|
||||
</h:form>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -56,6 +56,12 @@ and open the template in the editor.
|
|||
<f:facet name="header">Local</f:facet>
|
||||
<h:outputText value="#{event.local}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">Add Participants</f:facet>
|
||||
<h:form>
|
||||
<h:commandLink action="add_participant_event" value="Add Participant"></h:commandLink>
|
||||
</h:form>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
<br></br><br></br>
|
||||
<h:form>
|
||||
|
|
Loading…
Reference in New Issue