Changeset 789 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
8 Nov 2006, 10:50:36 (18 years ago)
Author:
joachim
Message:

first modifications according to email

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

Legend:

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

    r788 r789  
    4141psm = ""
    4242args = {}
    43 action = "/clearance_edit_view"
     43action = "/clearance_edit_form"
    4444if cpsdocument_edit_button:
    4545    if is_valid:
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt

    r788 r789  
    55                                               schema_id='student_clearance',
    66                                               layout_id='student_clearance_fe',
    7                                                layout_mode='edit',);
     7                                               layout_mode='edit',
     8                                               use_session=True);
    89           form_action string:clearance_edit;
    910           edition python:True;
     
    1213    ">
    1314<metal:block define-macro="edit_form">
    14 <metal:block use-macro="here/content_lib_master/macros/master">
     15<metal:block use-macro="here/waeup_content_master/macros/master">
    1516  <metal:block fill-slot="style_slot">
    1617    <link rel="Stylesheet" type="text/css" href=""
     
    3637    <script type="text/javascript" src="cpsdocument.js"
    3738      tal:attributes="src string:${base_url}cpsdocument.js"></script>
    38     <tal:block condition="python:modules['Products.CPSUtil.integration'].isProductPresent('Products.FCKeditor')">
    39       <script type="text/javascript">
    40         var popup_editor_form = 'popup_fckeditor_form';
    41         var width = 640;
    42         var height = 520;
    43       </script>
    44     </tal:block>
    45     <tal:block condition="python:modules['Products.CPSUtil.integration'].isProductPresent('Products.Epoz')">
    46       <script type="text/javascript">
    47         var popup_editor_form = 'popup_rte_form';
    48         var width = 640;
    49         var height = 480;
    50       </script>
    51     </tal:block>
    52     <script type="text/javascript">
    53      function popup_rte(input_id, label_edit) {
    54        var args, value;
    55        value = document.getElementById(input_id).value;
    56        args = '?input_id='+input_id+'&amp;label_edit='+escape(label_edit);
    57        str_window_features = 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,dependent=1,width=' + width + ',height=' + height;
    58        popup = window.open(popup_editor_form + args, input_id, str_window_features);
    59        if (!popup.opener) {
    60          popup.opener = window;
    61        }
    62        return false;
    63      }
    64    </script>
    6539   </metal:block>
    6640  </metal:block>
    6741
    68     <h1> Edit your clearance Data</h1>
     42  <metal:block fill-slot="header">
     43    <metal:block define-slot="header">
     44        <h3> Edit your clearance Data</h3>
     45    </metal:block>
     46  </metal:block>
     47
    6948
    7049  <metal:block fill-slot="main">
     
    8160          </div>
    8261        </div>
    83         <metal:block use-macro="here/cpsdocument_edit_buttons/macros/buttons"/>
    8462      </div>
     63   <input type="submit" class="standalone" name="cpsdocument_edit_button"
     64         value="Save"
     65         id="cpsdocument_edit_button"
     66         tal:condition="not:creation" />
    8567    </form>
    8668    <div id="ajax_psm" style="display:none">
  • WAeUP_SRP/trunk/skins/waeup_student/layout_clearance_edit.pt

    r788 r789  
    1414  widgets python:context.getRenderedWidgets(layout);
    1515  ">
    16   <form action="" id="editForm" method="post"
    17         enctype="multipart/form-data" class="workflow"
    18         tal:attributes="action formaction"
    19         >
    2016  <table class="layoutDefault" summary="Form layout"
    2117         tal:condition="layout/rows">
    2218    <span tal:repeat="row python: layout['rows']" valign="top" >
    2319      <span tal:repeat="cell row">
    24         <tr tal:define="widget cell/widget;
     20        <span tal:define="widget cell/widget;
    2521              wid widget/getWidgetId;
    2622              err python:ds.getError(wid);
     
    3228              tal:condition="python: wid != 'passport'"
    3329              >
     30        <tr tal:condition="widget/description|nothing" class="even ajaxtd">
     31          <th colspan="5" align="center"><h3 tal:replace="widget/description" /></th>
     32        </tr>
     33        <tr>
    3434          <div tal:attributes="class widget_css_class;
    3535          id python:widget.getHtmlWidgetId()+'_widget';"
     
    6767        </tr>
    6868      </span>
     69      </span>
    6970    </span>
    7071  </table>
    71   <br />
    72   <input type="submit" class="standalone" name="cpsdocument_edit_button"
    73          value="Save"
    74          id="cpsdocument_edit_button"
    75          tal:condition="not:creation" />
    76   <input type="submit" class="standalone" name="proceed"
    77          value="apply for admission"
    78          id="cpsdocument_edit_and_view_button"
    79          tal:condition="proceed"
    80          tal:attributes="value proceed"/>
    81   <input type="submit"
    82          class="standalone"
    83          name="cpsdocument_create_button"
    84          value="apply"
    85          tal:attributes="value options/button"
    86          tal:condition="creation" />
    87 
    88 </form>
    8972</metal:block>
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r788 r789  
    3535        return redirect("%s/application_edit" % info['app'].absolute_url())
    3636    elif state in ('admitted',):
    37         return redirect("%s/defer_view" % student.absolute_url())
     37        return redirect("%s/accept_aadmission_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.