Browse Source

Update buttons. Make next button disabled if errors on page

pull/163/head
ariannedee 5 years ago
parent
commit
d4856146c8
3 changed files with 7 additions and 2 deletions
  1. +1
    -1
      edivorce/apps/core/static/css/main.css
  2. +4
    -0
      edivorce/apps/core/static/css/main.scss
  3. +2
    -1
      edivorce/apps/core/templates/question/12_review.html

+ 1
- 1
edivorce/apps/core/static/css/main.css
File diff suppressed because it is too large
View File


+ 4
- 0
edivorce/apps/core/static/css/main.scss View File

@ -678,6 +678,10 @@ i.fa.fa-question-circle {
transition: all 0.1s ease-in-out; transition: all 0.1s ease-in-out;
} }
} }
&[disabled] {
pointer-events: none;
cursor: default;
}
} }
} }


+ 2
- 1
edivorce/apps/core/templates/question/12_review.html View File

@ -214,7 +214,7 @@
</div> </div>
</div> </div>
</div> </div>
{% if derived.any_errors == True %}
{% if derived.any_errors %}
<div class="review-warning"> <div class="review-warning">
<div><span class="exclamation"><i class="fa fa-fw fa-exclamation-circle"></i></span></div> <div><span class="exclamation"><i class="fa fa-fw fa-exclamation-circle"></i></span></div>
<div> <div>
@ -251,6 +251,7 @@
{% block formBack %}{% prev_step step='review' %}{% endblock %} {% block formBack %}{% prev_step step='review' %}{% endblock %}
{% block formNext %}{% url 'dashboard_nav' 'print_form' %}{% endblock %} {% block formNext %}{% url 'dashboard_nav' 'print_form' %}{% endblock %}
{% block nextButtonAttribute %}{% if derived.any_errors %}disabled{% endif %}{% endblock %}
{% block sidebarNav %} {% block sidebarNav %}
<!-- no sidebar --> <!-- no sidebar -->


Loading…
Cancel
Save