1 | <tal:block define="rendered_main options/rendered; |
---|
2 | portal_status_message options/psm; |
---|
3 | info options/ds; |
---|
4 | mode options/mode; |
---|
5 | student options/student|nothing; |
---|
6 | formaction options/formaction|nothing; |
---|
7 | matric_no options/matric_no|nothing; |
---|
8 | name options/name|nothing; |
---|
9 | creation creation|nothing;" |
---|
10 | > |
---|
11 | <metal:block define-macro="edit_form"> |
---|
12 | <metal:block use-macro="here/content_lib_master/macros/master"> |
---|
13 | <metal:block fill-slot="header"> |
---|
14 | </metal:block> |
---|
15 | <metal:block fill-slot="main"> |
---|
16 | <span tal:condition="python: mode == 'view'" tal:omit-tag=""> |
---|
17 | <table> |
---|
18 | <tr> |
---|
19 | <td>Student Id:</td> |
---|
20 | <td tal:content="info/sid" /> |
---|
21 | </tr> |
---|
22 | <tr> |
---|
23 | <td>Password:</td> |
---|
24 | <td tal:content="info/password" /> |
---|
25 | </tr> |
---|
26 | <tr> |
---|
27 | <td>Name</td> |
---|
28 | <td tal:content="student/name" /> |
---|
29 | </tr> |
---|
30 | <tr> |
---|
31 | <td>Sex:</td> |
---|
32 | <td tal:content="student/sex" /> |
---|
33 | </tr> |
---|
34 | <tr> |
---|
35 | <td>Email:</td> |
---|
36 | <td tal:content="student/email" /> |
---|
37 | </tr> |
---|
38 | <tr> |
---|
39 | <td>Entry Mode:</td> |
---|
40 | <td tal:content="student/entry_mode" /> |
---|
41 | </tr> |
---|
42 | <tr> |
---|
43 | <td>Matric No</td> |
---|
44 | <td tal:content="student/matric_no" /> |
---|
45 | </tr> |
---|
46 | <tr> |
---|
47 | <td>Study Course</td> |
---|
48 | <td tal:content="student/course" /> |
---|
49 | </tr> |
---|
50 | </table> |
---|
51 | </span> |
---|
52 | <span tal:condition="python: mode != 'view'" tal:omit-tag=""> |
---|
53 | <form action="" id="editForm" method="post" |
---|
54 | enctype="multipart/form-data" class="workflow" |
---|
55 | tal:attributes="action options/formaction" |
---|
56 | > |
---|
57 | <div tal:replace="structure rendered_main" /> |
---|
58 | <br /> |
---|
59 | <input type="submit" class="standalone" name="cpsdocument_edit_button" |
---|
60 | value="Save" |
---|
61 | id="cpsdocument_edit_button" |
---|
62 | tal:attributes="value options/button" |
---|
63 | tal:condition="not:creation" /> |
---|
64 | <input type="submit" |
---|
65 | class="standalone" |
---|
66 | name="cpsdocument_create_button" |
---|
67 | value="apply" |
---|
68 | tal:attributes="value options/button" |
---|
69 | tal:condition="creation" /> |
---|
70 | |
---|
71 | </form> |
---|
72 | </span> |
---|
73 | </metal:block> |
---|
74 | <metal:block fill-slot="sub"> |
---|
75 | </metal:block> |
---|
76 | </metal:block> |
---|
77 | </metal:block> |
---|
78 | </tal:block> |
---|