Ignore:
Timestamp:
4 Nov 2011, 14:36:44 (13 years ago)
Author:
Henrik Bettermann
Message:

Implement bed booking algorithm (work in progress!).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser_templates/hostelmanagepage.pt

    r6971 r6996  
    7979                  tal:attributes="value value/__name__" />
    8080          </td>
    81           <td> <a tal:attributes="href value/__name__">
    82           <span tal:content="value/bed_id">Id</span>
    83           </a></td>
     81          <td tal:content="value/bed_id">Id</td>
    8482          <td tal:content="value/bed_type">Type</td>
    8583          <td tal:content="value/bed_number">Number</td>
    86           <td tal:content="value/owner">Owner</td>
     84          <td>
     85            <a tal:condition="python: value.owner != view.not_occupied"
     86               tal:attributes="href python: '%s/%s' % (view.students_url,value.owner)">
     87              <span tal:content="value/owner">Owner</span>
     88            </a>
     89          </td>
    8790        </tr>
    8891      </tbody>
Note: See TracChangeset for help on using the changeset viewer.