Ignore:
Timestamp:
26 Feb 2012, 21:16:00 (13 years ago)
Author:
Henrik Bettermann
Message:

Internationalize department pages.

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

    r7669 r7706  
    1 <form action="." tal:attributes="action request/URL" method="POST" enctype="multipart/form-data">
     1<form action="." tal:attributes="action request/URL" method="POST"
     2  i18n:domain="waeup.sirp" enctype="multipart/form-data">
    23  <ul class="tabs" data-tabs="tabs">
    34    <li tal:attributes="class view/tab1">
    45    <a href="#tab-1">
    5       <span>Settings
     6      <span i18n:translate="">Settings
    67      </span></a>
    78    </li>
    89    <li tal:attributes="class view/tab2">
    9     <a href="#tab-2">Courses</a>
     10    <a href="#tab-2" i18n:translate="">Courses</a>
    1011    </li>
    1112    <li tal:attributes="class view/tab3">
    12     <a href="#tab-3">Certificates</a>
     13    <a href="#tab-3" i18n:translate="">Certificates</a>
    1314    </li>
    1415    <li tal:attributes="class view/tab4">
    15     <a href="#tab-4">Local Roles</a>
     16    <a href="#tab-4" i18n:translate="">Local Roles</a>
    1617    </li>
    1718  </ul>
     
    4647      <div tal:condition="view/availableActions">
    4748        <span tal:repeat="action view/actions" tal:omit-tag="">
    48           <input tal:condition="python:action.label in view.taboneactions" tal:replace="structure action/render"/>
     49          <input tal:condition="python:action.label in view.taboneactions"
     50            tal:replace="structure action/render"/>
    4951        </span>
    5052      </div>
     
    5658            <th>&nbsp;
    5759            </th>
    58             <th>Code
     60            <th i18n:translate="">Code
    5961            </th>
    60             <th>Title
     62            <th i18n:translate="">Title
    6163            </th>
    6264          </tr>
     
    6466        <tbody>
    6567          <tr tal:repeat="entry view/getCourses" class="gradeC"> <td>
    66               <input type="checkbox" name="val_id" tal:attributes="value entry/name" /> </td> <td>
    67               <a href="" tal:attributes="href entry/url" tal:content="entry/name">Name</a> </td>
     68              <input type="checkbox" name="val_id"
     69                tal:attributes="value entry/name" /> </td> <td>
     70              <a href="" tal:attributes="href entry/url"
     71                tal:content="entry/name">Name</a> </td>
    6872            <td tal:content="entry/container/title"> Title </td>
    6973          </tr>
     
    7276      <div tal:condition="view/availableActions">
    7377        <span tal:repeat="action view/actions" tal:omit-tag="">
    74           <input tal:condition="python:action.label in view.tabtwoactions" tal:replace="structure action/render"/>
     78          <input tal:condition="python:action.label in view.tabtwoactions"
     79            tal:replace="structure action/render"/>
    7580        </span>
    7681      </div>
     
    8287            <th>&nbsp;
    8388            </th>
    84             <th>Code
     89            <th i18n:translate="">Code
    8590            </th>
    86             <th>Title
     91            <th i18n:translate="">Title
    8792            </th>
    8893          </tr>
     
    9095        <tbody>
    9196          <tr tal:repeat="entry view/getCertificates" class="gradeC"> <td>
    92               <input type="checkbox" name="val_id" tal:attributes="value entry/name" /> </td> <td>
    93               <a href="" tal:attributes="href entry/url" tal:content="entry/name">Name</a> </td>
     97              <input type="checkbox" name="val_id"
     98                tal:attributes="value entry/name" /> </td> <td>
     99              <a href="" tal:attributes="href entry/url"
     100                tal:content="entry/name">Name</a> </td>
    94101            <td tal:content="entry/container/title"> Title  </td>
    95102          </tr>
     
    98105      <div tal:condition="view/availableActions">
    99106        <span tal:repeat="action view/actions" tal:omit-tag="">
    100           <input tal:condition="python:action.label in view.tabthreeactions" tal:replace="structure action/render"/>
     107          <input tal:condition="python:action.label in view.tabthreeactions"
     108            tal:replace="structure action/render"/>
    101109        </span>
    102110      </div>
     
    108116            <th>&nbsp;
    109117            </th>
    110             <th>User Id
     118            <th i18n:translate="">User Id
    111119            </th>
    112             <th>Name
     120            <th i18n:translate="">Name
    113121            </th>
    114             <th>Local Role
     122            <th i18n:translate="">Local Role
    115123            </th>
    116124          </tr>
    117125        </thead>
    118126        <tbody>
    119           <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td>
    120               <input type="checkbox" name="role_id" tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
     127          <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC">
     128            <td> <input type="checkbox" name="role_id"
     129                tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
    121130            <td tal:content="entry/user_name"> USERNAME </td>
    122131            <td tal:content="entry/user_title"> USERTITLE </td>
     
    127136      <div tal:condition="view/availableActions">
    128137        <span tal:repeat="action view/actions" tal:omit-tag="">
    129           <input tal:condition="python:action.label in view.tabfouractions1" tal:replace="structure action/render"/>
     138          <input tal:condition="python:action.label in view.tabfouractions1"
     139            tal:replace="structure action/render"/>
    130140        </span>
    131141      </div> <br /><br />
     
    139149            </select> </td> <td>
    140150            <select id="local_role" name="local_role">
    141               <option tal:attributes="value localrole/name" tal:repeat="localrole view/getLocalRoles">
     151              <option tal:attributes="value localrole/name"
     152                tal:repeat="localrole view/getLocalRoles">
    142153              <span tal:replace="localrole/title">LOCALROLETITLE
    143154              </span>
     
    146157            <div tal:condition="view/availableActions">
    147158              <span tal:repeat="action view/actions" tal:omit-tag="">
    148                 <input tal:condition="python:action.label in view.tabfouractions2" tal:replace="structure action/render"/>
     159                <input tal:condition="python:action.label in view.tabfouractions2"
     160                  tal:replace="structure action/render"/>
    149161              </span>
    150162            </div> </td>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/departmentpage.pt

    r7464 r7706  
    1 <ul class="tabs" data-tabs="tabs">
    2   <li class="active"><a href="#tab-1"><span>Courses</span></a></li>
    3   <li><a href="#tab-2"><span>Certificates</span></a></li>
     1<ul  i18n:domain="waeup.sirp" class="tabs" data-tabs="tabs">
     2  <li class="active"><a href="#tab-1">
     3   <span i18n:translate="">Courses</span></a>
     4  </li>
     5  <li><a href="#tab-2">
     6    <span i18n:translate="">Certificates</span></a>
     7  </li>
    48</ul>
    5 <div class="tab-content">
     9<div  i18n:domain="waeup.sirp" class="tab-content">
    610    <div id="tab-1" class="active">
    711    <br />
     
    913      <thead>
    1014        <tr>
    11           <th>Code</th><th>Title</th>
     15          <th i18n:translate="">Code</th>
     16          <th i18n:translate="">Title</th>
    1217        </tr>
    1318      </thead>
     
    3237      <thead>
    3338        <tr>
    34           <th>Code</th><th>Title</th>
     39          <th i18n:translate="">Code</th>
     40          <th i18n:translate="">Title</th>
    3541        </tr>
    3642      </thead>
Note: See TracChangeset for help on using the changeset viewer.