From 0edbc003426d9c5aceda9bf9a5b11deea8030109 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Tue, 5 Jun 2018 13:42:24 +0200
Subject: [PATCH] filtering by voucher status added

---
 smash/web/static/js/smash.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/smash/web/static/js/smash.js b/smash/web/static/js/smash.js
index 6da68884..c39d3e98 100644
--- a/smash/web/static/js/smash.js
+++ b/smash/web/static/js/smash.js
@@ -239,6 +239,15 @@ function createTable(params) {
         $(this).html('<select style="width:60px" >' + options + '</select>');
     });
 
+    $(tableElement).find('tfoot div[name="voucher_status_filter"]').each(function () {
+        $(this).html('<select style="width:60px" ><option value selected="selected">---</option>' +
+            '<option value="NEW">NEW</option>' +
+            '<option value="IN_USE">IN USE</option>' +
+            '<option value="USED">USED</option>' +
+            '<option value="EXPIRED">EXPIRED</option>' +
+            '</select>');
+    });
+
     $(tableElement).find('tfoot div[name="visit_filter"]').each(function () {
         $(this).html('<select style="width:60px" >' +
             '<option value selected="selected">---</option>' +
-- 
GitLab