Ignore:
Timestamp:
11 Jun 2011, 05:59:01 (13 years ago)
Author:
Henrik Bettermann
Message:

Fix useless python:hint condition in manage and add form templates which had been copied from megrok.layout.

Display description field attribute which should only be used in edit and add forms.

Adjust description of code fields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontaineraddpage.pt

    r6344 r6345  
    1717  <table class="zebra">
    1818    <tbody>
    19         <tal:block repeat="widget view/widgets">
     19      <tal:block repeat="widget view/widgets">
    2020        <tr>
    21           <td class="label" tal:define="hint widget/hint">
    22             <label tal:condition="python:hint"
    23                    tal:attributes="for widget/name">
    24               <span class="required" tal:condition="widget/required"
    25               >*</span><span i18n:translate=""
    26                              tal:content="widget/label">label</span>
    27             </label>
    28             <label tal:condition="python:not hint"
    29                    tal:attributes="for widget/name">
    30               <span class="required" tal:condition="widget/required"
    31               >*</span><span i18n:translate=""
    32                              tal:content="widget/label">label</span>:
     21          <td class="label">
     22            <label tal:attributes="for widget/name">
     23              <span class="required" tal:condition="widget/required">*</span>
     24              <span i18n:translate="" tal:content="widget/label">label</span>:
    3325            </label>
    3426          </td>
    3527          <td class="field">
    36             <div class="widget" tal:content="structure widget">
     28            <span class="widget" tal:content="structure widget">
    3729              <input type="text" />
    38             </div>
    39             <div class="error" tal:condition="widget/error">
     30            </span>
     31            <tal:error tal:condition="widget/error">
    4032              <span tal:replace="structure widget/error">error</span>
    41             </div>
     33            </tal:error>
     34            <tal:hint tal:condition="widget/hint">
     35              <span class="hint" tal:content="structure widget/hint">hint</span>
     36            </tal:hint>
    4237          </td>
    4338        </tr>
    44         </tal:block>
     39      </tal:block>
    4540    </tbody>
    4641  </table>
Note: See TracChangeset for help on using the changeset viewer.