Changeset 837 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
11 Nov 2006, 11:12:39 (18 years ago)
Author:
Henrik Bettermann
Message:

clearance_view and admission_form re-built

Location:
WAeUP_SRP/trunk/skins
Files:
3 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r828 r837  
    9595        return response.redirect("%s/application_edit" % student.absolute_url())
    9696    elif info['review_state'] == "admitted":
    97         return response.redirect("%s/admission_accept_form" % student.absolute_url())
     97        return response.redirect("%s/admission_form" % student.absolute_url())
    9898    elif info['review_state'] == "clearance_pin_entered":
    99         return response.redirect("%s/clearance_edit" % student.absolute_url())       
     99        return response.redirect("%s/clearance_edit" % student.absolute_url())
    100100    return response.redirect("%s/student_index" % info['url'])
    101101
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_view.pt

    r826 r837  
    99           
    1010        <div style="text-align: right"
    11              tal:condition="python:review_state=='admission_applied'">
    12         <a href="" target="slip" tal:attributes="href string:application_slip"
     11             tal:condition="python:review_state in ('clearance_requested', 'cleared','clearance_pin_entered',)">
     12        <a href="" target="slip" tal:attributes="href string:clearance_slip"
    1313            onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
    1414            <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
    15             Application Slip
     15            Clearance/Eligibility Slip
    1616        </a>
    1717       
  • WAeUP_SRP/trunk/skins/waeup_student/layout_clearance_view.pt

    r805 r837  
    33<metal:block define-macro="default_view"
    44  tal:define="layout options/layout;
    5               dm options/datastructure/getDataModel;
    65              widgets python:context.getRenderedWidgets(layout);
    7               fields python:('')"
     6              fields_not_displayed python:('',)"
    87                                 >
    9   <table cellpadding="2" cellspacing="2" summary="layout">
    10     <tr>
    11       <td><span class="dlabel">Student ID</span>:
    12       </td>
    13       <td>
    14          <span tal:replace="python:here.aq_parent.aq_parent.id" />
    15       </td>     
    16     </tr>
    17     <tr tal:repeat="field fields">
    18       <tal:block tal:define="cell python: widgets[field]">
    19         <tal:block define="widget cell/widget">
    20           <div tal:attributes="class cell/widget_css_class|string:label;
    21             id python:widget.getHtmlWidgetId()+'_widget';">
    22             <td >
    23              <span class="dlabel"
    24                     tal:condition="widget/label"
    25                     tal:content="widget/label">label</span>:
     8  <table>
     9    <span tal:repeat="row layout/rows">
     10        <span tal:repeat="cell row">
     11          <span tal:define="widget cell/widget"
     12                tal:condition="python:cell['widget_id'] not in fields_not_displayed
     13                                       and widget.meta_type!='Image Widget' ">
     14            <div tal:omit-tag=""
     15                 tal:attributes="class cell/widget_css_class|nothing;">
     16                 
     17            <tr tal:condition="widget/description|nothing" class="even ajaxtd">
     18              <th colspan="5" align="left"><h3 tal:replace="widget/description" /></th>
     19            </tr>
     20            <tr>                         
     21            <tal:block condition="widget/label">
     22            <td valign="top" nowrap>
     23              <span i18n:translate="" tal:condition="widget/is_i18n">
     24                  <span tal:content="widget/label" />:</span>
     25              <span tal:condition="not:widget/is_i18n">
     26                  <span tal:content="widget/label" />:</span>
    2627            </td>
    27             <td>
    28                <span tal:replace="structure cell/widget_rendered" />
     28            </tal:block>
     29            <tal:block condition="not: widget/label">
     30            <td>
     31              <div valign="top"> no label </div>
    2932            </td>
    30           </div>
    31         </tal:block>
    32       </tal:block>
    33     </tr>
     33            </tal:block>             
     34            <td>
     35             <div class="ddescription" tal:condition="cell" tal:content="structure cell/widget_rendered"></div>
     36             <div class="ddescription" tal:condition="not:cell/widget_rendered"> none </div>
     37            </td>
     38            </tr>
     39            </div>
     40          </span>
     41          <span tal:define="widget cell/widget;
     42                            title_name string:${cell/widget_id}_filename;"
     43                tal:condition="python:cell['widget_id'] not in fields_not_displayed
     44                                       and widget.meta_type=='Image Widget'
     45                                       and cell['widget_rendered']">
     46            <div tal:omit-tag=""
     47                 tal:attributes="class cell/widget_css_class|nothing;">
     48            <tr>
     49            <td valign="top"><span tal:content="widget/title" />:</td>
     50            <td>
     51            <a href="" target="slip" tal:attributes="href widget/getWidgetId">
     52            <span tal:content="string: Hier sollte der Dateiname stehen." />
     53            </a>
     54           
     55           
     56            </td>
     57            </tr>
     58            </div>
     59          </span>
     60        </span>
     61    </span>
    3462  </table>
    3563</metal:block>
  • WAeUP_SRP/trunk/skins/waeup_student/portlet_student_workflow_display.pt

    r806 r837  
    5353  <tr>
    5454    <td class="active">
    55     <a href="" tal:attributes="href string:${info/url}/admission_accept_form">
     55    <a href="" tal:attributes="href string:${info/url}/admission_form">
    5656    Admitted
    5757    </a>
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r805 r837  
    3535        return redirect("%s/application_edit" % info['app'].absolute_url())
    3636    elif state in ('admitted',):
    37         return redirect("%s/admission_accept_form" % student.absolute_url())
     37        return redirect("%s/admission_form" % student.absolute_url())
    3838    elif state == 'clearance_pin_entered':
    3939        return redirect("%s/student_view" % info['clear'].absolute_url())
Note: See TracChangeset for help on using the changeset viewer.