Files
atst/templates/task_orders/edit.html
dandds f5e208ccc5 Improve task orders edit template
Inherit portfolios base template and remove panel divs.
2019-06-06 13:57:07 -04:00

37 lines
1.4 KiB
HTML

{% extends "portfolios/base.html" %}
{% from 'components/save_button.html' import SaveButton %}
{% from 'components/text_input.html' import TextInput %}
{% from 'components/upload_input.html' import UploadInput %}
{% block portfolio_content %}
<div class="col task-order-form">
{% include "fragments/flash.html" %}
<base-form inline-template>
{% if task_order_id %}
{% set action = url_for("task_orders.update", portfolio_id=portfolio.id, task_order_id=task_order_id) %}
{% else %}
{% set action = url_for("task_orders.update", portfolio_id=portfolio.id) %}
{% endif %}
<form id="new-task-order" action='{{ action }}' method="POST" autocomplete="off" enctype="multipart/form-data">
{{ form.csrf_token }}
<!-- TODO: implement save bar with component -->
<span class="h3">Add Funding</span>
<a
href="{{ cancel_url }}"
class="action-group__action icon-link">
<span class="icon icon--x"></span>
{{ "common.cancel" | translate }}
</a>
{{ SaveButton(text=('common.save' | translate), element='input', form='new-task-order') }}
<p>
{{ "task_orders.new.form_help_text" | translate }}
</p>
<hr>
{{ TextInput(form.number, validation='taskOrderNumber') }}
{{ UploadInput(form.pdf) }}
</form>
</base-form>
</div>
{% endblock %}