Ignore:
Timestamp:
16 Nov 2015, 09:05:30 (9 years ago)
Author:
Henrik Bettermann
Message:

Add option which allows students to select a desired hostel before booking accommodation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/accommodationmanagepage.pt

    r13455 r13457  
    11<form action="." tal:attributes="action request/URL" method="POST"
    22      i18n:domain="waeup.kofa" enctype="multipart/form-data">
     3
     4  <tal:desired_hostel condition="view/actionsgroup1">
     5    <br />
     6    <p i18n:translate="">
     7    Select and save the <strong>desired hostel</strong> before booking acommodation.
     8    Your choice cannot be changed afterwards.
     9    </p>
     10    <div class="form-inline">
     11      <br />
     12      <div class="form-group">
     13        <select class="form-control" id="hostel" name="hostel">
     14          <option tal:repeat="hostel view/getHostels"
     15                  tal:attributes="value hostel/name; selected hostel/selected">
     16          <span tal:replace="hostel/title">USERTITLE
     17          </span>
     18          </option>
     19        </select>
     20      </div>
     21      <div class="form-group">
     22        <span tal:repeat="action view/actions" tal:omit-tag="">
     23          <input tal:condition="python:action.label in view.actionsgroup1"
     24                 tal:replace="structure action/render"/>
     25        </span>
     26      </div>
     27    </div>
     28    <br />
     29  </tal:desired_hostel>
     30
     31  <h3 i18n:domain="waeup.kofa" i18n:translate="">Bookings</h3>
     32  <br />
    333
    434  <table class="kofa-data-table dataTableManage">
     
    2858  </table>
    2959
    30   <div tal:condition="view/availableActions">
    31     <span tal:repeat="action view/selected_actions"
    32           tal:omit-tag="">
    33       <input tal:replace="structure action/render"/>
    34     </span>
    35   </div>
     60  <span tal:repeat="action view/actions"
     61        tal:omit-tag="">
     62    <input tal:condition="python:action.label in view.actionsgroup2"
     63          tal:replace="structure action/render"/>
     64  </span>
     65
    3666</form>
Note: See TracChangeset for help on using the changeset viewer.