[FIX] Error reports
[cds-indico.git] / indico / MaKaC / webinterface / tpls / ConfModifEPayment.tpl
blobb7b012241120ec697d4d85945bbfefe1f72a2701
2 <br>
3 <table width="90%" align="left" border="0">
4     <tr>
5         <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Current status")}</span></td>
6         <td bgcolor="white" width="100%" class="blacktext" colspan="2">
7             <form action="${ setStatusURL }" method="POST">
8                 <input name="changeTo" type="hidden" value="${ changeTo }">
9                 <b>${ status }</b>
10                 <small><input type="submit" value="${ changeStatus }"></small>
11             </form>
12         </td>
13     </tr>
14     <tr>
15         <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Currency")}</span></td>
16         <td class="blacktext" style=${"color:red;font-weight:bold;" if Currency ==_("not selected") else "" }>
17             ${ Currency }
18         </td>
19     </tr></tr>
20     <tr>
21         <td class="dataCaptionTD"><span class="dataCaptionFormat"> ${ _("Detail of Payment")}</span></td>
22         <td bgcolor="white" width="100%" class="blacktext">
23            <TEXTAREA ROWS="6" COLS="60" disabled="true" >${ detailPayment }</TEXTAREA>
24         </td>
25         <td valign="bottom" rowspan="3">
26         <form action="${ dataModificationURL }" method="POST">
27             <input type="submit" value="${ _("modify")}" ${ disabled }>
28         </form>
29         </td>
30     </tr>
32 from MaKaC.common import HelperMaKaCInfo
33 minfo = HelperMaKaCInfo.getMaKaCInfoInstance()
34 al = minfo.getAdminList()
36 % if al.isAdmin( self_._rh._getUser() ):
37     <tr>
38         <td class="dataCaptionTD"><span class="dataCaptionFormat">${ _("Mandatory Conditions")}</span></td>
39         <td bgcolor="white" width="100%" class="blacktext">
40            ${ _("This conditions are:")} <b>${ conditionsEnabled }</b>
41            <br/>
42            <TEXTAREA ROWS="6" COLS="60" disabled="true" >${ conditionsPayment }</TEXTAREA>
43            <br/>
44         </td>
45         <td></td>
46     </tr>
47 % endif
48     <tr>
49         <td class="dataCaptionTD"><span class="dataCaptionFormat">Conditions</span></td>
50         <td bgcolor="white" width="100%" class="blacktext">
51            <TEXTAREA ROWS="6" COLS="60" disabled="true" >${ specificConditionsPayment }</TEXTAREA>
52            <br/>
53         </td>
54         <td></td>
55     </tr>
56     <tr>
57         <td class="dataCaptionTD"><span class="dataCaptionFormat">${ _("Payment Summary Email Message")}</span></td>
58         <td bgcolor="white" width="100%" class="blacktext">
59            <textarea rows="6" cols="60" disabled="disabled">${ receiptMsgPayment }</textarea>
60            <br/>
61         </td>
62         <td></td>
63     </tr>
64     <tr>
65         <td class="dataCaptionTD"><span class="dataCaptionFormat">${ _("Success Email Message")}</span></td>
66         <td bgcolor="white" width="100%" class="blacktext">
67            <textarea rows="6" cols="60" disabled="disabled">${ successMsgPayment }</textarea>
68            <br/>
69         </td>
70         <td></td>
71     </tr>
72     <tr>
73         <td colspan="3" class="horizontalLine">&nbsp;</td>
74     </tr>
75     <tr>
76         <td class="dataCaptionTD">
77           <span class="dataCaptionFormat"> ${ _("Mod of Payments")}</span>
78           <br>
79           <br>
80           <img src=${ enablePic } alt="${ _("Click to disable")}"> <small> ${ _("Enabled section")}</small>
81           <br>
82           <img src=${ disablePic } alt="${ _("Click to enable")}"> <small> ${ _("Disabled section")}</small>
83         </td>
84         <td bgcolor="white" width="100%" class="blacktext" style="padding-left:20px">
85             <form action="" method="POST">
86             ${ sections }
87         </td>
88         </form>
89     </tr>
90     <tr>
91         <td colspan="3" class="horizontalLine">&nbsp;</td>
92     </tr>
93 </table>
94 <br>