Skip to content

Commit

Permalink
OP-291: Make wishlist page more consistent with cart
Browse files Browse the repository at this point in the history
  • Loading branch information
hmfilar committed Jul 29, 2024
1 parent aafb2e1 commit 9beaad4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/Form/Type/WishlistCollectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
])
->add('addAll', SubmitType::class, [
'label' => 'bitbag_sylius_wishlist_plugin.ui.add_items_to_cart',
'attr' => [
'class' => 'ui primary button',
],
])
->addEventListener(
FormEvents::SUBMIT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,11 @@
align-items: center;
justify-content: center;
}

> * {
span {
color: $lightgray;
}
}
}
}
1 change: 1 addition & 0 deletions src/Resources/assets/shop/scss/utilities/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ $breakpoint-md: 768px !default;
$breakpoint-sm: 576px !default;

$gray-200: #e9ecef !default;
$lightgray: #999 !default;
$primary: #2185D0 !default;

$font-size-sm: .85em !default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<button
id="{{ form.addAll.vars.id }}"
name="{{ form.addAll.vars.full_name }}"
class="{{ form.addAll.vars.attr.class }}"
class="ui primary button right floated"
data-bb-toggle="wishlist-add-all"
{{ sylius_test_html_attribute('wishlist-add-all-to-cart') }}
formaction="{{ path('bitbag_sylius_wishlist_plugin_shop_locale_wishlist_add_products', { wishlistId: wishlist.id }) }}"
Expand Down
10 changes: 5 additions & 5 deletions src/Resources/views/WishlistDetails/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@

{{ form_start(form, { attr: { class: 'bb-wishlist ui form', id: "wishlist_form" } }) }}

<div class="ui segment" id="wishlist">
<div class="ui stackable" id="wishlist">

<div class="bb-wishlist-item">
<div class="bb-wishlist-item-select">
<input type="checkbox" id="toggle-checkboxes" class="bb-wishlist-item-select-checkbox">
</div>
<div class="bb-wishlist-item-image">
{{ 'sylius.ui.product'|trans }}
<span>{{ 'sylius.ui.item'|trans }}</span>
</div>
<div class="bb-wishlist-item-price">
{{ 'sylius.ui.price'|trans }}
<span>{{ 'sylius.ui.unit_price'|trans }}</span>
</div>
<div class="bb-wishlist-item-quantity">
{{ 'sylius.ui.quantity'|trans }}
<span>{{ 'sylius.ui.qty'|trans }}</span>
</div>
<div class="bb-wishlist-item-actions">
{{ 'sylius.ui.actions'|trans }}
<span>{{ 'sylius.ui.actions'|trans }}</span>
</div>
</div>

Expand Down

0 comments on commit 9beaad4

Please sign in to comment.