11 lines
554 B
HTML
11 lines
554 B
HTML
{% macro SaveButton(text, element="button", additional_classes="", form=None) -%}
|
|
{% set class = "usa-button usa-button-primary" + additional_classes %}
|
|
{% if element == "button" %}
|
|
<button type="submit" class="{{ class }}" tabindex="0" v-bind:disabled="!changed || invalid" {{ form_attr }} >
|
|
{{ text }}
|
|
</button>
|
|
{% elif element == 'input' %}
|
|
<input type="submit" class="{{ class }}" tabindex="0" v-bind:disabled="!changed || invalid" value="{{ text }}" {% if form %}form="{{ form }}"{% endif %} />
|
|
{% endif %}
|
|
{%- endmacro %}
|