Ignore:
Timestamp:
19 Nov 2006, 10:54:34 (18 years ago)
Author:
Henrik Bettermann
Message:

section managers and clearance officers open clearance edit form only in external window to ease student batch processing

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py

    r894 r895  
    4444psm = ""
    4545args = {}
    46 action = "/clearance_edit_form"
     46action = "/external_clearance_edit_form"
    4747if is_valid:
    4848    if cpsdocument_edit_button:
     
    5353            wftool.doActionFor(info['student'],'request_clearance',dest_container=1)
    5454            psm = "You successfully requested clearance!"
    55             action = "/clearance_view"
     55            if context.isStudent():
     56               action = "/clearance_view"
    5657        else:
    5758            psm = "You must tick the acknowledgement check box before submission!"
     59            if context.isStudent():
     60               action = "/clearance_edit_form"
    5861    elif clear_and_validate_button:
    5962        wftool.doActionFor(info['student'],'clear_and_validate')
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt

    r894 r895  
    88           review_state info/review_state;
    99           clear_review_state info/clear_review_state;
    10            editable python: (isStudent and clear_review_state == 'open' or isManager) and not isClearanceOfficer;
     10           editable python: (isStudent and clear_review_state == 'opened' or isManager) and not isClearanceOfficer;
    1111           mode python: test(editable,'edit','view');
    1212           rendered_main python:info['clear_doc'].render(request=request,
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_lib.pt

    r894 r895  
    88  </tal:block>
    99  <tal:block condition="python: isStaff or isManager">
    10     <a href="" tal:condition="python: isManager"
     10    <a href="" tal:condition="python: 0"
    1111       tal:attributes="href string:${here/academicsParent}">
    1212      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
     
    3636  <!--  isManager -->
    3737  <tal:block condition="context/isManager">
     38 
     39     <div tal:condition="python:info['review_state'] == 'clearance_pin_entered'">
     40        <input type="checkbox" value="True" name="acknowledge" />     &nbsp;&nbsp; 
     41
     42        I hereby acknowledge by ticking this check box
     43        that, if it is discovered at any time that I do not possess any of the
     44        qualifications which I claim to have obtained, I will be expelled from the
     45        University and shall not be re-admitted for the same or any other programme,
     46        even if I have upgraded my previous qualifications or possess additional
     47        qualifications.   
     48    </div>
     49    <br />
     50 
    3851    <input type="submit" class="standalone"
    3952           name="cpsdocument_edit_button"
    4053           value="Save & Return Later"
    41            id="cpsdocument_edit_button"
    42            tal:condition="python: review_state == 'clearance_pin_entered'" />
     54           id="cpsdocument_edit_button" />
    4355    <input type="submit" class="standalone"
    4456           name="cpsdocument_edit_and_view_button"
  • WAeUP_SRP/trunk/skins/waeup_student/contact_student_form.pt

    r894 r895  
    7070      </span>
    7171      <form action="." method="post" class="group">
    72             <input type="submit" tal:condition="is_co" name="clearance_edit_form:method"
     72            <input type="submit" name="external_clearance_edit_form:method"
    7373                       class="context" value="Continue" />
    7474      </form>     
  • WAeUP_SRP/trunk/skins/waeup_student/student_view.pt

    r805 r895  
    2626              <strong tal:content="row/title" /></a> </td>
    2727            <td>
    28             <a tal:condition="row/is_editable"
     28            <a tal:condition="python: row['is_editable'] and row['type']!='StudentClearance'"
    2929                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
    3030                target="edit"
     
    3232                [edit]
    3333            </a>
     34            <a tal:condition="python: row['is_editable'] and row['type']=='StudentClearance'"
     35                href="edit" tal:attributes="href string:${row/url}/external_clearance_edit_form"
     36                target="edit"
     37                onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
     38                [edit and change state]
     39            </a>             
    3440            </td>
    3541          </tr>
  • WAeUP_SRP/trunk/skins/waeup_student/students_manager_view.pt

    r894 r895  
    6868                          target="edit"
    6969                          onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"
    70                           >[edit]</a></td>
     70                          >[change state]</a></td>
    7171                       
    7272                       
Note: See TracChangeset for help on using the changeset viewer.