-
Notifications
You must be signed in to change notification settings - Fork 79
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 #424 from PrestaShop/develop
Merge develop on master
- Loading branch information
Showing
133 changed files
with
2,276 additions
and
849 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
62 changes: 62 additions & 0 deletions
62
modules/blockwishlist/views/templates/components/modals/add-to-wishlist.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,62 @@ | ||
{** | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*} | ||
|
||
<div | ||
class="wishlist-add-to" | ||
data-url="{$url}" | ||
> | ||
<div | ||
class="wishlist-modal modal fade" | ||
{literal} | ||
:class="{show: !isHidden}" | ||
{/literal} | ||
tabindex="-1" | ||
role="dialog" | ||
aria-modal="true" | ||
> | ||
<div class="modal-dialog modal-dialog-centered" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header px-3"> | ||
<h5 class="modal-title">{l s='Add to wishlist' d='Modules.Blockwishlist.Shop'}</h5> | ||
<button | ||
type="button" | ||
class="btn-close" | ||
@click="toggleModal" | ||
data-dismiss="modal" | ||
aria-label="{l s='Close' d='Modules.Blockwishlist.Shop'}" | ||
> | ||
</button> | ||
</div> | ||
|
||
<div class="modal-body"> | ||
<choose-list | ||
@hide="toggleModal" | ||
:product-id="productId" | ||
:product-attribute-id="productAttributeId" | ||
:quantity="quantity" | ||
url="{$url}" | ||
add-url="{$addUrl}" | ||
empty-text="{l s='No list found.' d='Modules.Blockwishlist.Shop'}" | ||
> | ||
</choose-list> | ||
</div> | ||
|
||
<div class="modal-footer"> | ||
<a @click="openNewWishlistModal" class="wishlist-add-to-new text-primary"> | ||
<i class="material-icons text-primary">add_circle_outline</i> {$newWishlistCTA} | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div | ||
class="modal-backdrop fade" | ||
{literal} | ||
:class="{in: !isHidden}" | ||
{/literal} | ||
> | ||
</div> | ||
</div> |
79 changes: 79 additions & 0 deletions
79
modules/blockwishlist/views/templates/components/modals/create.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,79 @@ | ||
{** | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*} | ||
|
||
<div | ||
class="wishlist-create" | ||
data-url="{$url}" | ||
data-title="{l s='Create wishlist' d='Modules.Blockwishlist.Shop'}" | ||
data-label="{l s='Wishlist name' d='Modules.Blockwishlist.Shop'}" | ||
data-placeholder="{l s='Add name' d='Modules.Blockwishlist.Shop'}" | ||
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}" | ||
data-create-text="{l s='Create wishlist' d='Modules.Blockwishlist.Shop'}" | ||
data-length-text="{l s='List title is too short' d='Modules.Blockwishlist.Shop'}" | ||
> | ||
<div | ||
class="wishlist-modal modal fade" | ||
{literal} | ||
:class="{show: !isHidden}" | ||
{/literal} | ||
tabindex="-1" | ||
role="dialog" | ||
aria-modal="true" | ||
> | ||
<div class="modal-dialog modal-dialog-centered" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header px-3"> | ||
<h5 class="modal-title">((title))</h5> | ||
<button | ||
type="button" | ||
class="btn-close" | ||
@click="toggleModal" | ||
data-dismiss="modal" | ||
aria-label="Close" | ||
> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="form-group form-group-lg"> | ||
<label class="form-label" for="input2">((label))</label> | ||
<input | ||
type="text" | ||
class="form-control form-control-lg" | ||
v-model="value" | ||
id="input2" | ||
:placeholder="placeholder" | ||
> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button | ||
type="button" | ||
class="modal-cancel btn btn-secondary" | ||
data-dismiss="modal" | ||
@click="toggleModal" | ||
> | ||
((cancelText)) | ||
</button> | ||
|
||
<button | ||
type="button" | ||
class="btn btn-primary" | ||
@click="createWishlist" | ||
> | ||
((createText)) | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div | ||
class="modal-backdrop fade" | ||
{literal} | ||
:class="{in: !isHidden}" | ||
{/literal} | ||
> | ||
</div> | ||
</div> |
75 changes: 75 additions & 0 deletions
75
modules/blockwishlist/views/templates/components/modals/delete.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,75 @@ | ||
{** | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*} | ||
|
||
<div | ||
class="wishlist-delete" | ||
{if isset($listUrl)} | ||
data-delete-list-url="{$listUrl}" | ||
{/if} | ||
{if isset($deleteProductUrl)} | ||
data-delete-product-url="{$deleteProductUrl}" | ||
{/if} | ||
data-title="{l s='Remove product from wishlist' d='Modules.Blockwishlist.Shop'}" | ||
data-title-list="{l s='Delete wishlist' d='Modules.Blockwishlist.Shop'}" | ||
data-placeholder='{l s='The product will be removed from "%nameofthewishlist%".' d='Modules.Blockwishlist.Shop'}' | ||
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}" | ||
data-delete-text="{l s='Remove' d='Modules.Blockwishlist.Shop'}" | ||
data-delete-text-list="{l s='Delete' d='Modules.Blockwishlist.Shop'}" | ||
> | ||
<div | ||
class="wishlist-modal modal fade" | ||
{literal} | ||
:class="{show: !isHidden}" | ||
{/literal} | ||
tabindex="-1" | ||
role="dialog" | ||
aria-modal="true" | ||
> | ||
<div class="modal-dialog modal-dialog-centered" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header px-3"> | ||
<h5 class="modal-title">((modalTitle))</h5> | ||
<button | ||
type="button" | ||
class="btn-close" | ||
@click="toggleModal" | ||
data-dismiss="modal" | ||
aria-label="Close" | ||
> | ||
</button> | ||
</div> | ||
<div class="modal-body" v-if="productId"> | ||
<p class="modal-text">((confirmMessage))</p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button | ||
type="button" | ||
class="modal-cancel btn btn-secondary" | ||
data-dismiss="modal" | ||
@click="toggleModal" | ||
> | ||
((cancelText)) | ||
</button> | ||
|
||
<button | ||
type="button" | ||
class="btn btn-primary" | ||
@click="deleteWishlist" | ||
> | ||
((modalDeleteText)) | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div | ||
class="modal-backdrop fade" | ||
{literal} | ||
:class="{in: !isHidden}" | ||
{/literal} | ||
> | ||
</div> | ||
</div> |
64 changes: 64 additions & 0 deletions
64
modules/blockwishlist/views/templates/components/modals/login.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,64 @@ | ||
{** | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*} | ||
|
||
<div | ||
class="wishlist-login" | ||
data-login-text="{l s='Sign in' d='Modules.Blockwishlist.Shop'}" | ||
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}" | ||
> | ||
<div | ||
class="wishlist-modal modal fade" | ||
{literal} | ||
:class="{show: !isHidden}" | ||
{/literal} | ||
tabindex="-1" | ||
role="dialog" | ||
aria-modal="true" | ||
> | ||
<div class="modal-dialog modal-dialog-centered" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header px-3"> | ||
<h5 class="modal-title">{l s='Sign in' d='Modules.Blockwishlist.Shop'}</h5> | ||
<button | ||
type="button" | ||
class="btn-close" | ||
@click="toggleModal" | ||
data-dismiss="modal" | ||
aria-label="Close" | ||
> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<p class="modal-text">{l s='You need to be logged in to save products in your wishlist.' d='Modules.Blockwishlist.Shop'}</p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button | ||
type="button" | ||
class="modal-cancel btn btn-secondary" | ||
data-dismiss="modal" | ||
@click="toggleModal" | ||
> | ||
((cancelText)) | ||
</button> | ||
|
||
<a | ||
class="btn btn-primary" | ||
:href="prestashop.urls.pages.authentication" | ||
> | ||
((loginText)) | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div | ||
class="modal-backdrop fade" | ||
{literal} | ||
:class="{in: !isHidden}" | ||
{/literal} | ||
> | ||
</div> | ||
</div> |
Oops, something went wrong.