source: indico/indico/MaKaC/plugins/Collaboration/tpls/ElectronicAgreement.tpl @ 800c21

hello-world-walkthroughipv6v0.98-seriesv0.98.2v0.98.3v0.98b2v0.99v1.0v1.1
Last change on this file since 800c21 was 800c21, checked in by Jose Benito <jose.benito.gonzalez@…>, 20 months ago

[IMP] Simplify WebCast/Rec? requests and EAgreement

  • Property mode set to 100644
File size: 8.1 KB
Line 
1    <form action=# method="post" name="electronicAgreementForm" onSubmit="return atLeastOneSelected()">
2        <div class="groupTitle">Electronic Agreement</div>
3
4    % if canShow:
5        <span class="RRNoteText" style="float:left;">
6            ${_("""Before any recording can be published, each speaker must sign the %s.<br/>
7                     To do so, two different ways are available:
8                     <ol>
9                        <li><span style="font-weight:bold;">Electronic signature: Send an Email</span> containing the link to sign the %s.<br/>
10                            (Select the speakers you want to send the Email and then click on the "Send Email" button.)
11                        </li>
12                        <li>Ask the speaker to sign the """)%(agreementName, agreementName)}
13
14            ${urlPaperAgreement}
15
16             ${_("""<br/>Then, <span style="font-weight:bold;">Upload</span> the corresponding line in the list below.
17                           </li>
18                        </ol>
19                """)}
20        </span>
21
22        <!-- Decide if keep or not... (if T. notice or not) -->
23        <!-- <div align="right">
24            % if signatureCompleted:
25                <label style="background-color:green;">${_("All the contributions are ready to be published")}</label>
26            % else:
27                <label style="background-color:red;">${_("Some contributions cannot be published")}</label>
28            % endif
29        </div> -->
30        <br/>
31        <br/>
32        <br/>
33
34        <div id="tooltipPool1" style="display: none">
35          <div id="requestType" class="tip">
36            <strong>Request type involved for Electronic Agreement</strong>
37            <ul>
38              <li><strong>REC</strong>: Only the recording has been requested.</li>
39              <li><strong>WEBC</strong>: Only the webcast has been requested.</li>
40              <li><strong>REC/WEBC</strong>: Both recording and webcast have been requested.</li>
41              <li><strong>NA</strong>: Information not available.</li>
42            </ul>
43          </div>
44        </div>
45
46        <div id="tooltipPool2" style="display: none">
47          <div id="status" class="tip">
48            <strong>Status Legend</strong>
49            <ul>
50              <li><strong>No Email</strong>: Speaker does not have an Email address.</li>
51              <li><strong>Not Signed</strong>: Agreement not signed.</li>
52              <li><strong>Pending...</strong>: Email sent to the speakers, waiting for signature.</li>
53              <li><strong>Signed</strong>: Agreement signed electronically.</li>
54              <li><strong>Uploaded</strong>: Agreement signed uploading the form.</li>
55              <li><strong>Refused</strong>: Agreement refused.</li>
56            </ul>
57          </div>
58        </div>
59
60        <table cellspacing="0" align="left" width="100%" valign="top">
61            <tr>
62                <td colspan="11" style="border-bottom:2px solid #777777;padding-top:5px" valign="bottom" align="left">
63                    <table>
64                        <tr>
65                            <td valign="bottom" align="left">
66                                <input type="button" class="btn sendEmail" name="sendEmail" value="${_("Send Email")}" />
67                            </td>
68                        </tr>
69                    </table>
70                </td>
71            </tr>
72            <tr>
73                <td colspan=4 style="padding: 5px 0px 10px;" nowrap>
74                    Select: <a style="color: #0B63A5;" alt="Select all" id="selectAll"> All</a>,
75                    <a style="color: #0B63A5;" alt="Unselect all" id="deselectAll">None</a>
76                </td>
77            </tr>
78            <tr>
79                <td></td>
80            </tr>
81            <tr>
82                <td></td>
83                <td nowrap class="titleCellFormat" style="border-bottom: 1px solid #888; border-right:5px solid #FFFFFF">
84                    <a href="${speakerSortingURL}" > ${_("Speaker ")} ${speakerImg}</a>
85                </td>
86                <td nowrap class="titleCellFormat" style="border-bottom: 1px solid #888; border-right:5px solid #FFFFFF">
87                    ${_("Email")}
88                </td>
89                <td nowrap class="titleCellFormat" style="border-bottom: 1px solid #888; border-right:5px solid #FFFFFF">
90                    <a href="${statusSortingURL}" > ${_("Status ")} ${statusImg}${contextHelp('status')}</a>
91                </td>
92                <td nowrap class="titleCellFormat" style="border-bottom: 1px solid #888; border-right:5px solid #FFFFFF">
93                    <a href="${reqTypeSortingURL}" > ${_("Request Type ")} ${reqTypeImg}${contextHelp('requestType')}</a>
94                </td>
95                <td nowrap class="titleCellFormat" style="border-bottom: 1px solid #888; border-right:5px solid #FFFFFF;">
96                    <a href= "${contSortingURL}" > ${_("Contribution ")} ${contImg}</a>
97               </td>
98               <td nowrap class="titleCellFormat" style="border-bottom: 1px solid #888;border-right:5px solid #FFFFFF">
99                    ${_("Upload Agreement")}
100               </td>
101            </tr>
102            <tr>
103                <td>
104                    <tbody id="items">
105                      % for spkId, spkName, status, contribId, reqType, enabled in contributions:
106                          <%include file="ElectronicAgreementItems.tpl" args="spkId=spkId,spkName=spkName,status=status,contribId=contribId,reqType=reqType,enabled=enabled"/>
107                      % endfor
108                    </tbody>
109                </td>
110            </tr>
111            <tr>
112                <td colspan="11" style="border-top: 2px solid #777777; padding-top: 3px;" valign="bottom" align="left">
113                    <table>
114                        <tr>
115                            <td valign="bottom" align="left"><input type="button" class="btn sendEmail" name="Send Email" value="${_("Send Email")}"/>
116                        </tr>
117                    </table>
118                </td>
119            </tr>
120        </table>
121    % else:
122        <span class="RRNoteText">
123                ${_("Before any lecture recording can be published, each speaker must sign the %s.")%agreementName} <br/>
124                ${_("Options and tools for managing and tracking these %s will appear on this page as soon as your recording request is accepted.")%agreementName}<br/>
125                ${_("Please come back here when your request is accepted.")}
126        </span>
127    % endif
128    </form>
129
130<script type="text/javascript">
131
132$(function() {
133    $('.speakerLine input').change(function() {
134        if (this.checked) {
135            $(this).parents('.speakerLine').addClass('selected');
136        } else {
137            $(this).parents('.speakerLine').removeClass('selected');
138        }
139    });
140
141    $('.sendEmail').click(function(){
142        // make sure at least one is selected
143        if($('.speakerLine input:not(:disabled):checked').length) {
144            var uniqueIdList = $('.speakerLine input:checked').map(function(){return this.id;}).toArray();
145            var popup = new SpeakersEmailPopup("${conf.getTitle()}", ${conf.getId()}, uniqueIdList, ${fromList} , ${user.getId()});
146            popup.open();
147        } else {
148            var dialog = new WarningPopup($T("Warning"), $T("No entry selected! Please select at least one."));
149            dialog.open();
150            return false;
151        }
152    });
153
154    $('#selectAll').click(function() {
155        $('.speakerLine input:not(:disabled)').prop('checked', true)
156        $('.speakerLine input').trigger('change');
157    });
158
159    $('#deselectAll').click(function() {
160        $('.speakerLine input:not(:disabled)').prop('checked', false)
161        $('.speakerLine input').trigger('change');
162    });
163
164    $('.contName').mouseover(function(event) {
165        IndicoUI.Widgets.Generic.tooltip(this, event,
166            '<ul style="list-style-type:none;padding:3px;margin:0px">'+
167           '<li>'+this.name+'<\/li><\/ul>'
168        );
169    });
170
171    $('.reject').mouseover(function(event) {
172        IndicoUI.Widgets.Generic.tooltip(this, event,
173                '<ul style="list-style-type:none;padding:3px;margin:0px;"><li>'+
174                '<b>Reject reason:</b> '+
175                this.name+
176                '</li></ul>'
177        );
178    });
179
180});
181
182</script>
Note: See TracBrowser for help on using the repository browser.