From 0e3217d3ac7ece73cc06d7c62c220a49e8435b5e Mon Sep 17 00:00:00 2001 From: George Drummond Date: Fri, 3 May 2019 14:53:02 -0400 Subject: [PATCH] Disable SaveButton if form is invalid --- templates/components/save_button.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/components/save_button.html b/templates/components/save_button.html index 4adb6e37..919cc73b 100644 --- a/templates/components/save_button.html +++ b/templates/components/save_button.html @@ -1,10 +1,10 @@ {% macro SaveButton(text, element="button", additional_classes="", form=None) -%} {% set class = "usa-button usa-button-primary" + additional_classes %} {% if element == "button" %} - {% elif element == 'input' %} - + {% endif %} {%- endmacro %}