From 73889e574a4325772a37b468c2e48f3fa163edf0 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Thu, 30 Aug 2018 14:21:42 -0400 Subject: [PATCH] popup selector html --- templates/components/selector.html | 63 ++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 templates/components/selector.html diff --git a/templates/components/selector.html b/templates/components/selector.html new file mode 100644 index 00000000..c64bf9a0 --- /dev/null +++ b/templates/components/selector.html @@ -0,0 +1,63 @@ +{% from "components/icon.html" import Icon %} + +{# expects a wtforms SelectField instance #} +{% macro Selector(field, default_label='Select an option') -%} + + + +
+ + + {{ field.label | striptags }} + + {% if field.description %} + {{ field.description | safe }} + {% endif %} + + {{ Icon('alert',classes="icon-validation") }} + + + + + {{ Icon('alert',classes="icon-validation") }} + + + + + +
+
+ +{%- endmacro %}