Changeset 6759 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 14 Sep 2011, 02:02:05 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r6758 r6759 703 703 title = 'Start clearance' 704 704 label = 'Start clearance' 705 ac prefix = 'CLR'705 ac_prefix = 'CLR' 706 706 pnav = 4 707 707 buttonname = 'Start' 708 708 709 709 def update(self, SUBMIT=None): 710 # We must not use form.ac_series and form.ac_number in forms 711 # since these are interpreted as applicant credentials in the 712 # applicants package 713 self.acseries = self.request.form.get('form.acseries', None) 714 self.acnumber = self.request.form.get('form.acnumber', None) 710 self.ac_series = self.request.form.get('ac_series', None) 711 self.ac_number = self.request.form.get('ac_number', None) 715 712 716 713 if SUBMIT is None: 717 714 return 718 pin = '%s-%s-%s' % (self.ac prefix,self.acseries,self.acnumber)715 pin = '%s-%s-%s' % (self.ac_prefix, self.ac_series, self.ac_number) 719 716 code = get_access_code(pin) 720 717 if not code: -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/enterpin.pt
r6719 r6759 1 <h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2> 1 <h2 i18n:translate="" tal:condition="view/label" 2 tal:content="view/label">Label</h2> 2 3 <form method="POST"> 3 <input type="hidden" name="form.acprefix" value="" tal:attributes="value view/acprefix" />4 4 <table> 5 5 <tbody> 6 <tr><td> 7 <label for="ac_series">Access Code:</label> 8 </td><td> 9 <span tal:replace="view/ac_prefix">PIN Prefix</span> - 10 <input name="ac_series" type="text" size="3" maxlength="3" 11 value="" tal:attributes="value view/ac_series"/> - 12 <input name="ac_number" type="text" size="10" maxlength="10" 13 value="" tal:attributes="value view/ac_number" /></td> 14 </tr> 6 15 <tr> 7 <tr> <td> 8 <label for="form.acseries">Access Code: 9 </label></td> <td> 10 <span tal:replace="view/acprefix">PIN Prefix 11 </span> - 12 <input name="form.acseries" type="text" size="3" maxlength="3" value="" tal:attributes="value view/acseries"/> - 13 <input name="form.acnumber" type="text" size="10" maxlength="10" value="" tal:attributes="value view/acnumber" /> </td> 14 </tr> 15 <tr> 16 <td colspan="2"> 17 <input type="submit" name="SUBMIT" tal:attributes="value view/buttonname" /> </td> 18 </tr> 16 <td colspan="2"> 17 <input type="submit" name="SUBMIT" 18 tal:attributes="value view/buttonname" /> </td> 19 </tr> 19 20 </tbody> 20 21 </table>
Note: See TracChangeset for help on using the changeset viewer.