Changeset 11015 for main/waeup.kofa/branches/uli-diazo-themed
- Timestamp:
- 31 Jan 2014, 08:50:12 (11 years ago)
- 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 4 4 5 5 6 <ul class="tabs " data-tabs="tabs">7 <li tal:attributes="class view/tab1">8 <a href="#tab-1">9 <span i18n:translate="">Settings10 </ 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> 11 11 </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> 14 16 </li> 15 17 </ul> 16 18 17 19 <div class="tab-content"> 18 <div id="tab-1" tal:attributes="class view/tab1"> 20 <div id="tab1" class="active tab-pane"> 21 <br /> 19 22 <table class="form-table"> 20 23 <tbody> … … 29 32 </div> 30 33 </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"> 33 37 <thead> 34 38 <tr> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/hostels/browser_templates/containerpage.pt
r10674 r11015 16 16 </table> 17 17 18 <table i18n:domain="waeup.kofa" >18 <table i18n:domain="waeup.kofa" class="table"> 19 19 <thead> 20 20 <tr> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/hostels/browser_templates/hostelmanagepage.pt
r9534 r11015 2 2 i18n:domain="waeup.kofa" enctype="multipart/form-data"> 3 3 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> 7 9 </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> 10 14 </li> 11 15 </ul> 12 16 13 17 <div class="tab-content"> 14 <div id="tab-1" tal:attributes="class view/tab1"> 18 <div id="tab1" class="active tab-pane"> 19 <br /> 15 20 <table class="form-table"> 16 21 <tbody> … … 37 42 </div> 38 43 39 <div id="tab -2" tal:attributes="class view/tab2">40 < h3>Beds</h3>41 <table class="d isplay dataTableManage">42 <thead>43 <tr>44 <th> </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> </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> 74 79 </table> 75 80 -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/hostels/tests.py
r10683 r11015 368 368 self.browser.open(self.container_path + '/hall-1/hall-1_A_101_A') 369 369 self.assertEqual(self.browser.url, 370 self.container_path + '/hall-1/@@manage ?tab2')370 self.container_path + '/hall-1/@@manage#tab2') 371 371 # Updating the beds again will not affect the allocation and also 372 372 # the bed numbering remains the same
Note: See TracChangeset for help on using the changeset viewer.