1 | <%var iconStatus = ['','ui-icon-check', 'ui-icon-radio-off', 'ui-icon-close', 'ui-icon-help', 'ui-icon-transferthick-e-w', 'ui-icon-contact'] |
---|
2 | var legendStatus = ['','Confirmado','Tentativa','Cancelado','Sem Resposta','Delegado', 'Participante'] |
---|
3 | %> |
---|
4 | <dl class="block-attendee-list attendees-list"> |
---|
5 | <dt class="me"><%= data.event.me.user ? data.event.me.user.name : data.event.me.name %></dt> |
---|
6 | <dd class="me"> |
---|
7 | <select class="status" name="status" <%= data.event.isAttendee ? '' : 'disabled' %>> |
---|
8 | <%if(!data.event.delegatedFrom[data.event.me.id]){%> |
---|
9 | <option value="1" <%= data.event.status=='1' ? 'selected="selected"':'' %>>Eu vou</option> |
---|
10 | <%if(!data.event.acl.participationRequired){%> |
---|
11 | <option value="3" <%= data.event.status=='3' ? 'selected="selected"':'' %>>Eu não vou</option> |
---|
12 | <option value="2" <%= data.event.status=='2' ? 'selected="selected"':'' %>>Talvez</option> |
---|
13 | <option value="4" <%= data.event.status=='4' ? 'selected="selected"':'' %>>Sem resposta </option> |
---|
14 | <option class="hidden" value="5" >Delegado</option> |
---|
15 | <%}%> |
---|
16 | <%}else{%> |
---|
17 | <option value="5" 'selected="selected"'>Delegado</option> |
---|
18 | <%}%> |
---|
19 | </select> |
---|
20 | <% if ((!data.event.acl.organization && !data.event.acl.write && !data.event.acl.inviteGuests && !data.event.acl.participationRequired && !data.event.delegatedFrom[data.event.me.id]) && data.event.isAttendee) { %> |
---|
21 | <fieldset class="add-attendee-options-read"> |
---|
22 | <a href="#" class="button participant-delegate add-attendee-options-button">Delegar participação a um novo participante</a> |
---|
23 | </fieldset> |
---|
24 | <% } %> |
---|
25 | |
---|
26 | <p class="input-group request-update <%=data.event.delegatedFrom[data.event.me.id] ? '' : "hidden"%>"> |
---|
27 | <input type="checkbox" name="receiveNotification" value="true" <%=data.event.me.receiveNotification=='1' ? 'checked="checked"' : ''%>/> |
---|
28 | <label for="request-update">Receber atualizações</label> |
---|
29 | </p> |
---|
30 | |
---|
31 | <input type="hidden" name="delegatedFrom[]" value="<%=data.event.me.delegatedFrom%>"> |
---|
32 | |
---|
33 | <input type="hidden" name="attendee[]" value="<%=data.event.me.id%>"> |
---|
34 | <input type="hidden" name="attendeeType[]" value="0"> |
---|
35 | <input type="hidden" name="attendeeAcl[]" value="<%=data.event.me.acl%>"> |
---|
36 | |
---|
37 | </dd> |
---|
38 | |
---|
39 | <dt class="attendee-list">Convidados</dt> |
---|
40 | <dd class="attendee-list"> |
---|
41 | <ul class="attendee-list"> |
---|
42 | <% if (data.event.isAttendee && !data.event.acl.organization){ %> |
---|
43 | <label for="attendee" title="<%= data.event.me.user ? data.event.me.user.mail : data.event.me.mail %>" class="mail hidden"></label> |
---|
44 | <%}%> |
---|
45 | |
---|
46 | <li class="organizer <%= (data.event.acl.organization || (data.event.delegatedFrom[data.event.me.id] && data.event.delegatedFrom[data.event.me.id].isOrganizer == '1')) ? "hidden" : "" %>"> |
---|
47 | <div style="overflow:hidden; width:100%; display:table;"> |
---|
48 | <span class="space-status ui-icon <%=iconStatus[data.event.organizer.status]%>" title="<%=legendStatus[data.event.organizer.status]%>"></span> |
---|
49 | <span class="space-special ui-icon ui-icon-person" title="Organizador"></span> |
---|
50 | <% if (!data.event.acl.organization && (data.event.organizer.id != data.event.me.id )) { %> |
---|
51 | <input type="checkbox" value="<%= data.event.organizer.id %>" disabled="disabled"> |
---|
52 | <input type="hidden" name="attendee[]" value="<%=data.event.organizer.id%>"> |
---|
53 | <input type="hidden" name="attendeeType[]" value="0"> |
---|
54 | <input type="hidden" name="attendeeAcl[]" value="<%=data.event.organizer.acl%>"> |
---|
55 | <input type="hidden" name="delegatedFrom[]" value="<%=data.event.organizer.delegatedFrom%>"> |
---|
56 | <%}%> |
---|
57 | <input type="hidden" name="attendee_organizer" value="<%=data.event.organizer.id%>"> |
---|
58 | <label for="attendee_organizer" title="<%= data.event.organizer.name ? data.event.organizer.name: '' %>" class="name name-special"><%= data.event.organizer.name ? data.event.organizer.name : '' %></label> |
---|
59 | <label for="attendee_organizer" title="<%= data.event.organizer.mail ? data.event.organizer.mail: '' %>" class="mail name-special"><%= data.event.organizer.mail ? data.event.organizer.mail : '' %></label> |
---|
60 | </div> |
---|
61 | </li> |
---|
62 | <%if(!!data.event.delegatedFrom[data.event.me.id]){ |
---|
63 | var delegated_me = data.event.delegatedFrom[data.event.me.id]%> |
---|
64 | <li class="me-delegated"> |
---|
65 | <div style="overflow:hidden; width:100%; display:table;"> |
---|
66 | <span class="space-status ui-icon <%=iconStatus[delegated_me.status]%>" title="<%=legendStatus[delegated_me.status]%>"></span> |
---|
67 | <span class="space-special ui-icon <%=iconStatus[5]%>" title="Delegado para"></span> |
---|
68 | <input type="checkbox" value="<%= delegated_me.id%>" disabled="disabled"> |
---|
69 | <label for="me-delegated" title="<%= delegated_me.name ? delegated_me.name: '' %>" class="name name-special"><%= delegated_me.name ? delegated_me.name : '' %></label> |
---|
70 | <label for="me-delegated" title="<%= delegated_me.mail ? delegated_me.mail: '' %>" class="mail name-special"><%= delegated_me.mail ? delegated_me.mail : '' %></label> |
---|
71 | </div> |
---|
72 | </li> |
---|
73 | <%}%> |
---|
74 | <% if (data.event && data.event.attendee.length > 0) { |
---|
75 | for (var i=0; i< data.event.attendee.length; i++) {%> |
---|
76 | <li class="attendee"> |
---|
77 | <div style="overflow:hidden; width:100%; display:table;"> |
---|
78 | <%if(data.event.delegatedFrom[data.event.attendee[i].id]){%> |
---|
79 | <span class="open-delegate new ui-icon ui-icon-triangle-1-e"></span> |
---|
80 | <%}else{%> |
---|
81 | <span class="space-status ui-icon <%=iconStatus[data.event.attendee[i].status]%>" title="<%=legendStatus[data.event.attendee[i].status]%>"></span> |
---|
82 | <%}%> |
---|
83 | <span class="space-special ui-icon <%= !!data.event.delegatedFrom[data.event.attendee[i].id] ? iconStatus[5] : iconStatus[6]%>" title="<%=!!data.event.delegatedFrom[data.event.attendee[i].id] ? legendStatus[5] : legendStatus[6]%>"></span> |
---|
84 | <%if(data.event.acl.organization || data.event.acl.write){%> |
---|
85 | <input type="checkbox" class="new" value="<%= data.event.attendee[i].id %>"> |
---|
86 | <%}else{%> |
---|
87 | <input type="checkbox" value="<%= data.event.attendee[i].id%>" disabled="disabled"> |
---|
88 | <%}%> |
---|
89 | <input type="hidden" name="attendee[]" value="<%=data.event.attendee[i].id%>"> |
---|
90 | <input type="hidden" name="attendeeType[]" value="<%=data.event.attendee[i].isExternal%>"> |
---|
91 | <input type="hidden" name="attendeeAcl[]" value="<%=data.event.attendee[i].acl%>"> |
---|
92 | <input type="hidden" name="delegatedFrom[]" value="<%=data.event.attendee[i].delegatedFrom%>"> |
---|
93 | <label title="<%= data.event.attendee[i].name ? data.event.attendee[i].name: '' %>" class="name <%= !!data.event.delegatedFrom[data.event.attendee[i].id] ? "name-special-delegated" : "name-special" %>"><%= data.event.attendee[i].name ? data.event.attendee[i].name : '' %></label> |
---|
94 | <label title="<%= data.event.attendee[i].mail ? data.event.attendee[i].mail : ''%>" class="mail <%= !!data.event.delegatedFrom[data.event.attendee[i].id] ? "name-special-delegated" : "name-special"%>"><%= data.event.attendee[i].mail ? data.event.attendee[i].mail : '' %></label> |
---|
95 | <span class="ui-icon ui-icon-close ui-corner-all ui-icon-float-right"></span> |
---|
96 | </div> |
---|
97 | <div class="attendee-options"> |
---|
98 | <%if(data.event.acl.organization || data.event.acl.write){%> |
---|
99 | <a class="button edit attendee-options-button-edit new">Editar permissões</a> |
---|
100 | <a class="button close new">Remover</a> |
---|
101 | <%}%> |
---|
102 | </div> |
---|
103 | |
---|
104 | |
---|
105 | <%if(!!data.event.delegatedFrom[data.event.attendee[i].id]){%> |
---|
106 | <%var attendee = data.event.delegatedFrom[data.event.attendee[i].id]%> |
---|
107 | <% while(attendee != 0){%> |
---|
108 | <div class="list-delegates hidden"> |
---|
109 | <div style="overflow:hidden; width:100%; display:table;"> |
---|
110 | <span class="status-delegate ui-icon <%=iconStatus[attendee.status]%>" title="<%=legendStatus[attendee.status]%>"></span> |
---|
111 | <span class="space-special-delegated ui-icon <%= !!data.event.delegatedFrom[attendee.id] ? iconStatus[5] : iconStatus[6]%>" title="<%=!!data.event.delegatedFrom[attendee.id] ? legendStatus[5] : legendStatus[6]%>"></span> |
---|
112 | <input type="hidden" name="attendee[]" value="<%=attendee.id%>"> |
---|
113 | <input type="hidden" name="attendeeType[]" value="<%=attendee.isExternal%>"> |
---|
114 | <input type="hidden" name="attendeeAcl[]" value="<%=attendee.acl%>"> |
---|
115 | <input type="hidden" name="delegatedFrom[]" value="<%=attendee.delegatedFrom%>"> |
---|
116 | <label title="<%= attendee.name ? attendee.name : '' %>" class="name <%=attendee.status == 5 ? "name-status-delegated-delegated" : "name-status-delegated-none"%>"><%= attendee.name ? attendee.name : '' %></label> |
---|
117 | <label title="<%= attendee.mail ? attendee.mail : '' %>" class="mail <%=attendee.status == 5 ? "name-status-delegated-none" : "name-status-delegated-none"%>"><%= attendee.mail ? attendee.mail : '' %></label> |
---|
118 | <span class="ui-icon ui-icon-close ui-corner-all ui-icon-float-right"></span> |
---|
119 | </div> |
---|
120 | </div> |
---|
121 | <%attendee = !!data.event.delegatedFrom[attendee.id] ? data.event.delegatedFrom[attendee.id] : 0%> |
---|
122 | <%}%> |
---|
123 | <%}%> |
---|
124 | |
---|
125 | |
---|
126 | </li> |
---|
127 | <%} |
---|
128 | } else if((data.event.me.id == data.event.organizer.id) && (data.event.attendee.length == 0) && $.isEmptyObject(data.event.delegatedFrom)){ %> |
---|
129 | <li class="not-attendee">Não há outros participantes.</li> |
---|
130 | <% } %> |
---|
131 | </ul> |
---|
132 | </dd> |
---|
133 | <dd class="attendee-list-add <%= (data.event.acl.organization || data.event.acl.write || data.event.acl.inviteGuests) && data.event.isAttendee ? '' : 'hidden' %>"> |
---|
134 | <fieldset class="add-attendee-input input-field-rounded ui-corner-all"> |
---|
135 | <span class="ui-icon ui-icon-plus"></span> |
---|
136 | <input class="plus" type="text" /> |
---|
137 | </fieldset> |
---|
138 | </dd> |
---|
139 | |
---|
140 | <div class="ui-widget email-validation hidden"> |
---|
141 | <div style="padding: 0.2em 0.7em; margin-top: 5px;" class="ui-state-highlight ui-corner-all"> |
---|
142 | <p class="message"> |
---|
143 | <span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span> |
---|
144 | <label></label> |
---|
145 | </p> |
---|
146 | </div> |
---|
147 | </div> |
---|
148 | |
---|
149 | <dd class="attendee-list-brief"> |
---|
150 | <% if (data.event && data.event.attendee.length > 0) { %> |
---|
151 | <ul class="attendees-count"> |
---|
152 | <li><label>Sim:</label><%=data.event.statusParticipants.accepted%></li> |
---|
153 | <li><label>Não:</label><%=data.event.statusParticipants.cancelled%></li> |
---|
154 | <li><label>Talvez:</label><%=data.event.statusParticipants.tentative%></li> |
---|
155 | <li><label>Aguardando:</label><%=data.event.statusParticipants.unanswered%></li> |
---|
156 | </ul> |
---|
157 | <% } %> |
---|
158 | <% if (data.event && data.event.sizeAttendeeLimit){%> |
---|
159 | <ul class="attendees-count"> |
---|
160 | <li>Evento com muitos participantes, exibindo os 100 primeiros!</li> |
---|
161 | </ul> |
---|
162 | <% } %> |
---|
163 | </dd> |
---|
164 | |
---|
165 | </dl> |
---|
166 | <% var isSearch = (data.event.acl.organization || data.event.acl.write || data.event.acl.inviteGuests) ? '' : 'hidden' %> |
---|
167 | <dl class="block-add-attendee search <%= isSearch %>"> |
---|
168 | <dt class="add-attendee search">Adicionar outros convidados</dt> |
---|
169 | <dd class="add-attendee"> |
---|
170 | <fieldset class="block-add-attendee" title="Participantes"> |
---|
171 | <fieldset class="add-attendee-search search-field ui-corner-all"> |
---|
172 | <input class="search" type="text" /> |
---|
173 | <span class="ui-icon ui-icon-search"></span> |
---|
174 | </fieldset> |
---|
175 | <ul class="search-result-list ui-corner-all"> |
---|
176 | |
---|
177 | </ul> |
---|
178 | |
---|
179 | </fieldset> |
---|
180 | </dd> |
---|
181 | </dl> |
---|
182 | |
---|