forked from CGM_Public/pretix_original
Improve wording for cart-renew dialog (#5174)
* Improve wording for cart-renew dialog * remove duplication of static texts for dialog Co-authored-by: luelista <weller@rami.io> * Fix typo Co-authored-by: Raphael Michel <michel@rami.io> * Apply suggestions from code review Co-authored-by: Richard Schreiber <schreiber@rami.io> --------- Co-authored-by: luelista <weller@rami.io> Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
committed by
GitHub
parent
fe0b8c9f97
commit
e8ff743b76
@@ -506,7 +506,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<button class="btn btn-default" type="submit" id="cart-extend-button" aria-describedby="cart-deadline">
|
<button class="btn btn-default" type="submit" id="cart-extend-button" aria-describedby="cart-deadline">
|
||||||
<i class="fa fa-refresh" aria-hidden="true"></i> {% trans "Extend reservation" %}
|
<i class="fa fa-refresh" aria-hidden="true"></i> {% trans "Renew reservation" %}
|
||||||
</button>
|
</button>
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -44,9 +44,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{% enddialog %}
|
{% enddialog %}
|
||||||
|
|
||||||
{% trans "Please let us know you're still there." as label_cart_extend_dialog %}
|
{% dialog "dialog-cart-extend" "" "" icon="clock-o" alert=true %}
|
||||||
{% dialog "dialog-cart-extend" label_cart_extend_dialog "" icon="clock-o" alert=true %}
|
<p class="modal-card-confirm"><button class="btn btn-lg btn-primary">{% trans "Renew reservation" %}</button></p>
|
||||||
<p class="modal-card-confirm"><button class="btn btn-lg btn-primary">{% trans "Continue" %}</button></p>
|
|
||||||
{% enddialog %}
|
{% enddialog %}
|
||||||
|
|
||||||
<dialog id="lightbox-dialog" class="modal-card" role="alertdialog" aria-labelledby="lightbox-label">
|
<dialog id="lightbox-dialog" class="modal-card" role="alertdialog" aria-labelledby="lightbox-label">
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ var cart = {
|
|||||||
} else {
|
} else {
|
||||||
if (diff_minutes !== cart._prev_diff_minutes) {
|
if (diff_minutes !== cart._prev_diff_minutes) {
|
||||||
if (diff_minutes == 0) {
|
if (diff_minutes == 0) {
|
||||||
$("#cart-deadline").text(gettext("Your cart is about to expire. If you want to continue, please click here:"))
|
$("#cart-deadline").text(gettext("Your cart is about to expire."))
|
||||||
} else {
|
} else {
|
||||||
$("#cart-deadline").text(
|
$("#cart-deadline").text(
|
||||||
cart._renewed_message + " " +
|
cart._renewed_message + " " +
|
||||||
@@ -82,9 +82,15 @@ var cart = {
|
|||||||
$("#cart-extend-button").toggle(can_extend_cart);
|
$("#cart-extend-button").toggle(can_extend_cart);
|
||||||
if (can_extend_cart && diff_total_seconds < 45) {
|
if (can_extend_cart && diff_total_seconds < 45) {
|
||||||
if (!cart._expiry_notified) cart.show_expiry_notification();
|
if (!cart._expiry_notified) cart.show_expiry_notification();
|
||||||
|
$("#dialog-cart-extend-title").text(already_expired
|
||||||
|
? gettext("Your cart has expired.")
|
||||||
|
: gettext("Your cart is about to expire."));
|
||||||
$("#dialog-cart-extend-description").text(already_expired
|
$("#dialog-cart-extend-description").text(already_expired
|
||||||
? gettext("Your cart has expired. If you want to continue, please click here:")
|
? gettext("The items in your cart are no longer reserved for you. You can still complete your order as long as they're available.")
|
||||||
: gettext("Your cart is about to expire. If you want to continue, please click here:"));
|
: gettext("Do you want to renew the reservation period?"));
|
||||||
|
$("#dialog-cart-extend .modal-card-confirm button").text(already_expired
|
||||||
|
? gettext("Continue")
|
||||||
|
: gettext("Renew reservation"));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user