Ignore:
Timestamp:
5 Apr 2018, 15:30:08 (7 years ago)
Author:
Henrik Bettermann
Message:

Add ticket level and session filter to CourseTicketExporter.

File:
1 edited

Legend:

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

    r12971 r14984  
    5050    </option>
    5151  </select>
    52   <br />
     52
    5353  <span id="payment_dates" style="display: none;">
     54    <br />
    5455    <label for="mode" i18n:translate="">
    5556      Payment Date
     
    6566    <br />
    6667  </span>
     68
     69
     70  <span id="ct_data" style="display: none;">
     71    <br />
     72    <label for="mode" i18n:translate="">
     73      Course Ticket Level
     74    </label>
     75    <select name="ct_level" class="form-control half">
     76      <option tal:repeat="item view/levels"
     77              tal:attributes="value python:item[1]">
     78        <span tal:replace="python: item[0]">200</span>
     79      </option>
     80    </select>
     81    <br />
     82    <label for="mode" i18n:translate="">
     83      Course Ticket Session
     84    </label>
     85    <select name="ct_session" class="form-control half">
     86      <option tal:repeat="item view/sessions"
     87              tal:attributes="value python:item[1]">
     88        <span tal:replace="python: item[0]">2012/2013</span>
     89      </option>
     90    </select>
     91    <br />
     92  </span>
    6793  <br />
     94
    6895  <input type="submit" name="START"  i18n:translate=""
    6996    value="Create CSV file"
     
    77104          document.getElementById('exporter').value == 'studentunpaidpayments') {
    78105          document.getElementById('payment_dates').style.display = 'block';
     106          document.getElementById('ct_data').style.display = 'none';
     107      } else if (document.getElementById('exporter').value == 'coursetickets')  {
     108          document.getElementById('ct_data').style.display = 'block';
     109          document.getElementById('payment_dates').style.display = 'none';
    79110      } else {
     111          document.getElementById('ct_data').style.display = 'none';
    80112          document.getElementById('payment_dates').style.display = 'none';
    81113      }
    82114  }
    83115</script>
     116
Note: See TracChangeset for help on using the changeset viewer.