From 39a6fd115af64c8bac0eb1a38e649a7064641f51 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 14 Apr 2016 14:01:16 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20option=20for=20=E2=80=98disabled?= =?UTF-8?q?=E2=80=99=20textbox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I think this was used for the invite page at one point, but isn’t now. Generally at GDS we don’t do disabled form controls, they don’t tell you _why_ they’re disabled. --- app/templates/components/textbox.html | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/app/templates/components/textbox.html b/app/templates/components/textbox.html index 480d773ea..e849a6bce 100644 --- a/app/templates/components/textbox.html +++ b/app/templates/components/textbox.html @@ -7,7 +7,6 @@ help_link_text=None, width='2-3', suffix=None, - disabled=False, safe_error_message=False, rows=8 ) %} @@ -25,20 +24,11 @@ {% endif %} - {% if disabled %} -

{{ field(**{ - 'class': 'form-control form-control-{} textbox-highlight-textbox'.format(width) if highlight_tags else 'form-control form-control-{} {}'.format(width, 'textbox-right-aligned' if suffix else ''), - 'data-module': 'highlight-tags' if highlight_tags else '', - 'disabled': 'disabled' - }) }} -

- {% else %} - {{ field(**{ - 'class': 'form-control form-control-{} textbox-highlight-textbox'.format(width) if highlight_tags else 'form-control form-control-{} {}'.format(width, 'textbox-right-aligned' if suffix else ''), - 'data-module': 'highlight-tags' if highlight_tags else '', - 'rows': rows|string - }) }} - {% endif %} + {{ field(**{ + 'class': 'form-control form-control-{} textbox-highlight-textbox'.format(width) if highlight_tags else 'form-control form-control-{} {}'.format(width, 'textbox-right-aligned' if suffix else ''), + 'data-module': 'highlight-tags' if highlight_tags else '', + 'rows': rows|string + }) }} {% if suffix %} {{ suffix }} {% endif %}