Changeset 1472 for WAeUP_SRP


Ignore:
Timestamp:
22 Feb 2007, 21:28:09 (18 years ago)
Author:
Henrik Bettermann
Message:

edit links removed or changed for SOs

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

Legend:

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

    r1431 r1472  
    6262    if res:
    6363       info['session'] = True
    64    
     64
    6565
    6666info['id'] = student_id
     
    8787    row['type'] = so.portal_type
    8888    review_state = row['review_state'] = so.review_state
    89     row['is_editable'] = (is_student and review_state == "opened") or not is_student
     89    row['is_editable'] = (is_student and review_state == "opened") or is_sectionofficer
    9090    sv_link = s_view_links.get(so.portal_type,None) or "waeup_document_view"
    9191    row['s_view_link'] = "%s/%s" % (url,sv_link)
  • WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt

    r1471 r1472  
    1212            students options/students;
    1313            info options/info|nothing;
     14            is_so context/isSectionOfficer;           
    1415            allowed options/allowed|nothing"
    1516            >
     
    2425        <a href="list_students"><strong>Cleared Student Export</strong></a>
    2526        &nbsp;&nbsp;&nbsp;&nbsp;
     27       
     28        <span tal:condition="is_so">
    2629        <a href="add_student"><strong>Add Student Record</strong></a>       
    2730        &nbsp;&nbsp;&nbsp;&nbsp;
    2831        <a href="paid_transfer_list"><strong>Export Transfer Students</strong></a>   
     32        </span>
    2933             
    3034        <h3> Search Student Section</h3><br />
  • WAeUP_SRP/trunk/skins/waeup_student/student_view.pt

    r1359 r1472  
    3737                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')">
    3838                [edit and change state]
    39             </a>             
     39            </a> 
     40            <a tal:condition="python: context.isClearanceOfficer() and row['type']=='StudentClearance'"
     41                href="edit" tal:attributes="href string:${row/url}/external_clearance_edit_form"
     42                target="edit"
     43                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')">
     44                [change state]
     45            </a>                           
    4046            </td>
    4147           
Note: See TracChangeset for help on using the changeset viewer.