Form fixes

This commit is contained in:
George Drummond 2019-02-14 10:16:16 -05:00
parent 1efb6cf9a1
commit e3939dfd09
No known key found for this signature in database
GPG Key ID: 296DD6077123BF17
3 changed files with 14 additions and 3 deletions

View File

@ -27,6 +27,7 @@ def signature_requested(task_order_id):
return render_template( return render_template(
"task_orders/signing/signature_requested.html", "task_orders/signing/signature_requested.html",
task_order_id=task_order.id, task_order_id=task_order.id,
portfolio_id=task_order.portfolio_id,
form=SignatureForm(), form=SignatureForm(),
) )
@ -68,6 +69,7 @@ def record_signature(task_order_id):
render_template( render_template(
"task_orders/signing/signature_requested.html", "task_orders/signing/signature_requested.html",
task_order_id=task_order_id, task_order_id=task_order_id,
portfolio_id=task_order.portfolio_id,
form=form, form=form,
), ),
400, 400,

View File

@ -55,7 +55,9 @@
v-on:input='onInput' v-on:input='onInput'
v-on:change='onChange' v-on:change='onChange'
v-bind:value='value' v-bind:value='value'
{% if not disabled %}
id='{{ field.name }}' id='{{ field.name }}'
{% endif %}
ref='input' ref='input'
placeholder='{{ placeholder }}'> placeholder='{{ placeholder }}'>
</textarea> </textarea>
@ -71,11 +73,12 @@
v-bind:pipe='pipe' v-bind:pipe='pipe'
v-bind:keep-char-positions='keepCharPositions' v-bind:keep-char-positions='keepCharPositions'
v-bind:aria-invalid='showError' v-bind:aria-invalid='showError'
id='{{ field.name }}'
type='text' type='text'
{% if disabled %} {% if disabled %}
disabled="disabled" disabled="disabled"
readonly="readonly" readonly="readonly"
{% else %}
id='{{ field.name }}'
{% endif %} {% endif %}
ref='input' ref='input'
placeholder='{{ placeholder }}'> placeholder='{{ placeholder }}'>
@ -83,7 +86,13 @@
{% endif %} {% endif %}
<input type='hidden' v-bind:value='rawValue' name='{{ field.name }}' /> <input
type='hidden'
v-bind:value='rawValue'
{% if not disabled %}
name='{{ field.name }}'
{% endif %}
/>
<template v-if='showError'> <template v-if='showError'>
<span class='usa-input__message' v-html='validationError'></span> <span class='usa-input__message' v-html='validationError'></span>

View File

@ -42,7 +42,7 @@
</button> </button>
<a <a
href="{{ request.referrer or url_for("atst.home") }}" href="{{ url_for("portfolios.ko_review", portfolio_id=portfolio_id, task_order_id=task_order_id) }}"
class="action-group__action icon-link"> class="action-group__action icon-link">
{{ Icon('caret_left') }} {{ Icon('caret_left') }}
<span class="icon icon--x"></span> <span class="icon icon--x"></span>