Ignore:
Timestamp:
12 Jun 2011, 01:02:07 (14 years ago)
Author:
uli
Message:
 
Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r6353 r6355  
    184184    def update(self):
    185185        datepicker.need() # Enable jQuery datepicker in date fields.
    186         #from waeup.sirp.browser.resources import jqueryui
    187         #jqueryui.need()
    188186        return super(ApplicantsContainerAddFormPage, self).update()
    189187
     
    505503
    506504    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.
    508507        """
    509508        course_admitted = self.context.course_admitted
     
    558557        """
    559558        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]
    561561
    562562    @grok.action('Save')
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/form_edit.pt

    r6350 r6355  
    4646        </tr>
    4747      </tal:block>
    48         <tr tal:condition="view/manage_applications">
     48      <tr tal:condition="view/manage_applications">
    4949        <td class="label"><label>Application Transition:</label></td>
    5050        <td>
    51             <select id="transition" name="transition">
    52                 <option tal:repeat="transition view/getTransitions" tal:attributes="value transition/name">
    53                     <span tal:replace="transition/title">TRANSITIONTITLE
    54                     </span>
    55                 </option>
    56             </select>
     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>
    5757        </td>
    58         </tr>
     58      </tr>
    5959    </tbody>
    6060  </table>
    6161
    6262  <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.
    6567  </p>
    6668
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py

    r6354 r6355  
    77from waeup.sirp.applicants.interfaces import IApplicantBaseData
    88from waeup.sirp.interfaces import IObjectHistory, IWAeUPWorkflowInfo
    9 from waeup.sirp.workflow import (
    10     WAeUPWorkflow, WAeUPWorkflowInfo, NULL_TRANSITION)
     9from waeup.sirp.workflow import WAeUPWorkflow, WAeUPWorkflowInfo
    1110
    1211INITIALIZED = 'initialized'
     
    1817
    1918APPLICATION_TRANSITIONS = (
    20     NULL_TRANSITION,
    21 
    2219    Transition(
    2320        transition_id = 'init',
Note: See TracChangeset for help on using the changeset viewer.