Ignore:
Timestamp:
11 Dec 2007, 15:40:35 (17 years ago)
Author:
Henrik Bettermann
Message:

upload missing passport before starting clearance (logic in application_edit.py completely changed)

fix Title for student_accommodation object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_layout/layout_application_edit.pt

    r2581 r2920  
    22                          isStudent context/isStudent;
    33                          info context/getApplicationInfo;
    4                           app_email info/app_doc/app_email">
     4                          app_email info/app_doc/app_email|nothing;
     5                          app_passport info/has_passport;
     6                          ">
    57
    68<metal:block tal:condition="isStaff">             
     
    1012
    1113<metal:block define-macro="application_student_edit"
    12   tal:condition="python:isStudent and not app_email"
     14  tal:condition="python:isStudent"
    1315  tal:define="layout options/layout;
    1416  ds options/datastructure;
     
    1921  proceed options/proceed|nothing;
    2022  widgets python:context.getRenderedWidgets(layout);
    21   fields python:( 'app_email',
    22                   'app_mobile',)">
     23  widget_email widgets/app_email|nothing;
     24  widget_passport widgets/passport|nothing;
     25  ">
    2326  <table class="layoutDefault" summary="Form layout"
    24          tal:condition="layout/rows">
     27         >
    2528
    26     <tr tal:condition="widgets/app_email|nothing"
    27         tal:define="cell widgets/app_email|nothing;">
     29    <tr tal:condition="python: widget_email and not app_email"
     30        tal:define="cell widget_email">
    2831      <tal:block tal:define="widget cell/widget;
    2932      wid widget/getWidgetId;
     
    5659      </tal:block>
    5760    </tr>
     61    <tr tal:condition="python: widget_passport and not app_passport"
     62        tal:define="cell widget_passport">
     63      <tal:block tal:define="widget cell/widget;
     64      wid widget/getWidgetId;
     65      err python:ds.getError(wid);
     66      err_mapping python:ds.getErrorMapping(wid);
     67      is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes);
     68      tooltip_id python:wid + '_help';
     69      widget_css_class widget/widget_css_class|nothing;
     70      css_class python:test(err, 'row error','row')"
     71      >
     72        <div tal:attributes="class widget_css_class;
     73        id python:widget.getHtmlWidgetId()+'_widget';"
     74        >
     75          <td>
     76            <div class="label" tal:condition="widget/label_edit"
     77                 tal:attributes="class python:test(is_required, 'label required','label')">
     78              <label tal:content="widget/label_edit"
     79                     tal:attributes="for cell/widget_input_area_id|nothing;">label</label>:
     80           
     81            <button type="button" class="tooltipControl"
     82                    tal:condition="widget/help"
     83                    tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button>
     84            </div>
     85          </td>
     86          <td>
     87            <span class="field">
     88              <div tal:replace="structure cell/widget_rendered"/>
     89            </span>
     90            <div class="tooltipArea" style="visibility: hidden;"
     91                 tal:condition="widget/help"
     92                 tal:attributes="id tooltip_id;
     93                 onclick python:'showElement(false, \'%s\')' % tooltip_id;"
     94                 >
     95              <tal:block tal:content="widget/help">This is the help for this field
     96              </tal:block>
     97            </div>
     98            <tal:block condition="err">
     99              <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
     100                <br /><em style="color: red"
     101                          tal:content="msg">err</em>
     102              </tal:block>
     103            </tal:block>
     104          </td>
     105        </div>
     106      </tal:block>
     107    </tr>   
    58108  </table>
    59109</metal:block>
Note: See TracChangeset for help on using the changeset viewer.