Ignore:
Timestamp:
13 Nov 2006, 15:39:08 (18 years ago)
Author:
joachim
Message:

clearance_edit_manager + clearance_edit_form_manager modified that all
buttons are shown according to the student's workflow-state.
The waeup_student_wf was modified, to allow the transitions
Even though the enter_clearance_pin-transition is allowed for Manager
in the clearance_requested state, the reject_clearance button does not work.

Location:
WAeUP_SRP/trunk/profiles/default
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/layouts/student_clearance.xml

    r852 r858  
    854854   <cell name="def_adm"/>
    855855  </row>
    856   <row>
    857    <cell name="acknow"/>
    858   </row>
    859856 </table>
    860857</object>
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml

    r815 r858  
    3838                  acquired="True">
    3939  </permission-map>
     40  <permission-map name="View" acquired="True">
     41   <permission-role>Owner</permission-role>
     42  </permission-map>
    4043 </state>
    4144 <state state_id="clearance_requested" title="">
     
    4548                  acquired="True">
    4649  </permission-map>
     50  <permission-map name="View" acquired="True">
     51   <permission-role>Owner</permission-role>
     52  </permission-map>
    4753 </state>
    4854 <state state_id="cleared_and_validated" title="">
    4955  <exit-transition transition_id="create_content"/>
    50   <permission-map name="View" acquired="True">
    51    <permission-role>Owner</permission-role>
    52   </permission-map>
     56  <exit-transition transition_id="enter_clearance_pin"/>
     57  <exit-transition transition_id="request_clearance"/>
     58  <permission-map name="View" acquired="True">
     59   <permission-role>Owner</permission-role>
     60  </permission-map>
     61 </state>
     62 <state state_id="clearence_requested" title="">
     63  <exit-transition transition_id="clear_and_validate"/>
     64  <exit-transition transition_id="enter_clearance_pin"/>
     65  <exit-transition transition_id="reject_clearance"/>
     66  <permission-map name="Modify portal content"
     67                  acquired="True">
     68   <permission-role>SectionManager</permission-role>
     69  </permission-map>
     70  <permission-map name="View" acquired="True">
     71  </permission-map>
     72 </state>
     73 <state state_id="closed" title="">
     74  <exit-transition transition_id="open"/>
    5375 </state>
    5476 <state state_id="deferred" title="">
     
    6183  <permission-map name="View" acquired="True">
    6284   <permission-role>Owner</permission-role>
     85  </permission-map>
     86 </state>
     87 <state state_id="opened" title="">
     88  <exit-transition transition_id="close"/>
     89  <permission-map name="Modify portal content"
     90                  acquired="True">
     91   <permission-role>Owner</permission-role>
     92  </permission-map>
     93  <permission-map name="View" acquired="True">
    6394  </permission-map>
    6495 </state>
     
    118149  </guard>
    119150 </transition>
     151 <transition transition_id="close" title=""
     152             new_state="closed" trigger="USER"
     153             before_script="" after_script="">
     154 
     155  <guard>
     156   <guard-role>Manager</guard-role>
     157   <guard-role>SectionManager</guard-role>
     158  </guard>
     159 </transition>
    120160 <transition transition_id="create" title=""
    121161             new_state="student_created" trigger="USER"
     
    176216   <guard-role>SectionManager</guard-role>
    177217   <guard-role>ClearanceOfficer</guard-role>
     218  </guard>
     219 </transition>
     220 <transition transition_id="open" title=""
     221             new_state="opened" trigger="USER"
     222             before_script="" after_script="">
     223 
     224  <guard>
     225   <guard-role>Manager</guard-role>
     226   <guard-role>SectionManager</guard-role>
    178227  </guard>
    179228 </transition>
Note: See TracChangeset for help on using the changeset viewer.