Post rebase fixes
This commit is contained in:
parent
61d7bc92d8
commit
454643c3c9
@ -2,6 +2,7 @@ from wtforms.fields import BooleanField, DecimalField, FieldList, FileField, For
|
|||||||
from wtforms.fields.html5 import DateField
|
from wtforms.fields.html5 import DateField
|
||||||
from wtforms.validators import Required, Optional
|
from wtforms.validators import Required, Optional
|
||||||
from flask_wtf.file import FileAllowed
|
from flask_wtf.file import FileAllowed
|
||||||
|
from flask_wtf import FlaskForm
|
||||||
|
|
||||||
from .data import JEDI_CLIN_TYPES
|
from .data import JEDI_CLIN_TYPES
|
||||||
from .fields import SelectField
|
from .fields import SelectField
|
||||||
|
@ -3,6 +3,7 @@ import DateSelector from '../date_selector'
|
|||||||
import FormMixin from '../../mixins/form'
|
import FormMixin from '../../mixins/form'
|
||||||
import optionsinput from '../options_input'
|
import optionsinput from '../options_input'
|
||||||
import textinput from '../text_input'
|
import textinput from '../text_input'
|
||||||
|
import uploadinput from '../upload_input'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'to-form',
|
name: 'to-form',
|
||||||
@ -14,6 +15,7 @@ export default {
|
|||||||
DateSelector,
|
DateSelector,
|
||||||
optionsinput,
|
optionsinput,
|
||||||
textinput,
|
textinput,
|
||||||
|
uploadinput,
|
||||||
},
|
},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
|
@ -21,13 +21,13 @@
|
|||||||
{% block portfolio_content %}
|
{% block portfolio_content %}
|
||||||
<div class="col task-order-form">
|
<div class="col task-order-form">
|
||||||
{% include "fragments/flash.html" %}
|
{% include "fragments/flash.html" %}
|
||||||
<to-form inline-template v-bind:initial-clin-count='{{ form.clins.data | length }}'>
|
<to-form inline-template v-bind:initial-clin-count="{{ form.clins.data | length }}">
|
||||||
{% if task_order_id %}
|
{% if task_order_id %}
|
||||||
{% set action = url_for("task_orders.update", portfolio_id=portfolio.id, task_order_id=task_order_id) %}
|
{% set action = url_for("task_orders.update", portfolio_id=portfolio.id, task_order_id=task_order_id) %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set action = url_for("task_orders.update", portfolio_id=portfolio.id) %}
|
{% set action = url_for("task_orders.update", portfolio_id=portfolio.id) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form id="new-task-order" action='{{ action }}' method="POST" autocomplete="off">
|
<form id="new-task-order" action='{{ action }}' method="POST" autocomplete="off" enctype="multipart/form-data">
|
||||||
{{ form.csrf_token }}
|
{{ form.csrf_token }}
|
||||||
<!-- TODO: implement save bar with component -->
|
<!-- TODO: implement save bar with component -->
|
||||||
<span class="h3">Add Funding</span>
|
<span class="h3">Add Funding</span>
|
||||||
@ -38,7 +38,9 @@
|
|||||||
{{ "common.cancel" | translate }}
|
{{ "common.cancel" | translate }}
|
||||||
</a>
|
</a>
|
||||||
<input type="submit" tabindex="0" value="Save" form="new-task-order" class="usa-button usa-button-primary">
|
<input type="submit" tabindex="0" value="Save" form="new-task-order" class="usa-button usa-button-primary">
|
||||||
|
<p>
|
||||||
{{ "task_orders.new.form_help_text" | translate }}
|
{{ "task_orders.new.form_help_text" | translate }}
|
||||||
|
</p>
|
||||||
<hr>
|
<hr>
|
||||||
{{ TextInput(form.number, validation='taskOrderNumber') }}
|
{{ TextInput(form.number, validation='taskOrderNumber') }}
|
||||||
{% for clin in form.clins %}
|
{% for clin in form.clins %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user