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/departmentmanagepage.pt

    r6344 r6345  
    2828            <table class="zebra">
    2929                <tbody>
    30                     <tal:block repeat="widget view/widgets">
    31                         <tr>
    32                             <td class="label" tal:define="hint widget/hint">
    33                                 <label tal:condition="python:hint" tal:attributes="for widget/name">
    34                                     <span class="required" tal:condition="widget/required">*
    35                                     </span>
    36                                     <span i18n:translate="" tal:content="widget/label">label
    37                                     </span>
    38                                 </label>
    39                                 <label tal:condition="python:not hint" tal:attributes="for widget/name">
    40                                     <span class="required" tal:condition="widget/required">*
    41                                     </span>
    42                                     <span i18n:translate="" tal:content="widget/label">label
    43                                     </span>
    44                                 </label>:
    45                             </td>
    46                             <td class="field">
    47                                 <div class="widget" tal:content="structure widget">
    48                                     <input type="text" />
    49                                 </div>
    50                                 <div class="error" tal:condition="widget/error">
    51                                     <span tal:replace="structure widget/error">error
    52                                     </span>
    53                                 </div>
    54                             </td>
    55                         </tr>
    56                     </tal:block>
     30                  <tal:block repeat="widget view/widgets">
     31                    <tr>
     32                      <td class="label">
     33                        <label tal:attributes="for widget/name">
     34                          <span class="required" tal:condition="widget/required">*</span>
     35                          <span i18n:translate="" tal:content="widget/label">label</span>:
     36                        </label>
     37                      </td>
     38                      <td class="field">
     39                        <span class="widget" tal:content="structure widget">
     40                          <input type="text" />
     41                        </span>
     42                        <tal:error tal:condition="widget/error">
     43                          <span tal:replace="structure widget/error">error</span>
     44                        </tal:error>
     45                        <tal:hint tal:condition="widget/hint">
     46                          <span class="hint" tal:content="structure widget/hint">hint</span>
     47                        </tal:hint>
     48                      </td>
     49                    </tr>
     50                  </tal:block>
    5751                </tbody>
    5852            </table>
Note: See TracChangeset for help on using the changeset viewer.