Ignore:
Timestamp:
1 Mar 2012, 06:50:40 (13 years ago)
Author:
Henrik Bettermann
Message:

Add viewletmanager which renders widgets in forms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/certificatemanagepage.pt

    r7705 r7736  
    1010  <div class="tab-content">
    1111    <div id="tab-1" tal:attributes="class view/tab1">
    12           <table class="form-table">
    13           <tbody>
    14           <tal:block repeat="widget view/widgets">
    15             <tr>
    16               <td class="fieldname">
    17                 <span tal:condition="widget/required">*</span>
    18                 <span tal:content="widget/label">label</span>:
    19               </td>
    20               <td>
    21                 <span tal:content="structure widget">
    22                   <input type="text" />
    23                 </span>
    24                 <tal:error tal:condition="widget/error">
    25                   <span tal:replace="structure widget/error">error</span>
    26                 </tal:error>
    27                 <tal:hint tal:condition="widget/hint">
    28                   <span tal:content="structure widget/hint">hint</span>
    29                 </tal:hint>
    30               </td>
    31             </tr>
    32           </tal:block>
    33           </tbody>
    34           </table>
    35           <div tal:condition="view/availableActions">
    36             <span tal:repeat="action view/actions"
    37                   tal:omit-tag="">
    38               <input tal:condition="python:action.label in view.taboneactions"
    39                      tal:replace="structure action/render"/>
    40             </span>
    41           </div>
     12    <table class="form-table">
     13      <tbody>
     14        <tal:widgets tal:content="structure provider:widgets" />
     15      </tbody>
     16    </table>
     17    <div tal:condition="view/availableActions">
     18      <span tal:repeat="action view/actions"
     19            tal:omit-tag="">
     20        <input tal:condition="python:action.label in view.taboneactions"
     21               tal:replace="structure action/render"/>
     22      </span>
     23    </div>
    4224    </div>
    4325    <div id="tab-2" tal:attributes="class view/tab2">
Note: See TracChangeset for help on using the changeset viewer.