diff --git a/templates/components/multi_checkbox_input.html b/templates/components/multi_checkbox_input.html new file mode 100644 index 00000000..b11ec0ae --- /dev/null +++ b/templates/components/multi_checkbox_input.html @@ -0,0 +1,52 @@ +{% from "components/icon.html" import Icon %} +{% from "components/tooltip.html" import Tooltip %} + +{% macro MultiCheckboxInput(field, tooltip, inline=False) -%} + +
+ +
+ +
+ {{ field.label | striptags}} + {% if tooltip %}{{ Tooltip(tooltip) }}{% endif %} +
+ + {% if field.description %} + {{ field.description | safe }} + {% endif %} + + {{ Icon('alert',classes="icon-validation") }} + {{ Icon('ok',classes="icon-validation") }} +
+ +
    + {% for f in field.choices %} +
  • + + + {% if f[0] == 'other' %} + + {% endif %} +
  • + {% endfor %} +
+ + + + + +
+
+ +
+ +{%- endmacro %} diff --git a/templates/task_orders/new/app_info.html b/templates/task_orders/new/app_info.html index dc8e6d02..6116e153 100644 --- a/templates/task_orders/new/app_info.html +++ b/templates/task_orders/new/app_info.html @@ -3,6 +3,7 @@ {% from "components/text_input.html" import TextInput %} {% from "components/options_input.html" import OptionsInput %} {% from "components/date_input.html" import DateInput %} +{% from "components/multi_checkbox_input.html" import MultiCheckboxInput %} {% block heading %} What You're Building @@ -28,16 +29,7 @@

About Your Project

{{ OptionsInput(form.app_migration) }} {{ OptionsInput(form.native_apps) }} - - -
- {{ OptionsInput(form.complexity) }} - {{ TextInput(form.complexity_other) }} - -
{{ TextInput(form.complexity_other) }}
-
-
-
+{{ MultiCheckboxInput(form.complexity) }}