Fix CTAs for funding page
This commit is contained in:
@@ -7,7 +7,13 @@
|
||||
{% block portfolio_content %}
|
||||
|
||||
{% macro ViewLink(task_order, text="Edit") %}
|
||||
<a href="{{ url_for('task_orders.view_task_order', task_order_id=task_order.id) }}" class="usa-button">
|
||||
<a href="{{ url_for('task_orders.review_task_order', task_order_id=task_order.id) }}" class="usa-button">
|
||||
{{ text }}
|
||||
</a>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro TaskOrderAction(task_order, text="Edit", route="review_task_order", secondary=False) %}
|
||||
<a href="{{ url_for('task_orders.' + route, task_order_id=task_order.id) }}" class="usa-button {{ 'usa-button-secondary' if secondary else '' }}">
|
||||
{{ text }}
|
||||
</a>
|
||||
{% endmacro %}
|
||||
@@ -30,12 +36,14 @@
|
||||
|
||||
{% macro TaskOrderActions(task_order) %}
|
||||
<div class="task-order-card__buttons">
|
||||
{% if task_order.is_pending %}
|
||||
{{ ViewLink(task_order, text="Edit") }}
|
||||
{% elif task_order.is_active %}
|
||||
{{ ViewLink(task_order, text="Modify") }}
|
||||
{% if task_order.is_draft %}
|
||||
{{ TaskOrderAction(task_order, text="Edit") }}
|
||||
{% elif task_order.is_expired %}
|
||||
{{ TaskOrderAction(task_order, text="View") }}
|
||||
{% elif task_order.is_unsigned %}
|
||||
{{ TaskOrderAction(task_order, text="Sign", secondary=True) }}
|
||||
{{ TaskOrderAction(task_order, text="View") }}
|
||||
{% else %}
|
||||
{{ ViewLink(task_order, text="View") }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
Reference in New Issue
Block a user