Changeset 6759


Ignore:
Timestamp:
14 Sep 2011, 02:02:05 (13 years ago)
Author:
uli
Message:

Same for clearance pin.

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  
    703703    title = 'Start clearance'
    704704    label = 'Start clearance'
    705     acprefix = 'CLR'
     705    ac_prefix = 'CLR'
    706706    pnav = 4
    707707    buttonname = 'Start'
    708708
    709709    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)
    715712
    716713        if SUBMIT is None:
    717714            return
    718         pin = '%s-%s-%s' % (self.acprefix,self.acseries,self.acnumber)
     715        pin = '%s-%s-%s' % (self.ac_prefix, self.ac_series, self.ac_number)
    719716        code = get_access_code(pin)
    720717        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>
    23<form method="POST">
    3   <input type="hidden" name="form.acprefix"  value="" tal:attributes="value view/acprefix" />
    44  <table>
    55    <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>
    615      <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>
    1920    </tbody>
    2021  </table>
Note: See TracChangeset for help on using the changeset viewer.