I am converting my tpl file to twig and running in this is issue.
Code: Select all
Fatal error: Uncaught Twig\Error\SyntaxError: Unknown "else" tag in "extension/payment/braintree_tlt.twig" at line 54.
Code: Select all
{% endif %}{% else %}
Code: Select all
<div class="form-group">
<label class="col-sm-3 control-label" for="input-use-default"><span data-toggle="tooltip" title="{{ help_use_default }}">{{ entry_use_default }} ({{ default_currency }})</span></label>
<div class="col-sm-9">
<select name="braintree_tlt_use_default" id="input-use-default" class="form-control">
{% if braintree_tlt_use_default %}
<option value="1" selected="selected">{{ text_yes }}</option>
<option value="0">{{ text_no }}</option>
{% endif %}{% else %}
<option value="1">{{ text_yes }}</option>
<option value="0" selected="selected">{{ text_no }}</option>
</select>
</div>
</div>