-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #407 from JBLach/verify-the-compatibility-with-nat…
…ives-modules a few small fixes that have also been made in the classic theme in progress
- Loading branch information
Showing
24 changed files
with
193 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
modules/ps_emailalerts/views/templates/front/mailalerts-account-line.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{** | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*} | ||
{$componentName = 'mailalerts-account-line'} | ||
|
||
<div class="{$componentName} d-flex flex-column position-relative"> | ||
<a href="{$mailAlert.link}" class="text-center"> | ||
<img src="{$mailAlert.cover_url}" alt="" /> | ||
</a> | ||
<a class="mt-2" href="{$mailAlert.link}"> | ||
<div class="{$componentName}__product d-flex flex-column"> | ||
<span class="{$componentName}__product__name">{$mailAlert.name}</span> | ||
<span class="{$componentName}__product__attributes mt-1">{$mailAlert.attributes_small}</span> | ||
</div> | ||
</a> | ||
<a href="#" | ||
title="{l s='Remove mail alert' d='Modules.Emailalerts.Shop'}" | ||
class="js-remove-email-alert btn btn-link {$componentName}__remove" | ||
rel="js-id-emailalerts-{$mailAlert.id_product|intval}-{$mailAlert.id_product_attribute|intval}" | ||
data-url="{url entity='module' name='ps_emailalerts' controller='actions' params=['process' => 'remove']}"> | ||
<i class="material-icons">delete</i> | ||
</a> | ||
</div> |
21 changes: 21 additions & 0 deletions
21
modules/ps_emailalerts/views/templates/front/mailalerts-account.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{** | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*} | ||
{extends file='customer/page.tpl'} | ||
|
||
{block name='page_title'} | ||
{l s='My alerts' d='Modules.Emailalerts.Shop'} | ||
{/block} | ||
|
||
{block name='page_content'} | ||
{if $mailAlerts} | ||
<ul class="row"> | ||
{foreach from=$mailAlerts item=mailAlert} | ||
<li class="col-sm-6 col-md-3">{include 'module:ps_emailalerts/views/templates/front/mailalerts-account-line.tpl' mailAlert=$mailAlert}</li> | ||
{/foreach} | ||
</ul> | ||
{else} | ||
<div class="alert alert-info" role="alert" data-alert="info">{l s='No mail alerts yet.' d='Modules.Emailalerts.Shop'}</div> | ||
{/if} | ||
{/block} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
* International Registered Trademark & Property of PrestaShop SA | ||
*} | ||
|
||
<div class="card card-body text-center js-mailalert mb-3 bg-light" data-url="{url entity='module' name='ps_emailalerts' controller='actions' params=['process' => 'add']}"> | ||
<div class="card card-body text-center js-mailalert mb-3 mt-3 bg-light" data-url="{url entity='module' name='ps_emailalerts' controller='actions' params=['process' => 'add']}"> | ||
{if isset($email) AND $email} | ||
<p>{l s="Interested in this product? Drop us an email and we will let you know when it's available for order." d='Modules.Emailalerts.Shop'}</p> | ||
<input class="form-control" type="email" placeholder="{l s='[email protected]' d='Modules.Emailalerts.Shop'}"/> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "mailalerts-account"; |
29 changes: 29 additions & 0 deletions
29
src/scss/custom/components/mailalerts-account/_mailalerts-account.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$component-name: mailalerts-account-line; | ||
|
||
.#{$component-name} { | ||
padding: 1rem; | ||
border: var(--bs-border-width) solid var(--bs-border-color); | ||
border-radius: var(--bs-border-radius-xl); | ||
|
||
&__product { | ||
min-height: 54px; | ||
|
||
&__name { | ||
font-size: 0.875rem; | ||
font-weight: 600; | ||
color: var(--bs-body-color); | ||
} | ||
|
||
&__attributes { | ||
font-size: 0.75rem; | ||
color: var(--bs-body-color); | ||
} | ||
} | ||
|
||
&__remove { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
color: var(--bs-black); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "search-filters-modules"; |
26 changes: 26 additions & 0 deletions
26
src/scss/custom/components/search-filters-modules/_search-filters-modules.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
$component-name: search-filters-modules; | ||
|
||
.#{$component-name} { | ||
padding-bottom: 1rem; | ||
margin-bottom: 2rem; | ||
border-bottom: var(--category-tree-border-bottom); | ||
|
||
&-title { | ||
font-size: var(--category-tree-title-size); | ||
font-weight: 600; | ||
color: var(--category-tree-title-color); | ||
} | ||
|
||
&__list { | ||
margin-bottom: 0; | ||
} | ||
|
||
&__item { | ||
&__link { | ||
display: block; | ||
font-weight: 600; | ||
line-height: 2rem; | ||
color: var(--category-tree-title-color); | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/scss/custom/components/search-filters/_search-filters.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.