Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Commit

Permalink
Adjust HTML structure to pass Behat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbager committed Sep 25, 2017
1 parent 597caa7 commit 1187a7f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

<div class="item">
{{ form_widget(form) }}
<a class="header">{{ form_label(form) }}</a>
{% if method.description is not null %}
{{ method.description }}
{% endif %}
<div class="content">
<a class="header">{{ form_label(form) }}</a>
{% if method.description is not null %}
{{ method.description }}
{% endif %}
</div>
<div class="fee">
{{ money.convertAndFormat(fee) }}
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{% if currencies|length > 1 %}
<div id="sylius-currency-selector">
{{ active }}

<span class="sylius-active-currency">{{ active }}</span>
{% for code in currencies %}
{% if code is not same as(active) %}
<a href="{{ path('sylius_shop_switch_currency', {'code': code}) }}">
<a href="{{ path('sylius_shop_switch_currency', {'code': code}) }}" class="sylius-available-currency">
{{ code }}
</a>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion app/Resources/SyliusShopBundle/views/Ui/_flashes.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% set result = 'info' %}
{% set icon = 'info' %}
{% endif %}
<div class="{{ result|default('positive') }} sylius-flash-message">
<div class="message {{ result|default('positive') }} sylius-flash-message">
<i class="close icon"></i>
<i class="{{ icon|default('checkmark') }} icon"></i>
<div class="content">
Expand Down

0 comments on commit 1187a7f

Please sign in to comment.