Changeset 6355 for main/waeup.sirp/trunk/src
- Timestamp:
- 12 Jun 2011, 01:02:07 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6353 r6355 184 184 def update(self): 185 185 datepicker.need() # Enable jQuery datepicker in date fields. 186 #from waeup.sirp.browser.resources import jqueryui187 #jqueryui.need()188 186 return super(ApplicantsContainerAddFormPage, self).update() 189 187 … … 505 503 506 504 def getCourseAdmitted(self): 507 """Return link, title and code in html format to the certificate admitted. 505 """Return link, title and code in html format to the certificate 506 admitted. 508 507 """ 509 508 course_admitted = self.context.course_admitted … … 558 557 """ 559 558 allowed_transitions = self.wf_info.getManualTransitions() 560 return [dict(name=x, title=y) for x, y in allowed_transitions] 559 return [dict(name='', title='No transition')] +[ 560 dict(name=x, title=y) for x, y in allowed_transitions] 561 561 562 562 @grok.action('Save') -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/form_edit.pt
r6350 r6355 46 46 </tr> 47 47 </tal:block> 48 48 <tr tal:condition="view/manage_applications"> 49 49 <td class="label"><label>Application Transition:</label></td> 50 50 <td> 51 52 <option tal:repeat="transition view/getTransitions" tal:attributes="value transition/name">53 <span tal:replace="transition/title">TRANSITIONTITLE54 55 56 51 <select id="transition" name="transition"> 52 <option tal:repeat="transition view/getTransitions" 53 tal:attributes="value transition/name"> 54 <span tal:replace="transition/title">TRANSITIONTITLE</span> 55 </option> 56 </select> 57 57 </td> 58 58 </tr> 59 59 </tbody> 60 60 </table> 61 61 62 62 <p tal:condition="not: view/manage_applications"> 63 <input class="checkboxType" id="confirm_passport" name="confirm_passport" type="checkbox" value="True"/> 64 I confirm that the Passport Photograph uploaded on this form is a true picture of me. 63 <input class="checkboxType" id="confirm_passport" name="confirm_passport" 64 type="checkbox" value="True"/> 65 I confirm that the Passport Photograph uploaded on this form is a 66 true picture of me. 65 67 </p> 66 68 -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py
r6354 r6355 7 7 from waeup.sirp.applicants.interfaces import IApplicantBaseData 8 8 from waeup.sirp.interfaces import IObjectHistory, IWAeUPWorkflowInfo 9 from waeup.sirp.workflow import ( 10 WAeUPWorkflow, WAeUPWorkflowInfo, NULL_TRANSITION) 9 from waeup.sirp.workflow import WAeUPWorkflow, WAeUPWorkflowInfo 11 10 12 11 INITIALIZED = 'initialized' … … 18 17 19 18 APPLICATION_TRANSITIONS = ( 20 NULL_TRANSITION,21 22 19 Transition( 23 20 transition_id = 'init', -
main/waeup.sirp/trunk/src/waeup/sirp/workflow.py
r6353 r6355 30 30 from zope.security.management import getInteraction 31 31 from waeup.sirp.interfaces import IWAeUPWorkflowInfo 32 33 #: A transition that is not a real transition. Use it when you want a34 #: transition that does not change the state of the connected object.35 NULL_TRANSITION = Transition(36 transition_id = '',37 title = 'No transition',38 source = None,39 condition = NullCondition,40 msg = '',41 destination = None,)42 32 43 33 class WAeUPWorkflow(Workflow):
Note: See TracChangeset for help on using the changeset viewer.