Commit 06e765e6 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Grouping tests by their ending as the do not start anymore with "Test"

parent ab7baaef
Pipeline #13766 passed with stages
in 9 minutes and 4 seconds
......@@ -57,7 +57,7 @@ $(document).ready(function(){
<div class="view-content">
<ul class="nav nav-tabs wizard_step_nav">
{%for step in wizard.steps.all %}
{% if not step|startswith:"Test" %}
{% if not step|endswith:"DescriptionFormSet" %}
<li class="nav-item">
<a
class="nav-link {% if step == wizard.steps.current %}active{%else%}{% if forloop.counter0 <= wizard.steps.step0 %}
......@@ -74,7 +74,7 @@ $(document).ready(function(){
</li>
{%endif%}
{%endfor%}
{% if wizard.steps.current|startswith:"Test" %}
{% if wizard.steps.current|endswith:"DescriptionFormSet" %}
<li class="nav-item">
<a class="nav-link active"
href="{% url 'ippidb_step' step=step %}">Tests ({{ "-7"|add:wizard.steps.step1 }}/3)
......
......@@ -145,6 +145,10 @@ def bootstrap_core(object):
def startswith(text, starts):
return text.startswith(starts)
@register.filter('endswith')
def endswith(text, starts):
return text.endswith(starts)
@register.filter
def verbose_name(obj, field_name=None):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment