- {% if not safe_error_message %}{{ field.errors[0] }}{% else %}{{ field.errors[0]|safe }}{% endif %}
-
-
-
- {% endif %}
{% endif %}
+ {% if field.errors %}
+
+ Error:
+ {% if not safe_error_message %}{{ field.errors[0] }}{% else %}{{ field.errors[0]|safe }}{% endif %}
+
+ {% endif %}
{%
if highlight_placeholders or autosize
%}
@@ -59,6 +55,8 @@
data_highlight_placeholders='true' if highlight_placeholders else 'false',
rows=rows|string,
placeholder=placeholder,
+ aria_describedby=field.name+"-error",
+ required='required' if required else None,
**kwargs
) }}
{% if suffix %}
diff --git a/app/templates/views/edit-sms-template.html b/app/templates/views/edit-sms-template.html
index 97eac73dc..8ef41bdb2 100644
--- a/app/templates/views/edit-sms-template.html
+++ b/app/templates/views/edit-sms-template.html
@@ -32,6 +32,8 @@
{{ form.name(param_extensions={
"extra_form_group_classes": "margin-bottom-2",
+ "id": "name",
+ "required": True,
"hint": {"text": "Your recipients will not see this"}
}) }}
{{ textbox(
@@ -41,7 +43,8 @@
hint=content_hint,
rows=5,
extra_form_group_classes='margin-bottom-1',
- placeholder='Edit me! Check out the Personalization section below for details on cool ((stuff)) you can do with your messages!'
+ placeholder='Edit me! Check out the Personalization section below for details on cool ((stuff)) you can do with your messages!',
+ required=True
) }}
{% if current_user.platform_admin %}
{{ form.process_type }}
diff --git a/app/templates/views/send-test.html b/app/templates/views/send-test.html
index 720849ae6..be3b32a9a 100644
--- a/app/templates/views/send-test.html
+++ b/app/templates/views/send-test.html
@@ -37,8 +37,8 @@
data_kwargs={'force-focus': True}
) %}