Changeset 13577


Ignore:
Timestamp:
10 Jan 2016, 09:56:50 (9 years ago)
Author:
Henrik Bettermann
Message:

Add form pages should contain tables.

File:
1 edited

Legend:

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

    r13574 r13577  
    22      enctype="multipart/form-data">
    33
    4   <label for="p_cat" i18n:translate="">
    5     Payment Category:
    6   </label>
    7   <select id="form.p_category" name="form.p_category" size="1"
    8           class="form-control half" onclick="test()">
    9     <option tal:repeat="item view/selectable_categories"
    10             tal:attributes="value python:item[0]">
    11       <span tal:replace="python:item[1]">FEE CATEGORY</span>
    12     </option>
    13   </select>
     4  <table class="form-table">
     5    <tbody>
     6      <tr>
     7        <td class="fieldname">
     8          Payment Category:
     9        </td>
     10        <td>
     11          <select id="form.p_category" name="form.p_category" size="1"
     12                  class="form-control half" onclick="test()">
     13            <option tal:repeat="item view/selectable_categories"
     14                    tal:attributes="value python:item[0]">
     15              <span tal:replace="python:item[1]">FEE CATEGORY</span>
     16            </option>
     17          </select>
     18        </td>
     19      </tr>
     20    </tbody>
     21  </table>
    1422
    15   <span id="new_programme" style="display: none;">
    16     <br />
    17     <label for="new_programme" i18n:translate="">
    18       Desired Course of Study:
    19     </label>
    20     <input class="textType" id="new_programme" name="new_programme"
    21       type="text">
     23  <span id="p_item" style="display: none;">
     24  <table class="form-table">
     25    <tbody>
     26      <tr>
     27        <td class="fieldname">
     28          Desired Course of Study:
     29        </td>
     30        <td>
     31          <input class="textType" id="new_programme" name="new_programme"
     32            type="text">
     33        </td>
     34      </tr>
     35    </tbody>
     36  </table>
    2237  </span>
     38
    2339  <br />
     40
    2441  <div tal:condition="view/availableActions">
    2542    <input tal:repeat="action view/actions"
     
    3249  function test() {
    3350      if (document.getElementById('form.p_category').value == 'transfer') {
    34           document.getElementById('new_programme').style.display = 'block';
     51          document.getElementById('p_item').style.display = 'block';
    3552      } else {
    36           document.getElementById('new_programme').style.display = 'none';
     53          document.getElementById('p_item').style.display = 'none';
    3754      }
    3855  }
Note: See TracChangeset for help on using the changeset viewer.