-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎁 Add favorites of wishlists which can be managed by the user
- Loading branch information
Showing
49 changed files
with
11,309 additions
and
10,594 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#set("title") {#L10N("add-favorite"){Add a Favorite}} | ||
#// | ||
#set("content") { | ||
<h2>#L10N("want-to"){Do you want ...}</h2> | ||
<h3>#L10N("to-add-favorite","#(page.list.name)"){... to add the wish list named <strong>#(page.list.name)</strong> to your favorite wish lists?}</h3> | ||
<form method="POST" action="/user/#(page.userID)/favorites#if(request.parameter.p){?p=#(request.parameter.p)}" accept-charset="UTF-8" class="mt-4"> | ||
<input type="hidden" name="listID" value="#(page.list.id)"> | ||
<div class="form-group form-row"> | ||
<button type="submit" class="btn btn-primary">#L10N("confirm"){Confirm}</button> | ||
<a class="nav-link btn btn-link ml-3" href="#if(request.parameter.p){#(request.parameter.p)}else{/}">#L10N("cancel"){Cancel}</a> | ||
</div> | ||
</form> | ||
} | ||
#// | ||
#embed("Wishlist") |
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,16 @@ | ||
#set("title") {#L10N("remove-favorite"){Remove a Favorite}} | ||
#// | ||
#set("content") { | ||
<h2>#L10N("sure-to"){Are you sure ...}</h2> | ||
<h3>#L10N("to-remove-favorite","#(page.list.name)"){... you want to remove the wish list named <strong>#(page.list.name)</strong> from your favorite wish lists?}</h3> | ||
<form method="POST" action="/user/#(page.userID)/favorites/delete#if(request.parameter.p){?p=#(request.parameter.p)}" accept-charset="UTF-8" class="mt-4"> | ||
<input type="hidden" name="__method" value="DELETE"> | ||
<input type="hidden" name="listID" value="#(page.list.id)"> | ||
<div class="form-group form-row"> | ||
<button type="submit" class="btn btn-primary">#L10N("confirm"){Confirm}</button> | ||
<a class="nav-link btn btn-link ml-3" href="#if(request.parameter.p){#(request.parameter.p)}else{/}">#L10N("cancel"){Cancel}</a> | ||
</div> | ||
</form> | ||
} | ||
#// | ||
#embed("Wishlist") |
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,4 @@ | ||
<section> | ||
<h3>#L10N("list-your-favorites"){Your Favorites} <small class="text-muted">(#count(page.favorites)/#(page.maximumNumberOfFavorites))</small></h3> | ||
#embed("User/Favorites-Table") | ||
</section> |
Oops, something went wrong.