From 840bb916f6ac26a721e0077d883138d387f604a2 Mon Sep 17 00:00:00 2001 From: Gemma Leigh Date: Wed, 7 Sep 2016 15:03:03 +0100 Subject: [PATCH] Add a select box example Include an example to show what select boxes (drop-down lists) look like. This example was only shown in the form elements example page. --- app/views/guide_form_elements.html | 10 ++++++++++ app/views/snippets/form_select_boxes.html | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 app/views/snippets/form_select_boxes.html diff --git a/app/views/guide_form_elements.html b/app/views/guide_form_elements.html index ef7cf84ca..1677909d0 100755 --- a/app/views/guide_form_elements.html +++ b/app/views/guide_form_elements.html @@ -141,6 +141,16 @@

Select boxes

Avoid using select boxes (drop-down lists) - use radio buttons or checkboxes instead.

+
+ {% include "snippets/form_select_boxes.html" %} +
+ +
+
+  {% include "snippets/encoded/form_select_boxes.html" %}
+
+
+

Discuss select boxes on the design patterns Hackpad diff --git a/app/views/snippets/form_select_boxes.html b/app/views/snippets/form_select_boxes.html new file mode 100644 index 000000000..7e46dca0b --- /dev/null +++ b/app/views/snippets/form_select_boxes.html @@ -0,0 +1,8 @@ +

+ + +