Add rudimentary task order listing and viewing pages

This commit is contained in:
Patrick Smith
2019-01-09 10:35:57 -05:00
parent 793622b791
commit 8017b7f03f
4 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
{% from "components/empty_state.html" import EmptyState %}
{% extends "workspaces/base.html" %}
{% block workspace_content %}
{% if not workspace.task_orders %}
{{ EmptyState(
'This workspace doesnt have any task orders yet.',
action_label='Add a New Task Order',
action_href=url_for('task_orders.new', screen=1, workspace_id=workspace.id),
icon='cloud',
) }}
{% else %}
<ul>
{% for task_order in workspace.task_orders %}
<li class='block-list__item'>
<a href='{{ url_for("workspaces.view_task_order", workspace_id=workspace.id, task_order_id=task_order.id)}}'>
<span>{{ task_order.start_date }} - {{ task_order.end_date }}</span>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% extends "workspaces/base.html" %}
{% block workspace_content %}
You're looking at TO {{ task_order.id }}
{% endblock %}