From 79e621666996aee5d230869d449f7993410d9440 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 9 Aug 2018 15:40:09 +0200 Subject: [PATCH] Widget: Clear CTA in active-cart message --- src/pretix/static/pretixpresale/js/widget/widget.js | 12 ++++++++---- src/pretix/static/pretixpresale/scss/widget.scss | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index fdb39ab04a..c69e8d7761 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -21,8 +21,8 @@ var strings = { 'cart_error': django.pgettext('widget', 'The cart could not be created. Please try again later'), 'waiting_list': django.pgettext('widget', 'Waiting list'), 'cart_exists': django.pgettext('widget', 'You currently have an active cart for this event. If you select more' + - ' products, they will be added to your existing cart. Click on this message to continue checkout with your' + - ' cart.'), + ' products, they will be added to your existing cart.'), + 'resume_checkout': django.pgettext('widget', 'Resume checkout'), 'poweredby': django.pgettext('widget', 'event' + ' ticketing powered by pretix'), 'redeem_voucher': django.pgettext('widget', 'Redeem a voucher'), @@ -555,13 +555,17 @@ Vue.component('pretix-widget', { + '' + '' + '
{{ $root.error }}
' - + '
' + + '' + strings['cart_exists'] + + '
' + '
' + '' + '
' - + '' + + '' + '
' + '' + '
' diff --git a/src/pretix/static/pretixpresale/scss/widget.scss b/src/pretix/static/pretixpresale/scss/widget.scss index 9587595888..8e1c2865fd 100644 --- a/src/pretix/static/pretixpresale/scss/widget.scss +++ b/src/pretix/static/pretixpresale/scss/widget.scss @@ -93,6 +93,10 @@ min-height: 208px; border-radius: $input-border-radius; + .pretix-widget-resume-button { + float: right; + margin-left: 10px; + } .pretix-widget-clickable { cursor: pointer; @@ -100,11 +104,11 @@ .pretix-widget-info-message { padding: 10px; - text-align: center; + text-align: left; margin: 10px 0; - background-color: $alert-info-bg; - border-color: $alert-info-border; - color: $alert-info-text; + background-color: white; + border: 2px solid $brand-info; + color: $brand-info; border-radius: $alert-border-radius; }