Skip to content
Snippets Groups Projects
Commit 76f774cd authored by Piotr Gawron's avatar Piotr Gawron
Browse files

voucher list is dynamic, sortable and filterable

parent 324cf356
No related branches found
No related tags found
1 merge request!138list of vouchers with possibility to filter and sort
...@@ -24,41 +24,6 @@ ...@@ -24,41 +24,6 @@
<h3>Visible columns</h3> <h3>Visible columns</h3>
<div id="visible-column-checkboxes" style="display:table; width:100%"> <div id="visible-column-checkboxes" style="display:table; width:100%">
</div> </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 %} {% endblock maincontent %}
{% block scripts %} {% block scripts %}
...@@ -79,6 +44,7 @@ ...@@ -79,6 +44,7 @@
subject_types_url: "{% url 'web.api.subject_types' %}", subject_types_url: "{% url 'web.api.subject_types' %}",
locations_url: "{% url 'web.api.locations' %}", locations_url: "{% url 'web.api.locations' %}",
subjects_url: "{% url 'web.api.vouchers'%}", subjects_url: "{% url 'web.api.vouchers'%}",
voucher_partner_url: "{% url 'web.api.workers' 'VOUCHER_PARTNER' %}",
voucher_types_url: "{% url 'web.api.voucher_types' %}", voucher_types_url: "{% url 'web.api.voucher_types' %}",
flying_teams_url: "{% url 'web.api.flying_teams' %}", flying_teams_url: "{% url 'web.api.flying_teams' %}",
tableElement: document.getElementById("table"), tableElement: document.getElementById("table"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment