From c88e29bd2df1e630891523e3b32ee2be28b51e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 11 Mar 2019 22:01:09 +0100 Subject: [PATCH] shop: new filter 'clothes' --- shop.json | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/shop.json b/shop.json index 7e0d285..b480f9e 100644 --- a/shop.json +++ b/shop.json @@ -49,6 +49,17 @@ "{% else %}", " {{ c|raw }}", "{% endif %}" + ], + "body": [ + "" ] }, "const": { @@ -335,7 +346,37 @@ "mobile_phone": { "sign": "fas:mobile-alt" } - } + }, + "clothes": [ + "women", + "men", + "leather", + "fur", + "underwear", + "children", + "wedding", + "sports", + "workwear", + "lingerie", + "babies", + "hats", + "fashion", + "suits", + "unisexs", + "traditional", + "costumes", + "bridal", + "oversize", + "swimwear", + "maternity", + "brand", + "military", + "vintage", + "accessories", + "schoolwear", + "motorcycle", + "denim" + ] }, "filter": { "shop": { @@ -345,6 +386,13 @@ "values": "{% set list = [] %}{% for k, v in const.shops %}{% endfor %}", "sort": "natsort", "op": "has" + }, + "clothes": { + "name": "{{ keyTrans('clothes') }}", + "type": "select", + "values": "{% set list = [] %}{% for k in const.clothes %}{% set list = list|merge([ k ]) %}{% endfor %}", + "sort": "natsort", + "op": "has" } } }