Rename view TO file and update sticky header

This commit is contained in:
leigh-mil
2019-12-23 11:26:35 -05:00
parent 8ece47627e
commit 2e088d1316
3 changed files with 8 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
{% from "components/sticky_cta.html" import StickyCTA %}
{% extends 'portfolios/base.html' %}
{% block portfolio_content %}
{% call StickyCTA(text="Task Order #{}".format(task_order.number)) %}
{% if user_can(permissions.EDIT_TASK_ORDER_DETAILS) and not task_order.is_expired %}
<a class="sticky-cta--link" href="{{ url_for('task_orders.edit', task_order_id=task_order.id) }}">Correct an Error</a>
{% endif %}
{% endcall %}
<div class="task-order">
{% include "task_orders/fragments/task_order_view.html" %}
</div>
{% endblock %}