1 | <div class="tabs-import-export"> |
---|
2 | <ul> |
---|
3 | <li> |
---|
4 | <a href="#tab-import">Importar</a> |
---|
5 | </li> |
---|
6 | |
---|
7 | <li> |
---|
8 | <a href="#tab-export">Exportar</a> |
---|
9 | </li> |
---|
10 | </ul> |
---|
11 | |
---|
12 | <div id="tab-import"> |
---|
13 | <form method="POST" action="../prototype/converter.php" class="import-event-form"> |
---|
14 | <fieldset class="import-calendar"> |
---|
15 | <input type="hidden" name="type" value="iCal"> |
---|
16 | <input type="hidden" name="params[owner]" value="<%= data.owner %>"> |
---|
17 | <legend class="hidden">Importar <%=data.typeView == 0 ? 'eventos' : 'tarefas'%></legend> |
---|
18 | <p class="input-group"> |
---|
19 | <label for="data">Arquivo:</label> |
---|
20 | <span class="hidden file-add"></span> |
---|
21 | <input type="file" name="data" value=""/> |
---|
22 | <span class="tip">Escolha o arquivo que contenha um ou <%=data.typeView == 0 ? 'vários eventos' : 'várias tarefas'%>. <%=data.typeView == 0 ? 'A Agenda' : 'O Grupo'%> do Expresso pode importar informações de <%=data.typeView == 0 ? 'evento' : 'tarefa'%> no formato iCal.</span> |
---|
23 | <label for="calendar"><%=data.typeView == 0 ? 'Agenda:' : 'Grupo:'%></label> |
---|
24 | <select name="params[calendar]"> |
---|
25 | <% for( var i = 0; i < data.calendars.length; i++ ){ %> |
---|
26 | <option value="<%= data.calendars[i].id %>"><%= data.calendars[i].name %></option> |
---|
27 | <% } %> |
---|
28 | </select> |
---|
29 | <span class="tip"><%=data.typeView == 0 ? 'Agenda da' : 'Grupo do'%> qual <%=data.typeView == 0 ? 'os eventos' : 'as tarefas'%> serão importados</span> |
---|
30 | </p> |
---|
31 | </fieldset> |
---|
32 | </form> |
---|
33 | <div class="menu-container footer-container menu-import-event"> |
---|
34 | <a class="button cancel calendar-import-btn-cancel" href="#">Cancelar</a> |
---|
35 | <a class="button import calendar-import-btn-import" href="#">Importar</a> |
---|
36 | </div> |
---|
37 | </div> |
---|
38 | |
---|
39 | <div id="tab-export"> |
---|
40 | <form method="GET" action="../prototype/modules/calendar/export.php" class="export-event-form"> |
---|
41 | <fieldset class="export_calendar"> |
---|
42 | <legend class="hidden">Exportar agenda</legend> |
---|
43 | <p class="input-group"> |
---|
44 | <label for="calendar"><%=data.typeView == 0 ? 'Agenda:' : 'Grupo:'%></label> |
---|
45 | <select name="calendar"> |
---|
46 | <!--<option value="cal_all">Todas agendas</option>--> |
---|
47 | <% for( var i = 0; i < data.calendars.length; i++ ){ %> |
---|
48 | <option value="<%= data.calendars[i].id %>"><%= data.calendars[i].name %></option> |
---|
49 | <% } %> |
---|
50 | </select> |
---|
51 | <span class="tip">Escolha <%=data.typeView == 0 ? 'a agenda' : 'o grupo'%> que deseja exportar. <%=data.typeView == 0 ? 'A Agenda' : 'O Grupo'%> do Expresso pode exportar informações de <%=data.typeView == 0 ? 'eventos' : 'tarefas'%> no formato iCal.</span> |
---|
52 | </p> |
---|
53 | </fieldset> |
---|
54 | </form> |
---|
55 | <div class="menu-container footer-container menu-export-event"> |
---|
56 | <a class="button cancel calendar-export-btn-cancel" href="#">Cancelar</a> |
---|
57 | <a class="button export calendar-export-btn-export" href="#">Exportar</a> |
---|
58 | </div> |
---|
59 | </div> |
---|
60 | |
---|
61 | </div> |
---|