{% extends 'dashboard/offers/step_form.html' %}
{% load i18n %}

{% block summary %}
    {% include 'dashboard/offers/summary.html' %}
{% endblock %}

{% block progress %}
    {% include 'dashboard/offers/progress.html' with step=3 %}
{% endblock %}

{% block form_fields %}
	<span class="help-block">{{ form.non_field_errors }}</span>

	<h4>{% trans "Build a new condition" %}</h4>
	{% include "partials/form_field.html" with field=form.range %}
	<p>{% trans "Ranges can be created and edited from within the " %}
		<a href="{% url dashboard:range-list %}">{% trans "range dashboard" %}</a>.</p>
	{% include "partials/form_field.html" with field=form.type %}
	{% include "partials/form_field.html" with field=form.value %}

	{% if form.fields.custom_condition.choices %}
		<h4>{% trans "...or choose a pre-defined one" %}</h4>
		{% include "partials/form_field.html" with field=form.custom_condition %}
	{% endif %}
{% endblock %}

{% block submittext %}{% trans "Continue to step 4" %}{% endblock %}

{% extends 'dashboard/offers/step_form.html' %}
{% load i18n %}

{% block summary %}
    {% include 'dashboard/offers/summary.html' %}
{% endblock %}

{% block progress %}
    {% include 'dashboard/offers/progress.html' with step=3 %}
{% endblock %}

{% block form_fields %}
	<span class="help-block">{{ form.non_field_errors }}</span>

	{% if form.fields.custom_condition.choices %}
	<h4>{% trans "Build a new condition" %}</h4>
    {% endif %}

	{% include "partials/form_field.html" with field=form.range %}
	<p>{% trans "Ranges can be created and edited from within the " %}
		<a href="{% url dashboard:range-list %}">{% trans "range dashboard" %}</a>.</p>
	{% include "partials/form_field.html" with field=form.type %}
	{% include "partials/form_field.html" with field=form.value %}

	{% if form.fields.custom_condition.choices %}
		<h4>{% trans "...or choose a pre-defined one" %}</h4>
		{% include "partials/form_field.html" with field=form.custom_condition %}
	{% endif %}
{% endblock %}

{% block submittext %}{% trans "Continue to step 4" %}{% endblock %}

Fix a conditional logic bug in condition form template
Fix a conditional logic bug in condition form template

Was showing a heading unnecessarily.
