Commit 45373568 authored by Michael Iseard's avatar Michael Iseard
Browse files

Fix incorrect variable names

parent 70d5dce7
......@@ -81,14 +81,14 @@
{% endembed %}
{# ADDRESS TAB #}
{% if(address_enabled) %}
{% if(campaign.address_enabled) %}
{% embed '/public/modal/embeds/_tab.html.twig' %}
{% block title %}{{ __('Address', 'kudos-donations') }}{% endblock %}
{% block text %}{{ __('Please fill in you address', 'kudos-donations') ~ (address_required ? null : ' (' ~ __('optional', 'kudos-donations') ~ ')') }}{% endblock %}
{% block text %}{{ __('Please fill in you address', 'kudos-donations') ~ (campaign.address_required ? null : ' (' ~ __('optional', 'kudos-donations') ~ ')') }}{% endblock %}
{% block body %}
{% from "/public/modal/macros/form.html.twig" import text %}
{% set required = (address_required ? 'required' : null) %}
{% set required = (campaign.address_required ? 'required' : null) %}
{{ text('street', __('Street', 'kudos-donations'), 'text', required) }}
{{ text('postcode', __('Postcode', 'kudos-donations'), 'text', required) }}
......
Markdown is supported
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