Changeset 6171


Ignore:
Timestamp:
20 May 2011, 13:35:11 (13 years ago)
Author:
uli
Message:

Same template with space only (no tabs).

File:
1 edited

Legend:

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

    r6169 r6171  
    2626      <li><a href="#tab-1"><span>Settings</span></a></li>
    2727      <li><a href="#tab-2">
    28         <span tal:content="view/subunits">Contents</span>
     28        <span tal:content="view/subunits">Contents</span>
    2929      </a></li>
    3030      <li><a href="#tab-3"><span>Local Roles</span></a></li>
     
    3333    <div id="tab-1">
    3434      <table class="zebra">
    35         <tbody>
    36           <tal:block repeat="widget view/widgets">
    37             <tr>
    38               <td class="label" tal:define="hint widget/hint">
    39                 <label tal:condition="python:hint"
    40                        tal:attributes="for widget/name">
    41                   <span class="required" tal:condition="widget/required"
    42                         >*</span><span i18n:translate=""
    43                         tal:content="widget/label">label</span>
    44                 </label>
    45                 <label tal:condition="python:not hint"
    46                        tal:attributes="for widget/name">
    47                   <span class="required" tal:condition="widget/required"
    48                         >*</span><span i18n:translate=""
    49                         tal:content="widget/label">label</span>
    50                   </label>:
    51               </td>
    52               <td class="field">
    53                 <div class="widget" tal:content="structure widget">
    54                   <input type="text" />
    55                 </div>
    56                 <div class="error" tal:condition="widget/error">
    57                   <span tal:replace="structure widget/error">error</span>
    58                 </div>
    59               </td>
    60             </tr>
    61           </tal:block>
    62         </tbody>
     35        <tbody>
     36          <tal:block repeat="widget view/widgets">
     37            <tr>
     38              <td class="label" tal:define="hint widget/hint">
     39                <label tal:condition="python:hint"
     40                       tal:attributes="for widget/name">
     41                  <span class="required" tal:condition="widget/required"
     42                        >*</span><span i18n:translate=""
     43                        tal:content="widget/label">label</span>
     44                </label>
     45                <label tal:condition="python:not hint"
     46                       tal:attributes="for widget/name">
     47                  <span class="required" tal:condition="widget/required"
     48                        >*</span><span i18n:translate=""
     49                        tal:content="widget/label">label</span>
     50                  </label>:
     51              </td>
     52              <td class="field">
     53                <div class="widget" tal:content="structure widget">
     54                  <input type="text" />
     55                </div>
     56                <div class="error" tal:condition="widget/error">
     57                  <span tal:replace="structure widget/error">error</span>
     58                </div>
     59              </td>
     60            </tr>
     61          </tal:block>
     62        </tbody>
    6363      </table>
    6464
    6565      <div class="actionButtons" tal:condition="view/availableActions">
    66         <span tal:repeat="action view/actions"
    67               tal:omit-tag="">
    68           <input tal:condition="python:action.label in view.taboneactions"
    69                 tal:replace="structure action/render"/>
    70         </span>
     66        <span tal:repeat="action view/actions"
     67              tal:omit-tag="">
     68          <input tal:condition="python:action.label in view.taboneactions"
     69                tal:replace="structure action/render"/>
     70        </span>
    7171      </div>
    7272
     
    7676      <h3 tal:content="view/subunits">Departments</h3>
    7777      <table class="zebra">
    78         <thead>
    79           <tr>
    80             <th>&nbsp;</th><th>Code</th><th>Title</th>
    81           </tr>
    82         </thead>
    83         <tbody>
    84           <tr tal:repeat="dep context/values">
    85             <td>
    86               <input type="checkbox"
    87                      name="val_id"
    88                      tal:attributes="value dep/code" />
    89             </td>
    90             <td>
    91               <a tal:attributes="href python: view.url(dep)"
    92                 tal:content="dep/__name__">
    93                 ID
    94               </a>
    95             </td>
    96             <td>
    97               <span tal:content="dep/title">
    98                 ID
    99               </span>
    100             </td>
    101           </tr>
    102         </tbody>
     78        <thead>
     79          <tr>
     80            <th>&nbsp;</th><th>Code</th><th>Title</th>
     81          </tr>
     82        </thead>
     83        <tbody>
     84          <tr tal:repeat="dep context/values">
     85            <td>
     86              <input type="checkbox"
     87                     name="val_id"
     88                     tal:attributes="value dep/code" />
     89            </td>
     90            <td>
     91              <a tal:attributes="href python: view.url(dep)"
     92                tal:content="dep/__name__">
     93                ID
     94              </a>
     95            </td>
     96            <td>
     97              <span tal:content="dep/title">
     98                ID
     99              </span>
     100            </td>
     101          </tr>
     102        </tbody>
    103103      </table>
    104104
    105105      <div class="actionButtons" tal:condition="view/availableActions">
    106         <span tal:repeat="action view/actions"
    107               tal:omit-tag="">
    108           <input tal:condition="python:action.label in view.tabtwoactions"
    109                 tal:replace="structure action/render"/>
    110         </span>
     106        <span tal:repeat="action view/actions"
     107              tal:omit-tag="">
     108          <input tal:condition="python:action.label in view.tabtwoactions"
     109                tal:replace="structure action/render"/>
     110        </span>
    111111      </div>
    112112    </div>
     
    115115      <br />
    116116      <table class="display dataTableManage">
    117         <thead>
    118           <tr>
    119             <th>&nbsp;</th><th>User</th><th>Local Role</th>
    120           </tr>
    121         </thead>
    122         <tbody>
    123           <tr tal:repeat="entry view/getUsersWithLocalRoles"
    124               class="gradeB">
    125             <td>
    126               <input type="checkbox" name="role_id"
    127                      tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" />
    128             </td>
    129             <td tal:content="entry/user_title">User
    130             </td>
    131             <td tal:content="entry/local_role_title">
    132               Local Role
    133             </td>
    134           </tr>
    135         </tbody>
     117        <thead>
     118          <tr>
     119            <th>&nbsp;</th><th>User</th><th>Local Role</th>
     120          </tr>
     121        </thead>
     122        <tbody>
     123          <tr tal:repeat="entry view/getUsersWithLocalRoles"
     124              class="gradeB">
     125            <td>
     126              <input type="checkbox" name="role_id"
     127                     tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" />
     128            </td>
     129            <td tal:content="entry/user_title">User
     130            </td>
     131            <td tal:content="entry/local_role_title">
     132              Local Role
     133            </td>
     134          </tr>
     135        </tbody>
    136136      </table>
    137137      <div class="actionButtons" tal:condition="view/availableActions">
    138         <span tal:repeat="action view/actions"
    139               tal:omit-tag="">
    140           <input tal:condition="python:action.label in view.tabthreeactions1"
    141                 tal:replace="structure action/render"/>
    142         </span>
     138        <span tal:repeat="action view/actions"
     139              tal:omit-tag="">
     140          <input tal:condition="python:action.label in view.tabthreeactions1"
     141                tal:replace="structure action/render"/>
     142        </span>
    143143      </div>
    144144      <br /><br />
    145145      <table class="zebra">
    146         <tr>
    147           <td>
    148             <select  id="user" name="user">
    149               <option tal:repeat="user view/getUsers"
    150                       tal:attributes="value user/name">
    151                 <span tal:replace="user/val/description">USERTITLE</span>
    152               </option>
    153             </select>
    154           </td>
    155           <td>
    156             <select id="local_role" name="local_role">
    157               <option tal:repeat="localrole view/getLocalRoles"
    158                       tal:attributes="value localrole/name">
    159                 <span tal:replace="localrole/title">LOCALROLETITLE</span>
    160               </option>
    161             </select>
    162           </td>
    163           <td>
    164             <div class="actionButtons" tal:condition="view/availableActions">
    165               <span tal:repeat="action view/actions"
    166                     tal:omit-tag="">
    167                 <input tal:condition="python:action.label in view.tabthreeactions2"
    168                        tal:replace="structure action/render"/>
    169               </span>
    170             </div>
    171           </td>
    172         </tr>
     146        <tr>
     147          <td>
     148            <select  id="user" name="user">
     149              <option tal:repeat="user view/getUsers"
     150                      tal:attributes="value user/name">
     151                <span tal:replace="user/val/description">USERTITLE</span>
     152              </option>
     153            </select>
     154          </td>
     155          <td>
     156            <select id="local_role" name="local_role">
     157              <option tal:repeat="localrole view/getLocalRoles"
     158                      tal:attributes="value localrole/name">
     159                <span tal:replace="localrole/title">LOCALROLETITLE</span>
     160              </option>
     161            </select>
     162          </td>
     163          <td>
     164            <div class="actionButtons" tal:condition="view/availableActions">
     165              <span tal:repeat="action view/actions"
     166                    tal:omit-tag="">
     167                <input tal:condition="python:action.label in view.tabthreeactions2"
     168                       tal:replace="structure action/render"/>
     169              </span>
     170            </div>
     171          </td>
     172        </tr>
    173173      </table>
    174174    </div>
Note: See TracChangeset for help on using the changeset viewer.