1 | <fieldset class="shared-calendar-configure"> |
---|
2 | <form method="POST" action="calendarToPermission:detail" class="form-addevent content"> |
---|
3 | <fieldset> |
---|
4 | <dl class="block-user-list users-list"> |
---|
5 | <%if(data.calendar){%> |
---|
6 | <dt class="calendar-shared">Calendario selecionado</dt> |
---|
7 | <dd class="calendar"> |
---|
8 | <select class="calendar" name="calendar"> |
---|
9 | <% |
---|
10 | for(var i = 0; i < data.calendar.length; i++) |
---|
11 | { |
---|
12 | for(var ii = 0; ii < data.signature.length; ii++) |
---|
13 | { |
---|
14 | if(data.signature[ii].calendar.id === data.calendar[i].id && data.signature[ii].permission) |
---|
15 | { |
---|
16 | if(data.signature[ii].permission.acl.shared == false) |
---|
17 | continue; |
---|
18 | } |
---|
19 | } |
---|
20 | %> |
---|
21 | <option value="<%=data.calendar[i].id%>"><%=data.calendar[i].name%></option> |
---|
22 | |
---|
23 | <% |
---|
24 | } %> |
---|
25 | </select> |
---|
26 | </dd> |
---|
27 | <%}%> |
---|
28 | <dt class="<%=data.calendar ? "user-list" : "calendar-list"%>" style="z-index: 5"><%=data.calendar ? 'Compartilhar com' : 'Agendas Selecionadas'%></dt> |
---|
29 | <dd class="<%=data.calendar ? "user-list" : "calendar-list"%>"> |
---|
30 | <ul class="user-list"> |
---|
31 | <li class="not-user"><%=data.calendar ? "Não compartilhado." : "Nenhuma agenda selecionada"%></li> |
---|
32 | </ul> |
---|
33 | </dd> |
---|
34 | </dl> |
---|
35 | |
---|
36 | <%if(data.calendar){%> |
---|
37 | <dl class="block-public-calendar"> |
---|
38 | <dt class="calendar-public">Agenda pública</dt> |
---|
39 | <dd class="calendar-public"> |
---|
40 | <ul> |
---|
41 | <input type="checkbox" name="isPublic"/><label>Pública</label> |
---|
42 | <input type="checkbox" name="busy" class="free-busy hidden"/><label class="free-busy hidden">Livre/Ocupado</label> |
---|
43 | </ul> |
---|
44 | </dd> |
---|
45 | </dl> |
---|
46 | <%}%> |
---|
47 | <dl class="<%=data.calendar ? "block-add-calendar" : "block-add-user"%> search "> |
---|
48 | <dt class="add-user search"><%=data.calendar ? 'Adicionar outros usuários' : 'Adicionar outras agendas'%></dt> |
---|
49 | <dd class="<%=data.calendar ? "add-user-calendar" : "add-user"%>"> |
---|
50 | <fieldset class="block-add-user" title="Usuários"> |
---|
51 | <fieldset class="add-user-search search-field ui-corner-all"> |
---|
52 | <input class="search" type="text" /> |
---|
53 | <span class="ui-icon ui-icon-search"></span> |
---|
54 | |
---|
55 | </fieldset> |
---|
56 | <ul class="search-result-list"></ul> |
---|
57 | </fieldset> |
---|
58 | </dd> |
---|
59 | </dl> |
---|
60 | </fieldset> |
---|
61 | <div class="menu-container footer-container menu-addevent"> |
---|
62 | <a class="button cancel" href="#">Cancelar</a> |
---|
63 | <a class="button save" href="#">Salvar</a> |
---|
64 | </div> |
---|
65 | </form> |
---|
66 | </fieldset> |
---|