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

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

links to athentication mail and student record added

  • Property svn:keywords set to Id
File size: 3.3 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           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            <tr>
51              <td>URL:</td>
52              <td><a tal:attributes="href string:${here/portal_url}/campus/students/${info/sid}">
53                <span tal:content="string:${here/portal_url}/campus/students/${info/sid}" /> 
54              </a></td>
55            </tr>                 
56          </table>
57         <form tal:attributes="action string:${here/portal_url}/campus/students/${info/sid}/mail_password_form" method="post" class="group">
58            <input type="submit" class="context" value="Send Email with Authentication Data" />
59         </form>
60        </span>
61        <span tal:condition="python: mode != 'view'" tal:omit-tag="">
62          <form action="" id="editForm" method="post"
63              enctype="multipart/form-data" class="workflow"
64              tal:attributes="action options/formaction"
65              >
66          <div tal:replace="structure rendered_main" />
67          <br />
68          <input type="submit" class="standalone" name="cpsdocument_edit_button"
69                 value="Save"
70                 id="cpsdocument_edit_button"
71                 tal:attributes="value options/button"
72                 tal:condition="not:creation" />
73          <input type="submit"
74                 class="standalone"
75                 name="cpsdocument_create_button"
76                 value="apply"
77                 tal:attributes="value options/button"
78                 tal:condition="creation" />
79         
80        </form>
81        </span>
82      </metal:block>
83      <metal:block fill-slot="sub">
84      </metal:block>
85    </metal:block>
86  </metal:block>
87</tal:block>
Note: See TracBrowser for help on using the repository browser.