Ignore:
Timestamp:
13 Oct 2019, 19:15:33 (5 years ago)
Author:
Henrik Bettermann
Message:

Implement combi payments (tests will follow).

File:
1 edited

Legend:

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

    r13577 r15664  
    1010        <td>
    1111          <select id="form.p_category" name="form.p_category" size="1"
    12                   class="form-control half" onclick="test()">
     12                  class="form-control half" onclick="further()">
    1313            <option tal:repeat="item view/selectable_categories"
    1414                    tal:attributes="value python:item[0]">
     
    1818        </td>
    1919      </tr>
     20    </tbody>
     21  </table>
     22
     23  <table id="widgets" class="form-table" style="display: none;">
     24    <tbody>
     25      <tal:widgets content="structure provider:widgets" />
    2026    </tbody>
    2127  </table>
     
    4753
    4854<script type="text/javascript">
    49   function test() {
     55  function further() {
    5056      if (document.getElementById('form.p_category').value == 'transfer') {
    5157          document.getElementById('p_item').style.display = 'block';
     
    5359          document.getElementById('p_item').style.display = 'none';
    5460      }
     61      if (document.getElementById('form.p_category').value == 'combi') {
     62          document.getElementById('widgets').style.display = 'block';
     63      } else {
     64          document.getElementById('widgets').style.display = 'none';
     65      }
    5566  }
    5667</script>
Note: See TracChangeset for help on using the changeset viewer.