Ignore:
Timestamp:
22 Feb 2014, 15:46:03 (11 years ago)
Author:
uli
Message:

Merge changes from uli-diazo-themed back into trunk. If this works, then a miracle happened.

Location:
main/waeup.kofa/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk

  • main/waeup.kofa/trunk/src/waeup/kofa

  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/certificatemanagepage.pt

    r9320 r11254  
    22      enctype="multipart/form-data" i18n:domain="waeup.kofa">
    33
    4   <ul class="tabs" data-tabs="tabs">
    5     <li tal:attributes="class view/tab1"><a href="#tab-1" i18n:translate="">Settings</a></li>
    6     <li tal:attributes="class view/tab2"><a href="#tab-2" i18n:translate="">Certificate Courses</a></li>
    7     <li tal:attributes="class view/tab3"><a href="#tab-3" i18n:translate="">Local Roles</a></li>
     4  <ul class="tabs nav nav-tabs" data-tabs="tabs">
     5    <li class="active">
     6      <a href="#tab1" data-toggle="tab" i18n:translate="">Settings</a>
     7    </li>
     8    <li>
     9      <a href="#tab2" data-toggle="tab"
     10         i18n:translate="">Certificate Courses</a>
     11    </li>
     12    <li>
     13      <a href="#tab3" data-toggle="tab" i18n:translate="">Local Roles</a>
     14    </li>
    815  </ul>
    916
    1017  <div class="tab-content">
    11     <div id="tab-1" tal:attributes="class view/tab1">
    12     <table class="form-table">
    13       <tbody>
    14         <tal:widgets 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>
     18    <div id="tab1" class="active tab-pane">
     19      <table class="form-table">
     20        <tbody>
     21          <tal:widgets content="structure provider:widgets" />
     22        </tbody>
     23      </table>
     24      <div tal:condition="view/availableActions">
     25        <span tal:repeat="action view/actions"
     26              tal:omit-tag="">
     27          <input tal:condition="python:action.label in view.taboneactions"
     28                 tal:replace="structure action/render"/>
     29        </span>
     30      </div>
    2331    </div>
    24     </div>
    25     <div id="tab-2" tal:attributes="class view/tab2">
    26       <h3>
    27         <span tal:content="context/__name__">Code</span>
    28         <span i18n:domain="waeup.kofa" i18n:translate="">Courses</span>
    29       </h3>
    30       <table class="display dataTableManage">
     32    <div id="tab2" class="tab-pane">
     33      <br />
     34      <table class="kofa-data-table dataTableManage">
    3135        <thead>
    3236          <tr>
     
    4145        </thead>
    4246        <tbody>
    43           <tr tal:repeat="cc context/values" class="gradeC">
    44              <td>
     47          <tr tal:repeat="cc context/values">
     48            <td>
    4549              <input type="checkbox" name="val_id"
    46                         tal:attributes="value cc/__name__" />
     50                    tal:attributes="value cc/__name__" />
    4751            </td>
    48              <td>
     52            <td>
    4953              <span tal:content="cc/level">
    50                    LEVEL
     54                LEVEL
    5155              </span>
    5256            </td>
     
    5458            <td>
    5559              <a tal:attributes="href python: view.url(cc)"
    56                      tal:content="cc/__name__">
     60                 tal:content="cc/__name__">
    5761                REFERRER CODE
    5862              </a>
     
    6064            <td>
    6165              <a tal:attributes="href python:view.url(cc.course)"
    62                      tal:content="cc/course/code">
     66                 tal:content="cc/course/code">
    6367                COURSE CODE
    6468              </a>
     
    6670            <td>
    6771              <span tal:content="cc/course/title">
    68                    COURSE TITLE
     72                COURSE TITLE
    6973              </span>
    7074            </td>
    7175            <td>
    7276              <span tal:content="cc/mandatory">
    73                    REQUIRED
     77                REQUIRED
    7478              </span>
    7579            </td>
     
    8589      </div>
    8690    </div>
    87     <div id="tab-3" tal:attributes="class view/tab3"> <br />
    88       <table class="display dataTableManage">
     91    <div id="tab3" class="tab-pane">
     92      <br />
     93      <table class="kofa-data-table dataTableManage">
    8994        <thead>
    9095          <tr>
     
    100105        </thead>
    101106        <tbody>
    102           <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td>
    103               <input type="checkbox" name="role_id"
    104                 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
     107          <tr tal:repeat="entry view/getUsersWithLocalRoles"> <td>
     108            <input type="checkbox" name="role_id"
     109                   tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
    105110            <td tal:content="entry/user_name"> USERNAME </td>
    106111            <td tal:content="entry/user_title"> USERTITLE </td>
     
    112117        <span tal:repeat="action view/actions" tal:omit-tag="">
    113118          <input tal:condition="python:action.label in view.tabthreeactions1"
    114             tal:replace="structure action/render"/>
     119                 tal:replace="structure action/render"/>
    115120        </span>
    116121      </div><br /><br />
    117       <table class="form-table">
    118         <tr> <td>
    119             <select id="user" name="user">
    120               <option tal:repeat="user view/getUsers"
    121                 tal:attributes="value user/name">
    122               <span tal:replace="user/val/title">USERTITLE
    123               </span>
    124               </option>
    125             </select> </td> <td>
    126             <select id="local_role" name="local_role">
    127               <option tal:repeat="localrole view/getLocalRoles"
    128                 tal:attributes="value localrole/name">
    129               <span tal:replace="localrole/title">LOCALROLETITLE
    130               </span>
    131               </option>
    132             </select> </td> <td>
    133             <div tal:condition="view/availableActions">
    134               <span tal:repeat="action view/actions" tal:omit-tag="">
    135                 <input tal:condition="python:action.label in view.tabthreeactions2"
    136                   tal:replace="structure action/render"/>
    137               </span>
    138             </div> </td>
    139         </tr>
    140       </table>
     122      <div class="form-inline">
     123        <br />
     124        <div class="form-group">
     125          <select id="user" name="user" class="form-control">
     126            <option tal:repeat="user view/getUsers"
     127                    tal:attributes="value user/name">
     128            <span tal:replace="user/val/title">USERTITLE
     129            </span>
     130            </option>
     131          </select>
     132        </div>
     133        <div class="form-group">
     134          <select id="local_role" name="local_role" class="form-control">
     135            <option tal:repeat="localrole view/getLocalRoles"
     136                    tal:attributes="value localrole/name">
     137            <span tal:replace="localrole/title">LOCALROLETITLE
     138            </span>
     139            </option>
     140          </select>
     141        </div>
     142        <div class="form-group">
     143          <div tal:condition="view/availableActions">
     144            <span tal:repeat="action view/actions" tal:omit-tag="">
     145              <input tal:condition="python:action.label in view.tabthreeactions2"
     146                     tal:replace="structure action/render"/>
     147            </span>
     148          </div>
     149        </div>
     150      </div>
    141151    </div>
    142152  </div>
    143153</form>
    144 
    145 
    146 
Note: See TracChangeset for help on using the changeset viewer.