Changeset 11015 for main/waeup.kofa


Ignore:
Timestamp:
31 Jan 2014, 08:50:12 (11 years ago)
Author:
Henrik Bettermann
Message:

Adjust hostels module.

Location:
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/hostels
Files:
4 edited

Legend:

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

    r8685 r11015  
    44
    55
    6   <ul class="tabs" data-tabs="tabs">
    7     <li tal:attributes="class view/tab1">
    8     <a href="#tab-1">
    9       <span i18n:translate="">Settings
    10       </span></a>
     6  <ul class="tabs nav nav-tabs" data-tabs="tabs">
     7    <li class="active">
     8      <a href="#tab1" data-toggle="tab" i18n:translate="">
     9        Settings
     10      </a>
    1111    </li>
    12     <li tal:attributes="class view/tab2">
    13     <a href="#tab-2" i18n:translate="">Hostels</a>
     12    <li>
     13      <a href="#tab2" data-toggle="tab" i18n:translate="">
     14        Hostels
     15      </a>
    1416    </li>
    1517  </ul>
    1618
    1719  <div class="tab-content">
    18     <div id="tab-1" tal:attributes="class view/tab1">
     20    <div id="tab1" class="active tab-pane">
     21      <br />
    1922      <table class="form-table">
    2023        <tbody>
     
    2932      </div>
    3033    </div>
    31     <div id="tab-2" tal:attributes="class view/tab2"> <br />
    32       <table class="display dataTableManage">
     34    <div id="tab2" class="tab-pane">
     35      <br />
     36      <table class="dataTableManage">
    3337        <thead>
    3438          <tr>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/hostels/browser_templates/containerpage.pt

    r10674 r11015  
    1616</table>
    1717
    18 <table i18n:domain="waeup.kofa">
     18<table i18n:domain="waeup.kofa" class="table">
    1919  <thead>
    2020    <tr>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/hostels/browser_templates/hostelmanagepage.pt

    r9534 r11015  
    22      i18n:domain="waeup.kofa" enctype="multipart/form-data">
    33
    4   <ul class="tabs" data-tabs="tabs">
    5     <li tal:attributes="class view/tab1"><a href="#tab-1">
    6       <span i18n:translate="">Hostel Data</span></a>
     4  <ul class="tabs nav nav-tabs" data-tabs="tabs">
     5    <li class="active">
     6      <a href="#tab1" data-toggle="tab">
     7        <span i18n:translate="">Hostel Data</span>
     8      </a>
    79    </li>
    8     <li tal:attributes="class view/tab2"><a href="#tab-2">
    9       <span i18n:translate="">Beds</span></a>
     10    <li>
     11      <a href="#tab2" data-toggle="tab">
     12        <span i18n:translate="">Beds</span>
     13      </a>
    1014    </li>
    1115  </ul>
    1216
    1317  <div class="tab-content">
    14     <div id="tab-1" tal:attributes="class view/tab1">
     18    <div id="tab1" class="active tab-pane">
     19      <br />
    1520      <table class="form-table">
    1621      <tbody>
     
    3742    </div>
    3843
    39     <div id="tab-2" tal:attributes="class view/tab2">
    40       <h3>Beds</h3>
    41       <table class="display dataTableManage">
    42       <thead>
    43         <tr>
    44           <th>&nbsp;</th>
    45           <th i18n:translate="">Id</th>
    46           <th i18n:translate="">Type</th>
    47           <th i18n:translate="">Number</th>
    48           <th i18n:translate="">Owner</th>
    49         </tr>
    50       </thead>
    51       <tbody>
    52         <tr tal:repeat="value context/values">
    53            <td>
    54             <input type="checkbox" name="val_id"
    55                   tal:attributes="value value/__name__" />
    56           </td>
    57           <td tal:content="value/bed_id">ID</td>
    58           <td tal:content="value/bed_type">TYPE</td>
    59           <td tal:content="value/bed_number">NUMBER</td>
    60           <td>
    61             <a tal:condition="python: value.owner != view.not_occupied"
    62                tal:attributes="href python: '%s/%s/accommodation' %
    63                     (view.students_url,value.owner)">
    64               <span tal:content="value/owner">OWNER</span>
    65             </a>
    66             <a tal:condition="python: value.owner == view.not_occupied"
    67                tal:attributes="href python: view.url(value)"
    68                i18n:translate="">
    69             [allocate student]
    70             </a>
    71           </td>
    72         </tr>
    73       </tbody>
     44    <div id="tab2" class="tab-pane">
     45      <br />
     46      <table class="dataTableManage">
     47        <thead>
     48          <tr>
     49            <th>&nbsp;</th>
     50            <th i18n:translate="">Id</th>
     51            <th i18n:translate="">Type</th>
     52            <th i18n:translate="">Number</th>
     53            <th i18n:translate="">Owner</th>
     54          </tr>
     55        </thead>
     56        <tbody>
     57          <tr tal:repeat="value context/values">
     58             <td>
     59              <input type="checkbox" name="val_id"
     60                          tal:attributes="value value/__name__" />
     61            </td>
     62            <td tal:content="value/bed_id">ID</td>
     63            <td tal:content="value/bed_type">TYPE</td>
     64            <td tal:content="value/bed_number">NUMBER</td>
     65            <td>
     66              <a tal:condition="python: value.owner != view.not_occupied"
     67                 tal:attributes="href python: '%s/%s/accommodation' %
     68                      (view.students_url,value.owner)">
     69                <span tal:content="value/owner">OWNER</span>
     70              </a>
     71              <a tal:condition="python: value.owner == view.not_occupied"
     72                 tal:attributes="href python: view.url(value)"
     73                 i18n:translate="">
     74              [allocate student]
     75              </a>
     76            </td>
     77          </tr>
     78        </tbody>
    7479      </table>
    7580
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/hostels/tests.py

    r10683 r11015  
    368368        self.browser.open(self.container_path + '/hall-1/hall-1_A_101_A')
    369369        self.assertEqual(self.browser.url,
    370             self.container_path + '/hall-1/@@manage?tab2')
     370            self.container_path + '/hall-1/@@manage#tab2')
    371371        # Updating the beds again will not affect the allocation and also
    372372        # the bed numbering remains the same
Note: See TracChangeset for help on using the changeset viewer.