Changeset 6172


Ignore:
Timestamp:
20 May 2011, 13:48:33 (13 years ago)
Author:
Henrik Bettermann
Message:

Add User Id column and put more space between table and 'Remove selected local roles' button.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates
Files:
2 edited

Legend:

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

    r6161 r6172  
    147147      <thead>
    148148        <tr>
    149           <th>&nbsp;</th><th>User</th><th>Local Role</th>
     149          <th>&nbsp;</th><th>User Id</th><th>Name</th><th>Local Role</th>
    150150        </tr>
    151151      </thead>
     
    157157                tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" />
    158158          </td>
    159           <td tal:content="entry/user_title">User
     159          <td tal:content="entry/user_name">
     160               USERNAME
     161          </td>
     162          <td tal:content="entry/user_title">
     163               USERTITLE
    160164          </td>
    161165          <td tal:content="entry/local_role_title">
    162                Local Role
     166               LOCAL ROLE
    163167          </td>
    164168        </tr>
    165169      </tbody>
    166170    </table>
     171    <br /><br />
    167172    <div class="actionButtons" tal:condition="view/availableActions">
    168173        <span tal:repeat="action view/actions"
     
    176181    <tr>
    177182        <td>
    178             <select  id="user" name="user"  tal:repeat="user view/getUsers">
    179               <option tal:attributes="value user/name">
     183            <select  id="user" name="user">
     184              <option tal:attributes="value user/name" tal:repeat="user view/getUsers">
    180185                <span tal:replace="user/val/description">USERTITLE</span>
    181186              </option>
     
    183188        </td>
    184189        <td>
    185             <select  id="local_role" name="local_role"  tal:repeat="localrole view/getLocalRoles">
    186               <option tal:attributes="value localrole/name">
     190            <select  id="local_role" name="local_role">
     191              <option tal:attributes="value localrole/name" tal:repeat="localrole view/getLocalRoles">
    187192                <span tal:replace="localrole/title">LOCALROLETITLE</span>
    188193              </option>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultymanagepage.pt

    r6171 r6172  
    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>
    104 
    105104      <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>
     105        <span tal:repeat="action view/actions"
     106              tal:omit-tag="">
     107          <input tal:condition="python:action.label in view.tabtwoactions"
     108                tal:replace="structure action/render"/>
     109        </span>
    111110      </div>
    112111    </div>
     
    114113    <div id="tab-3">
    115114      <br />
    116       <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>
    136       </table>
     115    <table class="display dataTableManage">
     116      <thead>
     117        <tr>
     118          <th>&nbsp;</th><th>User Id</th><th>Name</th><th>Local Role</th>
     119        </tr>
     120      </thead>
     121      <tbody>
     122        <tr tal:repeat="entry view/getUsersWithLocalRoles"
     123        class="gradeB">
     124          <td>
     125            <input type="checkbox" name="role_id"
     126                tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" />
     127          </td>
     128          <td tal:content="entry/user_name">
     129               USERNAME
     130          </td>
     131          <td tal:content="entry/user_title">
     132               USERTITLE
     133          </td>
     134          <td tal:content="entry/local_role_title">
     135               LOCAL ROLE
     136          </td>
     137        </tr>
     138      </tbody>
     139    </table>
     140      <br /><br />
    137141      <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>
     142        <span tal:repeat="action view/actions"
     143              tal:omit-tag="">
     144          <input tal:condition="python:action.label in view.tabthreeactions1"
     145                tal:replace="structure action/render"/>
     146        </span>
    143147      </div>
    144148      <br /><br />
    145149      <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>
     150        <tr>
     151          <td>
     152            <select  id="user" name="user">
     153              <option tal:repeat="user view/getUsers"
     154                      tal:attributes="value user/name">
     155                <span tal:replace="user/val/description">USERTITLE</span>
     156              </option>
     157            </select>
     158          </td>
     159          <td>
     160            <select id="local_role" name="local_role">
     161              <option tal:repeat="localrole view/getLocalRoles"
     162                      tal:attributes="value localrole/name">
     163                <span tal:replace="localrole/title">LOCALROLETITLE</span>
     164              </option>
     165            </select>
     166          </td>
     167          <td>
     168            <div class="actionButtons" tal:condition="view/availableActions">
     169              <span tal:repeat="action view/actions"
     170                    tal:omit-tag="">
     171                <input tal:condition="python:action.label in view.tabthreeactions2"
     172                       tal:replace="structure action/render"/>
     173              </span>
     174            </div>
     175          </td>
     176        </tr>
    173177      </table>
    174178    </div>
Note: See TracChangeset for help on using the changeset viewer.