Disable TO screens until screen 1 is filled out

This commit is contained in:
Montana 2019-01-21 15:52:01 -05:00
parent 54333db00f
commit 8f87981b8f
2 changed files with 17 additions and 2 deletions

View File

@ -50,6 +50,12 @@
a.active {
color: $color-blue;
cursor: default;
}
a.disabled{
color: $color-gray-light;
cursor: default;
}

View File

@ -10,8 +10,17 @@
{% endif %}
<li class="progress-menu__item progress-menu__item--{{ step_indicator }}">
<a href="{{ url_for('task_orders.new', screen=loop.index, task_order_id=task_order_id) }}"
{% if g.matchesPath(url_for('task_orders.new', screen=loop.index)) %}class="active"{% endif %}
<a
{% set class='' %}
{% if task_order_id %}
href="{{ url_for('task_orders.new', screen=loop.index, task_order_id=task_order_id) }}"
{% else %}
{% set class="disabled"%}
{% endif %}
{% if g.matchesPath(url_for('task_orders.new', screen=loop.index)) %}
{% set class="active" %}
{% endif %}
class={{class}}
>
{{ s['title'] }}
</a>