From 2324edef28a0deb9677bd8299dfea0d79073273e Mon Sep 17 00:00:00 2001 From: Vildan Safin Date: Mon, 1 Jun 2020 15:54:46 +0500 Subject: [PATCH] :bomb: Fixed bug when currency isn't visible when apps aren't selected Signed-off-by: Vildan Safin --- saas_apps/static/src/css/calculator.css | 5 ++++- saas_apps/static/src/js/apps.js | 2 +- saas_apps/views/calculator.xml | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/saas_apps/static/src/css/calculator.css b/saas_apps/static/src/css/calculator.css index 0c9188d53..27bdbf7be 100644 --- a/saas_apps/static/src/css/calculator.css +++ b/saas_apps/static/src/css/calculator.css @@ -4,10 +4,13 @@ } #price{ - font-size: 32px; display: inline; } +.pricing-card-title{ + font-size: 32px; +} + .users-qty-change-buttons{ max-width: 30px; max-height: 30px; diff --git a/saas_apps/static/src/js/apps.js b/saas_apps/static/src/js/apps.js index 3941be326..2d02dd73e 100644 --- a/saas_apps/static/src/js/apps.js +++ b/saas_apps/static/src/js/apps.js @@ -416,7 +416,7 @@ odoo.define('saas_apps.model', function (require) { blink_anim([$('#apps-cost'), $('#users-cnt-cost'), $('#apps-qty'), $('#price-users'), $('#users-qty'), $('#price')]); var period = per_month ? "month" : "year"; - $('#price').text(String(price) + ' ' + currency_symbol + ' / '); + $('#price').text(String(price)); $('#box-period').text(String(period)); $('#users-qty').text($('#users').val()) users_price_period = per_month ? 12.5 : 10.0; diff --git a/saas_apps/views/calculator.xml b/saas_apps/views/calculator.xml index 7a844516b..dfb1f6145 100644 --- a/saas_apps/views/calculator.xml +++ b/saas_apps/views/calculator.xml @@ -116,7 +116,8 @@ -

10 /

+

10

+

/

year