source: WAeUP_SRP/trunk/skins/waeup_pins/pins_view.pt @ 1853

Last change on this file since 1853 was 1064, checked in by Henrik Bettermann, 18 years ago

PIN search beautyfied

  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1<metal:html tal:define="info options/info;
2                        rendered options/rendered;
3                        mtool here/portal_membership;
4                        member mtool/getAuthenticatedMember;
5                        ">
6  <metal:body use-macro="here/main_template/macros/master">
7    <metal:main fill-slot="main">
8      <span tal:condition="isAnon">
9      </span> 
10      <h3>Search PIN Section</h3>
11      <br />     
12      <span tal:condition="not:isAnon">
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" />
27            <td tal:condition="pin/student_url">
28              <a tal:condition="pin/student_url" href="" tal:content="pin/student"
29                 tal:attributes="href pin/student_url"></a>
30              <span tal:condition="not: pin/student_url" tal:content="pin/student" />
31            </td>
32          </tr>
33        </table>
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        &nbsp;
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
55      </form>
56      <br />
57      <h3>PIN Batches</h3>
58      <br />
59      <form action="." method="get">
60        <select class="form-element" name=":action"
61                tal:attributes="onChange string:location.href='${context/absolute_url}/'+this.options[this.selectedIndex].value"
62                >
63          <option value="--">Goto Batch ...</option>
64          <option tal:repeat="batch context/objectIds"
65                  tal:attributes="value batch"
66                  tal:content="batch">
67          </option>
68        </select>
69      </form>
70      </span>
71    </metal:main>
72  </metal:body>
73</metal:html>
Note: See TracBrowser for help on using the repository browser.