From 1aa24e8f97415e6c52c96a21054ce647b6ba1ae8 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 3 Jun 2016 09:11:16 +0100 Subject: [PATCH 1/2] Remove placeholder template component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We weren’t using this anywhere. --- app/templates/components/placeholder.html | 3 --- app/templates/views/check.html | 1 - 2 files changed, 4 deletions(-) delete mode 100644 app/templates/components/placeholder.html diff --git a/app/templates/components/placeholder.html b/app/templates/components/placeholder.html deleted file mode 100644 index e9deb0f4a..000000000 --- a/app/templates/components/placeholder.html +++ /dev/null @@ -1,3 +0,0 @@ -{% macro placeholder(variable) %} - {{variable}} -{% endmacro %} diff --git a/app/templates/views/check.html b/app/templates/views/check.html index fbabfbbe3..539ed320f 100644 --- a/app/templates/views/check.html +++ b/app/templates/views/check.html @@ -3,7 +3,6 @@ {% from "components/email-message.html" import email_message %} {% from "components/sms-message.html" import sms_message %} {% from "components/table.html" import list_table, field, text_field, index_field, hidden_field_heading %} -{% from "components/placeholder.html" import placeholder %} {% from "components/file-upload.html" import file_upload %} {% from "components/page-footer.html" import page_footer %} {% from "components/list.html" import formatted_list %} From 51f6450e5da9a321bc77a8377327c89f8c1f54d0 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 2 Jun 2016 10:40:17 +0100 Subject: [PATCH 2/2] Make placeholder look more editable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Depends on: - [ ] https://github.com/alphagov/notifications-utils/pull/40 In research we’ve noticed two problems with the appearance of placeholders: 1. We are inconsistent about when we display the ((double brackets)). Sometimes we show them, sometimes we don’t. This doesn’t help user’s understanding about where the column names in their CSV file come from, or how they can edit the template to fix any errors. 2. Because they look so different from normal `