Skip to content

Commit

Permalink
Fix/tst stepper template error (#709)
Browse files Browse the repository at this point in the history
* fix: Completely remove stepper block from proposal_form.html

Should have been named "sidebar", but it does nothing either way

* fix: Don't render stepper if not provided by view
  • Loading branch information
miggol authored Sep 27, 2024
1 parent 907d3ed commit 7c789e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 3 additions & 1 deletion main/templates/base/fetc_form_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
{# todo: responsive design #}
<div class="col-3">
{% block sidebar %}
{% include stepper %}
{% if stepper %}
{% include stepper %}
{% endif %}
{% endblock %}

</div>
Expand Down
8 changes: 0 additions & 8 deletions proposals/templates/proposals/proposal_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
{% trans "Algemene informatie over de aanvraag" %} - {{ block.super }}
{% endblock %}

{% block stepper %}
{% if stepper %}
{% include stepper %}
{% else %}
<!--No stepper on creation-->
{% endif %}
{% endblock %}

{% block html_head %}
{{ block.super }}
<script>
Expand Down

0 comments on commit 7c789e1

Please sign in to comment.