1 | <tal:block define="global creation python:1" /> |
---|
2 | <metal:block define-macro="default_edit" |
---|
3 | tal:define="layout options/layout; |
---|
4 | ds options/datastructure; |
---|
5 | creation creation|nothing; |
---|
6 | metadata metadata|nothing; |
---|
7 | type_name request/type_name|nothing; |
---|
8 | ti python:type_name and getattr(here.portal_types,type_name,None) or getattr(here.portal_types,here.portal_type,None); |
---|
9 | creation_form python:ti and ti.getActionById('create', 'cpsdocument_create_form') or 'cpsdocument_create_form' ; |
---|
10 | edit_form python:ti and ti.getActionById('edit', 'cpsdocument_edit_form') or 'cpsdocument_edit_form'; |
---|
11 | metadata_form python:ti and ti.getActionById('metadata', 'cpsdocument_metadata') or 'cpsdocument_metadata'; |
---|
12 | formaction options/formaction; |
---|
13 | first_layout options/first_layout|python:0; |
---|
14 | last_layout options/last_layout|python:0; |
---|
15 | is_flexible options/is_flexible; |
---|
16 | cpsmcat nocall:here/translation_service; |
---|
17 | results options/schoolresults; |
---|
18 | " |
---|
19 | > |
---|
20 | <form action='eligibility' method='post' tal:attributes="action formaction" |
---|
21 | enctype='multipart/form-data' class='workflow'> |
---|
22 | <table cellspacing="0" cellpadding="2" border="0" width="100%" tal:condition="results|nothing"> |
---|
23 | <tr> |
---|
24 | <td align="left" valign="top"> |
---|
25 | |
---|
26 | </td> |
---|
27 | <td align="left" valign="top"> |
---|
28 | <div class="label">Type</div> |
---|
29 | </td> |
---|
30 | <td align="left" valign="top"> |
---|
31 | <div class="label">Subject</div> |
---|
32 | </td> |
---|
33 | <td align="left" valign="top"> |
---|
34 | <div class="label">Result</div> |
---|
35 | </td> |
---|
36 | </tr> |
---|
37 | <span tal:repeat="row results" tal:omit-tag=""> |
---|
38 | <tr tal:define="rindex repeat/row/index"> |
---|
39 | <td align="left" valign="top"> |
---|
40 | <input type="checkbox" name="keys:list" value="100" tal:attributes="value string:${repeat/row/index}"/> |
---|
41 | </td> |
---|
42 | <td align="left" valign="top"> |
---|
43 | <div class="field"> |
---|
44 | <input type="text" name="key_0" value="100" size="20" |
---|
45 | tal:attributes="name string:type_${rindex};value python:row[0]" /> |
---|
46 | </div> |
---|
47 | </td> |
---|
48 | <td align="left"> |
---|
49 | <div class="field"> |
---|
50 | <input type="text" name="label_0" value="Year 1 (100 Level)" size="40" |
---|
51 | tal:attributes="name string:subject_${rindex};value python:row[1]" /> |
---|
52 | </div> |
---|
53 | </td> |
---|
54 | <td align="left"> |
---|
55 | <div class="field"> |
---|
56 | <input type="text" name="msgid_0" value="" size="10" |
---|
57 | tal:attributes="name string:result_${rindex};value python:row[2]" /> |
---|
58 | </div> |
---|
59 | </td> |
---|
60 | </tr> |
---|
61 | </span> |
---|
62 | <tr> |
---|
63 | <td align="left" colspan="3"> |
---|
64 | <input class="standalone" type="submit" name="change" value=" Change " /> |
---|
65 | <input class="standalone" type="submit" name="delete" value=" Delete " /> |
---|
66 | </td> |
---|
67 | </tr> |
---|
68 | </table> |
---|
69 | <table cellspacing="0" cellpadding="2" border="0" width="100%"> |
---|
70 | <tr> |
---|
71 | <td align="left" valign="top" colspan="2"> |
---|
72 | <div>Add a new postprimary school result</div> |
---|
73 | </td> |
---|
74 | </tr> |
---|
75 | <tr> |
---|
76 | <td align="left" valign="top"> |
---|
77 | |
---|
78 | </td> |
---|
79 | <td align="left" valign="top"> |
---|
80 | <div class="label">Type</div> |
---|
81 | </td> |
---|
82 | <td align="left" valign="top"> |
---|
83 | <div class="label">Subject</div> |
---|
84 | </td> |
---|
85 | <td align="left" valign="top"> |
---|
86 | <div class="label">Result</div> |
---|
87 | </td> |
---|
88 | </tr> |
---|
89 | <tr> |
---|
90 | <td align="left" valign="top"> |
---|
91 | |
---|
92 | </td> |
---|
93 | <td align="left" valign="top"> |
---|
94 | <div class="field"> |
---|
95 | <input type="text" name="type" value="" size="20" /> |
---|
96 | </div> |
---|
97 | </td> |
---|
98 | <td align="left"> |
---|
99 | <div class="field"> |
---|
100 | <input type="text" name="subject" value="" size="40" /> |
---|
101 | </div> |
---|
102 | </td> |
---|
103 | <td align="left"> |
---|
104 | <div class="field"> |
---|
105 | <input type="text" name="result" value="" size="10" /> |
---|
106 | </div> |
---|
107 | </td> |
---|
108 | </tr> |
---|
109 | <tr> |
---|
110 | <td align="left" colspan="3"> |
---|
111 | <input class="standalone" type="submit" name="add" value=" Add " /> |
---|
112 | </td> |
---|
113 | </tr> |
---|
114 | </table> |
---|
115 | </form> |
---|
116 | </metal:block> |
---|
117 | |
---|