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/browser/templates/certificatemanagepage.pt

    r6344 r6345  
    2626      <tal:block repeat="widget view/widgets">
    2727        <tr>
    28           <td class="label" tal:define="hint widget/hint">
    29         <label tal:condition="python:hint"
    30                tal:attributes="for widget/name">
    31           <span class="required" tal:condition="widget/required"
    32                 >*</span><span i18n:translate=""
    33                 tal:content="widget/label">label</span>
    34         </label>
    35         <label tal:condition="python:not hint"
    36                tal:attributes="for widget/name">
    37           <span class="required" tal:condition="widget/required"
    38                 >*</span><span i18n:translate=""
    39                 tal:content="widget/label">label</span>
    40         </label>:
     28          <td class="label">
     29            <label tal:attributes="for widget/name">
     30              <span class="required" tal:condition="widget/required">*</span>
     31              <span i18n:translate="" tal:content="widget/label">label</span>:
     32            </label>
    4133          </td>
    4234          <td class="field">
    43         <div class="widget" tal:content="structure widget">
    44           <input type="text" />
    45         </div>
    46         <div class="error" tal:condition="widget/error">
    47           <span tal:replace="structure widget/error">error</span>
    48         </div>
     35            <span class="widget" tal:content="structure widget">
     36              <input type="text" />
     37            </span>
     38            <tal:error tal:condition="widget/error">
     39              <span tal:replace="structure widget/error">error</span>
     40            </tal:error>
     41            <tal:hint tal:condition="widget/hint">
     42              <span class="hint" tal:content="structure widget/hint">hint</span>
     43            </tal:hint>
    4944          </td>
    5045        </tr>
Note: See TracChangeset for help on using the changeset viewer.