Skip to content

Commit

Permalink
💣 Fixed bug when currency isn't visible when apps aren't selected
Browse files Browse the repository at this point in the history
Signed-off-by: Vildan Safin <safin@it-projects.info>
  • Loading branch information
Enigma228322 committed Jun 1, 2020
1 parent a5b9676 commit 2324ede
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion saas_apps/static/src/css/calculator.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion saas_apps/static/src/js/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion saas_apps/views/calculator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@
</div>
</li>
</ul>
<h4 id="price" class="card-title pricing-card-title">10 <t t-esc="apps[0].currency_id.symbol"/> / </h4>
<h4 id="price" class="card-title pricing-card-title">10</h4>
<h4 class="card-title pricing-card-title" style="display: inline;"> <t t-esc="apps[0].currency_id.symbol"/> / </h4>
<small id="box-period" class="text-muted period fnt-24">year</small>
<button id="get-started" type="button" class="btn btn-lg btn-block btn-primary fnt-larger">Try trial</button>
<t t-if="show_buy_now_button">
Expand Down

0 comments on commit 2324ede

Please sign in to comment.