Changeset 6110 for main/waeup.sirp/trunk/src
- Timestamp:
- 16 May 2011, 08:22:14 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/authentication.py
r6043 r6110 137 137 138 138 loginpagename = 'login' 139 accesscode_prefix_field = 'form. prefix'139 accesscode_prefix_field = 'form.ac_prefix' 140 140 accesscode_series_field = 'form.ac_series' 141 141 accesscode_number_field = 'form.ac_number' -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6108 r6110 148 148 def update(self): 149 149 datepicker.need() # Enable jQuery datepicker in date fields. 150 from waeup.sirp.browser.resources import jqueryui151 jqueryui.need()150 #from waeup.sirp.browser.resources import jqueryui 151 #jqueryui.need() 152 152 return super(ApplicantsContainerAddFormPage, self).update() 153 153 … … 285 285 grok.require('zope.Public') 286 286 287 title = u'Login' 287 @property 288 def title(self): 289 return u"Applicant Login: %s" % self.context.title 288 290 289 291 @property 290 292 def label(self): 291 return self.title 292 293 pnav = 3 294 prefix = u'APP' 293 return u'Login for applicants only' 294 295 pnav = 3 296 297 @property 298 def ac_prefix(self): 299 return self.context.ac_prefix 295 300 296 301 def update(self, SUBMIT=None): -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt
r6107 r6110 72 72 <thead> 73 73 <tr> 74 <th> ID</th><th>status</th>74 <th> </th><th>ID</th><th>status</th> 75 75 </tr> 76 76 </thead> … … 80 80 <input type="checkbox" 81 81 name="val_id" 82 tal:attributes="value appl/_ name_" />82 tal:attributes="value appl/__name__" /> 83 83 </td> 84 84 <td> -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/loginapplicant.pt
r5887 r6110 1 <h3> 2 Applicant login 3 <span tal:on-error="nothing"> 4 (<span tal:replace="view/getCurrentSession">2010/2011</span>) 5 </span> 6 </h3> 7 <div> 8 This Login is for applicants only! 9 </div> 1 <h2 i18n:translate="" 2 tal:condition="view/label" 3 tal:content="view/label">Label</h2> 4 5 10 6 <form method="POST"> 7 <input type="hidden" name="form.ac_prefix" 8 value="" tal:attributes="value view/ac_prefix" /> 11 9 <table> 12 10 <tbody> 13 11 <tr> 14 <input type="hidden" name="form.prefix" value="APP" />15 <td><label for="form.ac_series">Access Code</label></td>16 <td>17 APP-<input name="form.ac_series" type="text" size="3" maxlength="3"18 value="" tal:attributes="value view/ac_series" 19 />-<input name="form.ac_number" type="text" size="10" maxlength="10"20 21 </td>12 <td><label for="form.ac_series">Access Code:</label></td> 13 <td> 14 <span tal:replace="view/ac_prefix">PIN Prefix</span> 15 -<input name="form.ac_series" type="text" size="3" maxlength="3" 16 value="" tal:attributes="value view/ac_series"/> 17 -<input name="form.ac_number" type="text" size="10" maxlength="10" 18 value="" tal:attributes="value view/ac_number" /> 19 </td> 22 20 </tr> 23 21 <tr> … … 31 29 32 30 <div> 33 Instructions:31 <h3>Instructions:</h3> 34 32 <ul class="list"> 35 33 <li> … … 46 44 Press the 'Final Submit' button. 47 45 </li> 46 <li> 47 After submission you won't be able to edit the data 48 but you can access and print this form again. 49 </li> 48 50 </ul> 49 51 </div> -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r6109 r6110 195 195 readonly = True, 196 196 ) 197 198 ac_prefix = schema.Choice( 199 title = u'Access code prefix', 200 required = True, 201 default = None, 202 values = ['APP','CEST','PUME','PUDE'], 203 ) 197 204 198 205 description = schema.Text(
Note: See TracChangeset for help on using the changeset viewer.