Use base-form and SaveButton
This commit is contained in:
parent
068405607c
commit
a942b5f172
@ -1,25 +1,24 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% from "components/save_button.html" import SaveButton %}
|
||||||
{% from "components/text_input.html" import TextInput %}
|
{% from "components/text_input.html" import TextInput %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<form id="add-ccpo-user-form" action="{{ url_for('ccpo.submit_new_user') }}" method="POST">
|
<base-form inline-template>
|
||||||
{{ form.csrf_token }}
|
<form id="add-ccpo-user-form" action="{{ url_for('ccpo.submit_new_user') }}" method="POST">
|
||||||
<h1>{{ "ccpo.form.add_user_title" | translate }}</h1>
|
{{ form.csrf_token }}
|
||||||
<div class='form-row'>
|
<h1>{{ "ccpo.form.add_user_title" | translate }}</h1>
|
||||||
<div class='form-col form-col--two-thirds'>
|
<div class='form-row'>
|
||||||
{{ TextInput(form.dod_id, validation='dodId') }}
|
<div class='form-col form-col--two-thirds'>
|
||||||
</div>
|
{{ TextInput(form.dod_id, validation='dodId') }}
|
||||||
<div class="form-col form-col--third">
|
</div>
|
||||||
<div class='action-group'>
|
<div class="form-col form-col--third">
|
||||||
<input
|
<div class='action-group'>
|
||||||
type='submit'
|
{{ SaveButton(text="common.next"|translate, element="input", additional_classes="action-group__action", form="add-ccpo-user-form") }}
|
||||||
v-bind:disabled="invalid"
|
<a class='action-group__action icon-link icon-link--default' href="{{ url_for('ccpo.users') }}">{{ "common.cancel" | translate }}</a>
|
||||||
class='action-group__action usa-button'
|
</div>
|
||||||
value='{{ "common.next" | translate }}'>
|
|
||||||
<a class='action-group__action icon-link icon-link--default' href="{{ url_for('ccpo.users') }}">{{ "common.cancel" | translate }}</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</form>
|
||||||
</form>
|
</base-form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user