source: indico/indico/MaKaC/webinterface/tpls/ConferenceICalExport.tpl @ 3a3b05

hello-world-walkthroughipv6v0.98-seriesv0.98.2v0.98.3v0.99v1.0v1.1
Last change on this file since 3a3b05 was 97a9da, checked in by Pedro Ferreira <jose.pedro.ferreira@…>, 15 months ago

[IMP] Export to iCal trough export http api

-Categories: Tooltip to allow you download or generate the export api url.
-Conferences: Tooltip to allow you download or generate the export api url.
-Created a common JS class for categories and conferences in order to display the tooltip.
-Added different services to create api key and enable the persistent.
-Added 2 util methods to generate the urls.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1<div id="icalExportPopup" style="display:none" class="icalExportPopup">
2
3    <div id="downloadICS" class="iCalExportSection">
4         <a href='${ urlHandlers.UHConferenceToiCal.getURL(self_._rh._conf, detailLevel = "top") }'>
5            <img src="${icsIconURL}" border="0" style="vertical-align: middle">
6             ${_("Download event ICS file")}
7         </a>
8    </div>
9
10    <div id="downloadTimetableICS" class="iCalExportSection">
11         <a href='${ urlHandlers.UHConferenceToiCal.getURL(self_._rh._conf, detailLevel = "contributions") }'>
12            <img src="${icsIconURL}" border="0" style="vertical-align: middle">
13             ${_("Download timetable ICS file")}
14         </a>
15    </div>
16
17    <div id="iCalSeparator" class="icalSeparator"></div>
18
19    <%include file="ICalExportCommon.tpl"/>
20    <div style="display:none">
21        <div id="extraInformation" class="iCalExportSection">
22            <div class="note">Please use <strong>CTRL + C</strong> to copy this URL</div>
23            <input type="checkbox" id="detailExport"> ${("Detailed timetable")}
24        </div>
25    </div>
26
27
28
29</div>
30<script type="text/javascript">
31var setURLs = function(urls){
32    if($('#detailExport')[0].checked){
33        $('#publicLink').attr('value', urls["publicRequestAllURL"]);
34        $('#publicLink').attr('title', urls["publicRequestAllURL"]);
35        $('#authLink').attr('value', urls["authRequestAllURL"]);
36        $('#authLink').attr('title', urls["authRequestAllURL"]);
37    }else{
38        $('#publicLink').attr('value', urls["publicRequestTopURL"]);
39        $('#publicLink').attr('title', urls["publicRequestTopURL"]);
40        $('#authLink').attr('value', urls["authRequestTopURL"]);
41        $('#authLink').attr('title', urls["authRequestTopURL"]);
42    }
43}
44
45var exportIcal = new ExportIcalInterface(${apiMode}, ${persistentUserEnabled | n,j}, ${persistentAllowed | n,j}, ${apiActive | n,j}, ${userLogged | n,j}, setURLs, 'event.api.getExportURLs', {confId:"${self_._conf.getId()}"}, ${requestURLs | n,j});
46
47$('#detailExport').click(function(e) {
48    setURLs(exportIcal.getRequestURLs());
49});
50
51</script>
52
Note: See TracBrowser for help on using the repository browser.