[FIX] Error reports
[cds-indico.git] / indico / MaKaC / webinterface / tpls / ConfModCFANotifTplDisplay.tpl
blob82d70b79c9e72808fd05c31e5553ce0adeaba445
1 <table width="90%" align="left" border="0">
2     <tr>
3         <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Name")}</span></td>
4         <td bgcolor="white" width="100%"><b>${ name }</b></td>
5         <td valign="bottom" rowspan="7" bgcolor="white" width="100%">
6             <form action=${ modifDataURL } method="POST">
7                 <div style="text-align:right;">
8                     <input type="submit" class="btn" value="${ _("Modify")}">
9                 </div>
10             </form>
11         </td>
12     </tr>
13     <tr>
14         <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Description")}</span></td>
15         <td bgcolor="white" width="100%"><b>${ description }</b></td>
16     </tr>
17     <tr>
18         <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("From")}</span></td>
19         <td bgcolor="white" width="100%"><b>${ From }</b></td>
20     </tr>
21     <tr>
22         <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("To addresses")}</span></td>
23         <td bgcolor="white" width="100%"><b>${ toAddrs }</b></td>
24     </tr>
25     <tr>
26         <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Cc addresses")}</span></td>
27         <td bgcolor="white" width="100%"><b>${ CCAddrs }</b></td>
28     </tr>
29     <tr>
30         <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Subject")}</span></td>
31         <td bgcolor="white" width="100%"><b>${ subject }</b></td>
32     </tr>
33     <tr>
34         <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Body")}</span></td>
35         <td bgcolor="white" width="100%"><pre>${ body }</pre></td>
36     </tr>
37     <tr>
38         <td colspan="3" class="horizontalLine">&nbsp;</td>
39     </tr>
40     <tr>
41         <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Conditions")}</span></td>
42         <td width="100%" colspan="2">
43             <table width="100%">
44                 <tr>
45                     <form action=${ remConditionsURL } method="POST">
46                     <td width="100%" valign="top" style="min-width:145px;">
47                             ${ conditions }
48                     </td>
49                     <input type="hidden" value="" name="selCond">
50                     </form>
51                     <td id="createConditionCell" align="right" valign="top">
52                         <input id="createConditionButton" type="submit" class="btn" value="${ _("Add new condition")}">
53                     </td>
54                     <td id="createConditionDisplay" align="right" valign="top" valign="bottom" nowrap style="padding-bottom:10px; display:none;">
55                         <div class="shadowRectangle" style="padding-right:15px;">
56                         <table>
57                             <form action=${ newConditionURL } method="POST">
58                             <tr>
59                                 <td colspan="2" style="text-align:center; padding-bottom:5px;">
60                                     <span class="groupTitleSmallPaper" style="border:0px; font-size:13px;">${ _("Choose the condition that triggers the email")}</span>
61                                 </td>
62                             </tr>
63                             <tr>
64                                 <td nowrap class="titleCellTD" style="padding-top:5px; width:70%;">
65                                     <span class="titleCellFormat"> ${ _("The email will be sent when the abstract is") }</span>
66                                 </td>
67                                 <td><select id="condTypeSelect" name="condType" onchange="checkSelectCondition();">${ availableConditions }</select></td>
68                             </tr>
69                             <tr id="contribTypeSelect">
70                                 <td nowrap class="titleCellTDSecondLevel" style="padding-top:3px;"><span> ${ _("and the contribution type is") }</span></td>
71                                 <td style="padding-top:3px;">
72                                     <select name="contribType">
73                                         <option value="--any--">${ _("--any--") }</option>
74                                         <option value="--none--">${ _("--none--") }</option>
75                                         % for ct in contribTypeList:
76                                             <option value=${ quoteattr(ct.getId()) }> ${ ct.getName() } </option>
77                                         % endfor
78                                     </select>
79                                 </td>
80                             </tr>
81                             <tr id="trackSelect">
82                                 <td nowrap class="titleCellTDSecondLevel" style="padding-top:3px;"><span> ${ _("and the track is") }</span></td>
83                                 <td style="padding-top:3px;">
84                                     <select name="track">
85                                         <option value="--any--">${ _("--any--") }</option>
86                                         <option value="--none--">${ _("--none--") }</option>
87                                         % for track in trackList:
88                                             <option value=${ quoteattr(track.getId()) }> ${ track.getTitle() } </option>
89                                         % endfor
90                                     </select>
91                                 </td>
92                             </tr>
93                             <tr>
94                                 <td></td>
95                                 <td align="left" style="padding-top:5px;">
96                                     <input id="createButton" type="submit" class="btn" value="${ _("Create")}">
97                                     <button id="cancelButton"  type="button">${ _("Cancel")}</button>
98                                 </td>
99                             </tr>
100                             </form>
101                         </table>
102                         </div>
103                     </td>
104                 </tr>
105             </table>
106         </td>
107     </tr>
108     <tr>
109         <td colspan="3" class="horizontalLine">&nbsp;</td>
110     </tr>
111 </table>
113 <script type="text/javascript">
115 $E('createConditionButton').observeClick(function() {
116         $E('createConditionCell').dom.style.display = 'none';
117     $E('createConditionDisplay').dom.style.display = '';
120 $E('cancelButton').observeClick(function() {
121     $E('createConditionDisplay').dom.style.display = 'none';
122     $E('createConditionCell').dom.style.display = '';
125 function checkSelectCondition() {
126     if ($E('condTypeSelect').dom.value != 'accepted') {
127         $E('contribTypeSelect').dom.style.display = 'none';
128         $E('trackSelect').dom.style.display = 'none';
129     } else {
130         $E('contribTypeSelect').dom.style.display = '';
131         $E('trackSelect').dom.style.display = '';
132     }
135 checkSelectCondition();
137 </script>