Changeset 7735
- Timestamp:
- 29 Feb 2012, 23:05:58 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7734 r7735 169 169 grok.template('containerpage') 170 170 label = _('Student Section') 171 search_button = _('Search') 171 172 pnav = 4 172 173 … … 202 203 pnav = 4 203 204 label = _('Manage student section') 205 search_button = _('Search') 206 remove_button = _('Remove selected') 204 207 205 208 def update(self, *args, **kw): -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/accommodationmanagepage.pt
r7464 r7735 1 1 <form action="." tal:attributes="action request/URL" method="POST" 2 enctype="multipart/form-data">2 i18n:domain="waeup.sirp" enctype="multipart/form-data"> 3 3 4 4 <table class="display dataTableManage"> … … 6 6 <tr> 7 7 <th tal:condition="not: layout/isStudent"> </th> 8 <th >Session</th>9 <th >Booking Date</th>10 <th >Bed Coordinates</th>11 <th >Bed Category</th>8 <th i18n:translate="">Session</th> 9 <th i18n:translate="">Booking Date</th> 10 <th i18n:translate="">Bed Coordinates</th> 11 <th i18n:translate="">Bed Category</th> 12 12 </tr> 13 13 </thead> -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/basemanagepage.pt
r7669 r7735 1 1 <form action="." tal:attributes="action request/URL" method="post" 2 enctype="multipart/form-data">2 i18n:domain="waeup.sirp" enctype="multipart/form-data"> 3 3 4 4 <ul class="tabs" data-tabs="tabs"> 5 <li tal:attributes="class view/tab1"><a href="#tab-1"><span>Base Data</span></a></li> 6 <li tal:attributes="class view/tab2"><a href="#tab-2"><span>Passport Picture</span></a></li> 5 <li tal:attributes="class view/tab1"><a href="#tab-1"> 6 <span i18n:translate="">Base Data</span></a></li> 7 <li tal:attributes="class view/tab2"><a href="#tab-2"> 8 <span i18n:translate="">Passport Picture</span></a></li> 7 9 </ul> 8 10 … … 15 17 <td class="fieldname"> 16 18 <span tal:condition="widget/required">*</span> 17 <span tal:content="widget/label"> label</span>:19 <span tal:content="widget/label">LABEL</span>: 18 20 </td> 19 21 <td> … … 22 24 </span> 23 25 <tal:error tal:condition="widget/error"> 24 <span tal:replace="structure widget/error"> error</span>26 <span tal:replace="structure widget/error">ERROR</span> 25 27 </tal:error> 26 28 <tal:hint tal:condition="widget/hint"> 27 <span tal:content="structure widget/hint"> hint</span>29 <span tal:content="structure widget/hint">HINT</span> 28 30 </tal:hint> 29 31 </td> … … 31 33 </tal:block> 32 34 <tr> 33 <td class="fieldname" >Password:</td>35 <td class="fieldname" i18n:translate="">Password:</td> 34 36 <td> 35 37 <input name="password" type="password" /> … … 37 39 </tr> 38 40 <tr> 39 <td class="fieldname" >Retype password:</td>41 <td class="fieldname" i18n:translate="">Retype password:</td> 40 42 <td> 41 43 <input name="control_password" type="password" /> … … 43 45 </tr> 44 46 <tr> 45 <td class="fieldname" >Registration Transition:</td>47 <td class="fieldname" i18n:translate="">Registration Transition:</td> 46 48 <td> 47 49 <select id="transition" name="transition"> -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/basepage.pt
r7464 r7735 1 <table class="form-table">1 <table i18n:domain="waeup.sirp" class="form-table"> 2 2 <tbody> 3 3 <tal:block repeat="widget view/widgets"> … … 12 12 </tal:block> 13 13 <tr> 14 <td class="fieldname" >14 <td class="fieldname" i18n:translate=""> 15 15 Password: 16 16 </td> -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/change_password.pt
r7464 r7735 1 1 <form action="." tal:attributes="action request/URL" method="post" 2 enctype="multipart/form-data">2 i18n:domain="waeup.sirp" enctype="multipart/form-data"> 3 3 4 4 <input type="hidden" name="student_id" value="" … … 8 8 <tbody> 9 9 <tr> 10 <td class="fieldname" >Password:</td>10 <td class="fieldname" i18n:translate="">Password:</td> 11 11 <td> 12 12 <input name="change_password" type="password" /> … … 14 14 </tr> 15 15 <tr> 16 <td class="fieldname" >Retype password:</td>16 <td class="fieldname" i18n:translate="">Retype password:</td> 17 17 <td> 18 18 <input name="change_password_repeat" type="password" /> -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/changepw.pt
r7669 r7735 1 1 <form action="." tal:attributes="action request/URL" method="post" 2 enctype="multipart/form-data">2 i18n:domain="waeup.sirp" enctype="multipart/form-data"> 3 3 4 4 <table class="form-table"> … … 8 8 <td class="fieldname"> 9 9 <span tal:condition="widget/required">*</span> 10 <span tal:content="widget/label"> label</span>:10 <span tal:content="widget/label">LABEL</span>: 11 11 </td> 12 12 <td> … … 15 15 </span> 16 16 <tal:error tal:condition="widget/error"> 17 <span tal:replace="structure widget/error"> error</span>17 <span tal:replace="structure widget/error">ERROR</span> 18 18 </tal:error> 19 19 <tal:hint tal:condition="widget/hint"> 20 <span tal:content="structure widget/hint"> hint</span>20 <span tal:content="structure widget/hint">HINT</span> 21 21 </tal:hint> 22 22 </td> -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/clearanceeditpage.pt
r7669 r7735 1 1 <form action="." tal:attributes="action request/URL" method="post" 2 enctype="multipart/form-data">2 i18n:domain="waeup.sirp" enctype="multipart/form-data"> 3 3 4 4 <ul class="tabs" data-tabs="tabs"> 5 <li tal:attributes="class view/tab1"><a href="#tab-1"><span>Clearance Data</span></a></li> 6 <li tal:attributes="class view/tab2"><a href="#tab-2"><span>Scans</span></a></li> 5 <li tal:attributes="class view/tab1"><a href="#tab-1"> 6 <span i18n:translate="">Clearance Data</span></a></li> 7 <li tal:attributes="class view/tab2"><a href="#tab-2"> 8 <span i18n:translate="">Scans</span></a></li> 7 9 </ul> 8 10 <div class="tab-content"> … … 14 16 <td class="fieldname"> 15 17 <span tal:condition="widget/required">*</span> 16 <span tal:content="widget/label"> label</span>:18 <span tal:content="widget/label">LABEL</span>: 17 19 </td> 18 20 <td> … … 21 23 </span> 22 24 <tal:error tal:condition="widget/error"> 23 <span tal:replace="structure widget/error"> error</span>25 <span tal:replace="structure widget/error">ERROR</span> 24 26 </tal:error> 25 27 <tal:hint tal:condition="widget/hint"> 26 <span tal:content="structure widget/hint"> hint</span>28 <span tal:content="structure widget/hint">HINT</span> 27 29 </tal:hint> 28 30 </td> -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/containermanagepage.pt
r7641 r7735 1 <form method="POST" >1 <form method="POST" i18n:domain="waeup.sirp"> 2 2 <br /> 3 <input class="btn primary" type="submit" name="search" value="Search" /> 4 for students 3 <input class="btn primary" type="submit" name="search" 4 tal:attributes="value view/search_button" /> 5 <span i18n:translate="">for students</span> 5 6 6 7 <select name="searchtype"> 7 <option value="student_id">with id</option>8 <option value="fullname">with name</option>9 <option value="reg_number">with registration number</option>10 <option value="matric_number">with matriculation number</option>11 <option value="current_session">in session</option>12 <option value="depcode">in department</option>13 <option value="current_mode">in study mode</option>8 <option i18n:translate="" value="student_id">with id</option> 9 <option i18n:translate="" value="fullname">with name</option> 10 <option i18n:translate="" value="reg_number">with registration number</option> 11 <option i18n:translate="" value="matric_number">with matriculation number</option> 12 <option i18n:translate="" value="current_session">in session</option> 13 <option i18n:translate="" value="depcode">in department</option> 14 <option i18n:translate="" value="current_mode">in study mode</option> 14 15 </select> 15 16 … … 24 25 tal:attributes="value view/searchtype" /> 25 26 26 <input type="checkbox" onClick="toggle(this, 'entries')" /> Select all 27 <input type="checkbox" onClick="toggle(this, 'entries')" /> 28 <span i18n:translate="">Select all</span> 27 29 <br /><br /> 28 30 … … 31 33 <tr> 32 34 <th> </th> 33 <th >Student Id</th>34 <th >Reg. Number</th>35 <th >Matric. Number</th>36 <th >State</th>37 <th >Full Name</th>35 <th i18n:translate="">Student Id</th> 36 <th i18n:translate="">Reg. Number</th> 37 <th i18n:translate="">Matric. Number</th> 38 <th i18n:translate="">State</th> 39 <th i18n:translate="">Full Name</th> 38 40 </tr> 39 41 </thead> … … 57 59 </table> 58 60 59 <input type="submit" name="remove" value="Remove selected" class="btn" 61 <input type="submit" name="remove" 62 tal:attributes="value view/remove_button" class="btn" 60 63 onclick="return confirmPost('Are you sure?')"/> 61 64 -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/containerpage.pt
r7641 r7735 1 <form method="POST" >1 <form method="POST" i18n:domain="waeup.sirp"> 2 2 <br /> 3 <input class="btn primary" type="submit" name="search" value="Search" /> 4 for students 3 <input class="btn primary" type="submit" name="search" 4 tal:attributes="value view/search_button" /> 5 <span i18n:translate="">for students</span> 5 6 6 7 <select name="searchtype"> 7 <option value="student_id">with id</option>8 <option value="fullname">with name</option>9 <option value="reg_number">with registration number</option>10 <option value="matric_number">with matriculation number</option>11 <option value="current_session">in session</option>12 <option value="depcode">in department</option>13 <option value="current_mode">in study mode</option>8 <option i18n:translate="" value="student_id">with id</option> 9 <option i18n:translate="" value="fullname">with name</option> 10 <option i18n:translate="" value="reg_number">with registration number</option> 11 <option i18n:translate="" value="matric_number">with matriculation number</option> 12 <option i18n:translate="" value="current_session">in session</option> 13 <option i18n:translate="" value="depcode">in department</option> 14 <option i18n:translate="" value="current_mode">in study mode</option> 14 15 </select> 15 16 … … 18 19 <p> </p> 19 20 <div tal:condition="view/hitlist"> 20 <h3 >Search Results</h3>21 <h3 i18n:translate="">Search Results</h3> 21 22 <input type="hidden" name="old_searchterm" 22 23 tal:attributes="value view/searchterm" /> … … 26 27 <thead> 27 28 <tr> 28 <th >Student Id</th>29 <th >Reg. Number</th>30 <th >Matric. Number</th>31 <th >State</th>32 <th >Full Name</th>29 <th i18n:translate="">Student Id</th> 30 <th i18n:translate="">Reg. Number</th> 31 <th i18n:translate="">Matric. Number</th> 32 <th i18n:translate="">State</th> 33 <th i18n:translate="">Full Name</th> 33 34 </tr> 34 35 </thead> -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/courseticketmanagepage.pt
r7669 r7735 1 1 <form action="." tal:attributes="action request/URL" method="post" 2 enctype="multipart/form-data">2 i18n:domain="waeup.sirp" enctype="multipart/form-data"> 3 3 4 4 <table class="form-table"> 5 5 <tbody> 6 6 <tr> 7 <td class="fieldname" >7 <td class="fieldname" i18n:translate=""> 8 8 Course Title: 9 9 </td> … … 13 13 </tr> 14 14 <tr> 15 <td class="fieldname" >15 <td class="fieldname" i18n:translate=""> 16 16 Faculty: 17 17 </td> … … 21 21 </tr> 22 22 <tr> 23 <td class="fieldname" >23 <td class="fieldname" i18n:translate=""> 24 24 Department: 25 25 </td> … … 29 29 </tr> 30 30 <tr> 31 <td class="fieldname" >31 <td class="fieldname" i18n:translate=""> 32 32 Semester: 33 33 </td> … … 37 37 </tr> 38 38 <tr> 39 <td class="fieldname" >39 <td class="fieldname" i18n:translate=""> 40 40 Credits: 41 41 </td> … … 45 45 </tr> 46 46 <tr> 47 <td class="fieldname" >47 <td class="fieldname" i18n:translate=""> 48 48 Passmark: 49 49 </td> … … 56 56 <td class="fieldname"> 57 57 <span tal:condition="widget/required">*</span> 58 <span tal:content="widget/label"> label</span>:58 <span tal:content="widget/label">LABEL</span>: 59 59 </td> 60 60 <td> … … 63 63 </span> 64 64 <tal:error tal:condition="widget/error"> 65 <span tal:replace="structure widget/error"> error</span>65 <span tal:replace="structure widget/error">ERROR</span> 66 66 </tal:error> 67 67 <tal:hint tal:condition="widget/hint"> 68 <span tal:content="structure widget/hint"> hint</span>68 <span tal:content="structure widget/hint">HINT</span> 69 69 </tal:hint> 70 70 </td> -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/courseticketpage.pt
r7549 r7735 1 <table class="form-table" >1 <table class="form-table" i18n:domain="waeup.sirp"> 2 2 <tbody> 3 3 <tr> -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/enterpin.pt
r7622 r7735 1 <form method="POST" >1 <form method="POST" i18n:domain="waeup.sirp"> 2 2 <table class="form-table"> 3 3 <tbody> 4 <tr><td> 4 <tr> 5 <td i18n:translate=""> 5 6 Activation Code: 6 </td><td> 7 </td> 8 <td> 7 9 <span tal:replace="view/ac_prefix">PIN Prefix</span> - 8 10 <input name="ac_series" type="text" class="span1" maxlength="3" -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/fileupload.pt
r7669 r7735 1 <tr >1 <tr i18n:domain="waeup.sirp"> 2 2 <td class="fieldname"> 3 3 <span tal:replace="viewlet/label">FILENAME</span>: … … 5 5 <td> 6 6 <span class="widget"> 7 8 7 <tal:file tal:condition="viewlet/file_exists"> 9 8 <a tal:attributes="href viewlet/download_name" … … 18 17 <input type="submit" tal:condition="viewlet/file_exists" 19 18 tal:attributes="id python:('delete_%s' % viewlet.input_name); 20 name python:('delete_%s' % viewlet.input_name)" 21 value="Delete attachment" class="btn error" /> 19 name python:('delete_%s' % viewlet.input_name); 20 value viewlet/delete_button" 21 class="btn error" /> 22 22 <input type="submit" 23 23 tal:attributes="id python:('upload_%s' % viewlet.input_name); 24 name python:('upload_%s' % viewlet.input_name)" 25 value="Upload new file" class="btn primary" /> 26 <span i18n:translate="max_file_size"> 24 name python:('upload_%s' % viewlet.input_name); 25 value viewlet/upload_button" 26 class="btn primary" /> 27 <span i18n:translate=""> 27 28 Max. file size: 28 29 </span> -
main/waeup.sirp/trunk/src/waeup/sirp/students/viewlets.py
r7694 r7735 22 22 from waeup.sirp.interfaces import ( 23 23 ISIRPObject, IExtFileStore, IFileStoreNameChooser) 24 from waeup.sirp.interfaces import MessageFactory as _ 24 25 from waeup.sirp.utils.helpers import string_from_bytes, file_size 25 26 from waeup.sirp.browser import DEFAULT_IMAGE_PATH … … 624 625 tab_redirect = '?tab2' 625 626 mus = 1024 * 150 627 upload_button =_('Upload new file') 628 delete_button = _('Delete attachment') 626 629 627 630 @property
Note: See TracChangeset for help on using the changeset viewer.