Disable TO screens until screen 1 is filled out
This commit is contained in:
parent
54333db00f
commit
8f87981b8f
@ -50,6 +50,12 @@
|
||||
|
||||
a.active {
|
||||
color: $color-blue;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
a.disabled{
|
||||
color: $color-gray-light;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user