Improve task orders edit template

Inherit portfolios base template and remove panel divs.
This commit is contained in:
dandds 2019-06-06 10:39:53 -04:00
parent b0f47bc3ff
commit f5e208ccc5

View File

@ -1,16 +1,12 @@
{% extends "base.html" %} {% extends "portfolios/base.html" %}
{% from 'components/save_button.html' import SaveButton %} {% from 'components/save_button.html' import SaveButton %}
{% from 'components/text_input.html' import TextInput %} {% from 'components/text_input.html' import TextInput %}
{% from 'components/upload_input.html' import UploadInput %} {% from 'components/upload_input.html' import UploadInput %}
{% block content %} {% block portfolio_content %}
<div class="col task-order-form"> <div class="col task-order-form">
{% include "fragments/flash.html" %} {% include "fragments/flash.html" %}
<div class="panel">
{% block portfolio_header %}
{% include "portfolios/header.html" %}
{% endblock %}
<base-form inline-template> <base-form inline-template>
{% 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) %}
@ -19,7 +15,6 @@
{% endif %} {% endif %}
<form id="new-task-order" action='{{ action }}' method="POST" autocomplete="off" enctype="multipart/form-data"> <form id="new-task-order" action='{{ action }}' method="POST" autocomplete="off" enctype="multipart/form-data">
{{ form.csrf_token }} {{ form.csrf_token }}
<div class="panel__content">
<!-- TODO: implement save bar with component --> <!-- TODO: implement save bar with component -->
<span class="h3">Add Funding</span> <span class="h3">Add Funding</span>
<a <a
@ -29,15 +24,13 @@
{{ "common.cancel" | translate }} {{ "common.cancel" | translate }}
</a> </a>
{{ SaveButton(text=('common.save' | translate), element='input', form='new-task-order') }} {{ SaveButton(text=('common.save' | translate), element='input', form='new-task-order') }}
</div> <p>
<div class="panel__content">
{{ "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') }}
{{ UploadInput(form.pdf) }} {{ UploadInput(form.pdf) }}
</div>
</form> </form>
</base-form> </base-form>
</div> </div>
</div>
{% endblock %} {% endblock %}