[1062] | 1 | <metal:html tal:define="info options/info; |
---|
| 2 | rendered options/rendered; |
---|
| 3 | mtool here/portal_membership; |
---|
| 4 | member mtool/getAuthenticatedMember; |
---|
| 5 | "> |
---|
[535] | 6 | <metal:body use-macro="here/main_template/macros/master"> |
---|
| 7 | <metal:main fill-slot="main"> |
---|
| 8 | <span tal:condition="isAnon"> |
---|
| 9 | </span> |
---|
[1064] | 10 | <h3>Search PIN Section</h3> |
---|
| 11 | <br /> |
---|
[535] | 12 | <span tal:condition="not:isAnon"> |
---|
[1062] | 13 | <span tal:replace="structure rendered" /> |
---|
| 14 | <form action="." method="post"> |
---|
| 15 | <table> |
---|
| 16 | <tr tal:repeat="pin info/used"> |
---|
| 17 | <td> |
---|
| 18 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
| 19 | tal:define="id string:${pin/serial}_${pin/prefix}" |
---|
| 20 | tal:attributes="value id; |
---|
| 21 | id python:'cb_' + id;" |
---|
| 22 | /> |
---|
| 23 | </td> |
---|
| 24 | <td width="50px"> <span tal:content="pin/serial" />: </td> |
---|
| 25 | <td tal:content="pin/pin" /> |
---|
| 26 | <td tal:content="pin/student_id" /> |
---|
[2140] | 27 | <td> |
---|
[1062] | 28 | <a tal:condition="pin/student_url" href="" tal:content="pin/student" |
---|
| 29 | tal:attributes="href pin/student_url"></a> |
---|
[2140] | 30 | <span tal:condition="python: not pin['student_url'] and not pin['student'].startswith('disabled')" tal:content="pin/student" /> |
---|
[1062] | 31 | </td> |
---|
| 32 | </tr> |
---|
| 33 | </table> |
---|
[1064] | 34 | |
---|
| 35 | <span tal:condition="info/used"> |
---|
| 36 | <br /> |
---|
| 37 | <input type="submit" name="disable_pins:method" |
---|
| 38 | value="disable pins" |
---|
| 39 | class="destructive" |
---|
| 40 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
| 41 | (cpsmcat('really disable ?'), )" |
---|
| 42 | /> |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | <input type="submit" name="enable_pins:method" |
---|
| 47 | value="enable pins" |
---|
| 48 | class="destructive" |
---|
| 49 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
| 50 | (cpsmcat('really enable ?'), )" |
---|
| 51 | /> |
---|
| 52 | <br /> |
---|
| 53 | </span> |
---|
| 54 | |
---|
[1062] | 55 | </form> |
---|
[1064] | 56 | <br /> |
---|
| 57 | <h3>PIN Batches</h3> |
---|
[3076] | 58 | <form action="." method="post" class="group" |
---|
| 59 | tal:define="rows info/batches; |
---|
| 60 | choosen_ids info/choosen_ids|python:[]" |
---|
| 61 | > |
---|
| 62 | <table class="contentListing" width="100%"> |
---|
| 63 | <tr tal:repeat="line rows" |
---|
| 64 | tal:attributes="class python:test(repeat['line'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
| 65 | <span tal:repeat="row line"> |
---|
| 66 | <td align="left" valign="middle" style="width: 5px;"> |
---|
| 67 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
| 68 | tal:define="id row" |
---|
| 69 | tal:attributes="value id; |
---|
| 70 | id python:'cb_' + id; |
---|
| 71 | checked python:id in choosen_ids;" |
---|
| 72 | /> |
---|
| 73 | </td> |
---|
| 74 | <td><a href="view" tal:attributes="href string:${context/absolute_url}/${row}"> |
---|
| 75 | <strong tal:content="row" /></a> </td> |
---|
| 76 | </span> |
---|
| 77 | </tr> |
---|
| 78 | </table> |
---|
| 79 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
| 80 | class="folderButtons"> |
---|
| 81 | <tr> |
---|
| 82 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 83 | <td align="left" valign="top"> |
---|
| 84 | <input tal:condition="nothing" type="button" value="button_select_all" class="context" |
---|
| 85 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
| 86 | i18n:attributes="value" |
---|
| 87 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
| 88 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
| 89 | /> |
---|
[3077] | 90 | <input type="submit" name="archive:method" value="Archive" |
---|
[3076] | 91 | class="destructive" i18n:attributes="value" |
---|
| 92 | /> |
---|
[3077] | 93 | <input type="submit" name="archive_delete:method" value="Archive & Delete" |
---|
[3076] | 94 | class="destructive" i18n:attributes="value" |
---|
| 95 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
[3077] | 96 | ('Do you really want to delete the pin batch?', )" |
---|
[3076] | 97 | /> |
---|
| 98 | </td> |
---|
| 99 | </tr> |
---|
| 100 | </table> |
---|
| 101 | </form> |
---|
| 102 | <form action="." method="get" tal:condition="nothing"> |
---|
[1062] | 103 | <select class="form-element" name=":action" |
---|
| 104 | tal:attributes="onChange string:location.href='${context/absolute_url}/'+this.options[this.selectedIndex].value" |
---|
| 105 | > |
---|
| 106 | <option value="--">Goto Batch ...</option> |
---|
[2766] | 107 | <option tal:repeat="batch info/batches" |
---|
[1062] | 108 | tal:attributes="value batch" |
---|
| 109 | tal:content="batch"> |
---|
| 110 | </option> |
---|
| 111 | </select> |
---|
| 112 | </form> |
---|
[535] | 113 | </span> |
---|
| 114 | </metal:main> |
---|
| 115 | </metal:body> |
---|
| 116 | </metal:html> |
---|