Ignore:
Timestamp:
3 Feb 2014, 06:56:27 (11 years ago)
Author:
Henrik Bettermann
Message:

Put all data tables into a <div class="table-responsive"> element.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/applicants/browser_templates/applicantscontainermanagepage.pt

    r11026 r11037  
    3737    <tal:showApplicants  condition="view/showApplicants">
    3838      <br />
    39       <table class="dataTableManage">
    40         <thead>
    41           <tr>
    42             <th>&nbsp;
    43             </th>
    44             <th i18n:translate="">Application Number
    45             </th>
    46             <th i18n:translate="">Full Name
    47             </th>
    48             <th i18n:translate="">First Choice
    49             </th>
    50             <th i18n:translate="">Application State
    51             </th>
    52           </tr>
    53         </thead>
    54         <tbody>
    55           <tr tal:repeat="appl context/values">
    56             <td>
    57               <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" />
    58             </td>
    59             <td>
    60               <a tal:attributes="href python: view.url(appl)"
    61                  tal:content="appl/__name__">NUMBER</a>
    62             </td>
    63             <td>
    64               <span tal:replace="appl/display_fullname">FULLNAME
    65               </span>
    66             </td>
    67             <td>
    68               <span tal:replace="appl/course1/code|nothing">FIRSTCHOICE
    69               </span>
    70             </td>
    71             <td>
    72               <span tal:replace="appl/translated_state">STATE
    73               </span>
    74             </td>
    75           </tr>
    76         </tbody>
    77       </table>
     39      <div class="table-responsive">
     40        <table class="dataTableManage">
     41          <thead>
     42            <tr>
     43              <th>&nbsp;
     44              </th>
     45              <th i18n:translate="">Application Number
     46              </th>
     47              <th i18n:translate="">Full Name
     48              </th>
     49              <th i18n:translate="">First Choice
     50              </th>
     51              <th i18n:translate="">Application State
     52              </th>
     53            </tr>
     54          </thead>
     55          <tbody>
     56            <tr tal:repeat="appl context/values">
     57              <td>
     58                <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" />
     59              </td>
     60              <td>
     61                <a tal:attributes="href python: view.url(appl)"
     62                   tal:content="appl/__name__">NUMBER</a>
     63              </td>
     64              <td>
     65                <span tal:replace="appl/display_fullname">FULLNAME
     66                </span>
     67              </td>
     68              <td>
     69                <span tal:replace="appl/course1/code|nothing">FIRSTCHOICE
     70                </span>
     71              </td>
     72              <td>
     73                <span tal:replace="appl/translated_state">STATE
     74                </span>
     75              </td>
     76            </tr>
     77          </tbody>
     78        </table>
     79      </div>
    7880      <input type="checkbox" onClick="toggle(this, 'val_id')" />
    7981      <span  i18n:translate="">Select all</span>
     
    102104    </div>
    103105    <div id="tab3" class="tab-pane"> <br />
    104       <table class="dataTableManage">
    105         <thead>
    106           <tr>
    107             <th>&nbsp;
    108             </th>
    109             <th i18n:translate="">User Id
    110             </th>
    111             <th i18n:translate="">Name
    112             </th>
    113             <th i18n:translate="">Local Role
    114             </th>
    115           </tr>
    116         </thead>
    117         <tbody>
    118           <tr tal:repeat="entry view/getUsersWithLocalRoles"> <td>
    119               <input type="checkbox" name="role_id"
    120                 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
    121             <td tal:content="entry/user_name"> USERNAME  </td>
    122             <td tal:content="entry/user_title"> USERTITLE  </td>
    123             <td tal:content="entry/local_role_title"> LOCAL ROLE  </td>
    124           </tr>
    125         </tbody>
    126       </table>
     106      <div class="table-responsive">
     107        <table class="dataTableManage">
     108          <thead>
     109            <tr>
     110              <th>&nbsp;
     111              </th>
     112              <th i18n:translate="">User Id
     113              </th>
     114              <th i18n:translate="">Name
     115              </th>
     116              <th i18n:translate="">Local Role
     117              </th>
     118            </tr>
     119          </thead>
     120          <tbody>
     121            <tr tal:repeat="entry view/getUsersWithLocalRoles"> <td>
     122                <input type="checkbox" name="role_id"
     123                  tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
     124              <td tal:content="entry/user_name"> USERNAME  </td>
     125              <td tal:content="entry/user_title"> USERTITLE  </td>
     126              <td tal:content="entry/local_role_title"> LOCAL ROLE  </td>
     127            </tr>
     128          </tbody>
     129        </table>
     130      </div>
    127131      <div tal:condition="view/availableActions">
    128132        <span tal:repeat="action view/actions" tal:omit-tag="">
Note: See TracChangeset for help on using the changeset viewer.