source: WAeUP_SRP/trunk/skins/waeup_student/add_student_form.pt @ 1425

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

empty matric_no catched

  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
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           >
10  <metal:block define-macro="edit_form">
11    <metal:block use-macro="here/content_lib_master/macros/master">
12      <metal:block fill-slot="header">
13      </metal:block>
14      <metal:block fill-slot="main">
15        <span tal:condition="python: mode == 'view'" tal:omit-tag="">
16        <h3>Notify Student of Authentication Data!</h3>
17        <br />
18          <table>
19            <tr>
20              <td>Student Id:</td>
21              <td tal:content="info/sid" />
22            </tr>               
23            <tr>
24              <td>Password:</td>
25              <td tal:content="info/password" />
26            </tr>               
27            <tr>
28              <td>Name:</td>
29              <td tal:content="student/name" />
30            </tr>               
31            <tr>
32              <td>Sex:</td>
33              <td tal:content="student/sex" />
34            </tr>               
35            <tr>
36              <td>Email:</td>
37              <td tal:content="student/email" />
38            </tr>               
39            <tr>
40              <td>Entry Mode:</td>
41              <td tal:content="student/entry_mode" />
42            </tr>       
43            <tr>
44              <td>Matric No:</td>
45              <td tal:content="student/matric_no" />
46            </tr>               
47            <tr>
48              <td>Study Course:</td>
49              <td tal:content="student/course" />
50            </tr>       
51            <tr>
52              <td>URL:</td>
53              <td><a tal:attributes="href string:${here/portal_url}/campus/students/${info/sid}">
54                <span tal:content="string:${here/portal_url}/campus/students/${info/sid}" /> 
55              </a></td>
56            </tr>                 
57          </table>
58         <form tal:attributes="action string:${here/portal_url}/campus/students/${info/sid}/mail_password_form" method="post" class="group">
59            <input type="submit" class="context" value="Send Email with Authentication Data" />
60         </form>
61        </span>
62        <span tal:condition="python: mode != 'view'" tal:omit-tag="">
63        <h3>Add Student Record!</h3>
64        <br />
65          <form action="" id="editForm" method="post"
66              enctype="multipart/form-data" class="workflow"
67              tal:attributes="action options/formaction"
68              >
69          <div tal:replace="structure rendered_main" />
70          <br />
71          <input type="submit" class="standalone" name="cpsdocument_edit_button"
72                 value="Save"
73                 id="cpsdocument_edit_button"
74                 tal:attributes="value options/button"
75                 />
76        </form>
77        </span>
78      </metal:block>
79      <metal:block fill-slot="sub">
80      </metal:block>
81    </metal:block>
82  </metal:block>
83</tal:block>
Note: See TracBrowser for help on using the repository browser.