diff --git a/smash/web/templates/vouchers/list.html b/smash/web/templates/vouchers/list.html index 134eff6c6cb8a9683d7f1be6e830cc027c9982f5..99a39340aec7ed9bd833dd733ee3b5bac9659a89 100644 --- a/smash/web/templates/vouchers/list.html +++ b/smash/web/templates/vouchers/list.html @@ -24,41 +24,6 @@ <h3>Visible columns</h3> <div id="visible-column-checkboxes" style="display:table; width:100%"> </div> - -{# <div class="box-body">#} -{# <table id="table" class="table table-bordered table-striped">#} -{# <thead>#} -{# <tr>#} -{# <th>Number</th>#} -{# <th>Type</th>#} -{# <th>First name</th>#} -{# <th>Last name</th>#} -{# <th>Issue date</th>#} -{# <th>Expiry date</th>#} -{# <th>Status</th>#} -{# <th>Partner</th>#} -{# <th>Feedback</th>#} -{# <th>Edit</th>#} -{# </tr>#} -{# </thead>#} -{# <tbody>#} -{# {% for voucher in vouchers %}#} -{# <tr>#} -{# <td>{{ voucher.number }}</td>#} -{# <td>{{ voucher.voucher_type }}</td>#} -{# <td>{{ voucher.study_subject.subject.first_name }}</td>#} -{# <td>{{ voucher.study_subject.subject.last_name }}</td>#} -{# <td>{{ voucher.issue_date }}</td>#} -{# <td>{{ voucher.expiry_date }}</td>#} -{# <td>{{ voucher.status }}</td>#} -{# <td>{{ voucher.usage_partner.first_name }} {{ voucher.usage_partner.last_name }}</td>#} -{# <td>{{ voucher.feedback }}</td>#} -{# <td><a href="{% url 'web.views.voucher_edit' voucher.id %}"><i class="fa fa-edit"></i></a></td>#} -{# </tr>#} -{# {% endfor %}#} -{# </tbody>#} -{# </table>#} -{# </div>#} {% endblock maincontent %} {% block scripts %} @@ -79,6 +44,7 @@ subject_types_url: "{% url 'web.api.subject_types' %}", locations_url: "{% url 'web.api.locations' %}", subjects_url: "{% url 'web.api.vouchers'%}", + voucher_partner_url: "{% url 'web.api.workers' 'VOUCHER_PARTNER' %}", voucher_types_url: "{% url 'web.api.voucher_types' %}", flying_teams_url: "{% url 'web.api.flying_teams' %}", tableElement: document.getElementById("table"),