Rename commit to fulfill

This commit is contained in:
grandeljay 2022-03-22 17:58:18 +01:00
parent cfccda8f55
commit 46e42da4d2
5 changed files with 18 additions and 18 deletions

View file

@ -33,25 +33,25 @@ $(function() {
}
/**
* Commit to Wish
* Fulfill wish
*/
$(document).on('click', '.ui.button.commit', function() {
$(document).on('click', '.ui.button.fulfill', function() {
var button = $(this);
var card = button.closest('.ui.card');
var column = card.closest('.column');
$('body')
.modal({
title : text.modal_wish_commit_title,
content : text.modal_wish_commit,
title : text.modal_wish_fulfill_title,
content : text.modal_wish_fulfill,
class : 'tiny',
actions : [
{
text : text.modal_wish_commit_approve,
text : text.modal_wish_fulfill_approve,
class: 'approve primary'
},
{
text : text.modal_wish_commit_deny,
text : text.modal_wish_fulfill_deny,
class: ''
}
],

View file

@ -245,10 +245,10 @@ class Page
modal_wishlist_delete_approve : '<?= __('Yes, delete') ?>',
modal_wishlist_delete_deny : '<?= __('No, keep') ?>',
modal_wish_commit_title : '<?= __('Really commit?') ?>',
modal_wish_commit : '<?= __('Would you really like to commit to this purchase? It will no longer appear in the wishlist for others anymore.') ?>',
modal_wish_commit_approve : '<?= __('Yes, commit') ?>',
modal_wish_commit_deny : '<?= __('Cancel') ?>',
modal_wish_fulfill_title : '<?= __('Really fulfill wish?') ?>',
modal_wish_fulfill : '<?= __('Would you really like to fulfill this wish? It will no longer appear in the wishlist for others anymore.') ?>',
modal_wish_fulfill_approve : '<?= __('Yes, fulfill wish') ?>',
modal_wish_fulfill_deny : '<?= __('Cancel') ?>',
modal_wish_delete_title : '<?= __('Really delete?') ?>',
modal_wish_delete : '<?= __('Would you really like to delete to this wish? It will be gone forever.') ?>',
modal_wish_delete_approve : '<?= __('Yes, delete') ?>',

View file

@ -157,9 +157,9 @@ class Wish
<div class="extra content buttons">
<?php if (!$userIsCurrent) { ?>
<a class="ui small primary labeled icon button commit">
<a class="ui small primary labeled icon button fulfill">
<i class="shopping cart icon"></i>
Commit
<?= __('Fulfill wish') ?>
</a>
<?php } ?>
@ -168,24 +168,24 @@ class Wish
href="<?= $this->url ?>" target="_blank"
>
<i class="external icon"></i>
Visit
<?= __('Visit') ?>
</a>
<?php } ?>
<?php if ($userIsCurrent) { ?>
<div class="ui small labeled icon top left pointing dropdown button options">
<i class="cog icon"></i>
<span class="text">Options</span>
<span class="text"><?= __('Options') ?></span>
<div class="menu">
<a class="item" href="/?page=wish&id=<?= $this->id ?>">
<i class="pen icon"></i>
Edit
<?= __('Edit') ?>
</a>
<div class="item wish-delete">
<i class="trash icon"></i>
Delete
<?= __('Delete') ?>
</div>
</div>

View file

@ -43,7 +43,7 @@ $page->navigation();
<div class="ui segment">
<h2 class="ui header"><?= __('Use case') ?></h2>
<p><?= __('Your birthday is coming up and you just created a wishlist with all the cool stuff you want. Your friends and family want to make sure you get something you are happy with so you send them your wishlist link and if anybody decides to gift something to you, they simply commit to the wish and it will disappear for everybody else.') ?></p>
<p><?= __('Your birthday is coming up and you just created a wishlist with all the cool stuff you want. Your friends and family want to make sure you get something you are happy with so you send them your wishlist link and if anybody decides to fulfill one of your wishes, it will disappear for everybody else.') ?></p>
</div>
<div class="ui segment">

View file

@ -53,7 +53,7 @@ $page->navigation();
<h2 class="ui header"><?= __('What to do?') ?></h2>
<p><?= sprintf(
__('If you found something you would like to buy, click the %s button and it will become unavailable for others.'),
'<span class="ui primary tiny horizontal label"><i class="shopping cart icon"></i> ' . __('Commit') . '</span>'
'<span class="ui primary tiny horizontal label"><i class="shopping cart icon"></i> ' . __('Fulfill wish') . '</span>'
) ?></p>
</div>
</div>