Changeset 894 for WAeUP_SRP


Ignore:
Timestamp:
19 Nov 2006, 07:50:13 (18 years ago)
Author:
Henrik Bettermann
Message:

external clearance edit form added (use-macro)

Location:
WAeUP_SRP/trunk
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/themes.xml

    r838 r894  
    55 <property name="method_themes">
    66  <element key="external_edit_form" value="WAeUP_Student+Slippage"/>
     7  <element key="external_clearance_edit_form" value="WAeUP_Student+Slippage"/>
    78  <element key="login_staff" value="WAeUP_Backoffice+Default"/>
    89  <element key="logged_out" value="WAeUP_Student+Default"/>
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py

    r893 r894  
    5353            wftool.doActionFor(info['student'],'request_clearance',dest_container=1)
    5454            psm = "You successfully requested clearance!"
     55            action = "/clearance_view"
    5556        else:
    5657            psm = "You must tick the acknowledgement check box before submission!"
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt

    r889 r894  
     1<metal:block define-macro="clearance_edit_form">
    12<tal:block define="
    23           info context/getStudentInfo;
     
    4344  </metal:block>
    4445</tal:block>
     46</metal:block>
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_lib.pt

    r893 r894  
    88  </tal:block>
    99  <tal:block condition="python: isStaff or isManager">
    10     <a href=""
     10    <a href="" tal:condition="python: isManager"
    1111       tal:attributes="href string:${here/academicsParent}">
    1212      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
  • WAeUP_SRP/trunk/skins/waeup_student/contact_student_form.pt

    r891 r894  
    33                        is_manager info/is_manager|nothing;
    44                        is_student info/is_student|nothing;
     5                        is_co info/is_co|nothing;
    56                        ">
    67  <metal:body use-macro="here/main_template/macros/master">
     
    1011      </span>
    1112   
    12       <span tal:condition="info/app_doc/app_email">     
     13      <span tal:condition="info">
    1314      <h3>Contact Student</h3>
    1415      <br />
    15       <span tal:condition="info">
     16      <span tal:condition="info/app_doc/app_email">
    1617      <span tal:condition="not:info/app_doc/app_email">
    1718      Sorry, the student did not provide an email address.
     
    6970      </span>
    7071      <form action="." method="post" class="group">
    71             <input type="submit" name="student_index:method"
    72                        class="context" value="Continue" />     
     72            <input type="submit" tal:condition="is_co" name="clearance_edit_form:method"
     73                       class="context" value="Continue" />
     74      </form>     
    7375      </span>
    7476    </metal:main>
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r885 r894  
    2323info['is_manager'] = context.isManager()
    2424info['is_student'] = context.isStudent()
     25info['is_co'] = context.isClearanceOfficer()
    2526member_id = str(member)
    2627if student is None:
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r891 r894  
    2525        return context.study_level_view()
    2626    elif context.portal_type == 'StudentClearance':
    27         return context.clearance_edit_form()
     27        return context.clearance_view()
    2828    elif context.portal_type == 'Student':
    2929        return redirect("%s/student_view" % context.absolute_url())
  • WAeUP_SRP/trunk/skins/waeup_student/students_manager_view.pt

    r891 r894  
    6363                </td>   
    6464                <td><span tal:replace="python: student['app_doc'].jamb_reg_no" /></td>   
    65                 <td tal:condition="options/co_view|nothing"><a href="id"
    66                        tal:attributes="href string:${student/student/clearance/absolute_url}/clearance_edit_form"
    67                        tal:content="student/review_state"></a></td>   
     65                <td tal:condition="options/co_view|nothing">
     66                       <a href="id"
     67                          tal:attributes="href string:${student/student/clearance/absolute_url}/external_clearance_edit_form"
     68                          target="edit"
     69                          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>
     71                       
     72                       
     73                       
     74                       
    6875                <td tal:condition="not: options/co_view|nothing"><span tal:replace="student/review_state" /></td>   
    6976              </tr>
Note: See TracChangeset for help on using the changeset viewer.