mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-05 17:18:04 +02:00
Fixed #68
This commit is contained in:
parent
6ac35cbcb7
commit
7c2e6d4388
5 changed files with 54 additions and 12 deletions
|
@ -79,7 +79,7 @@
|
|||
|
||||
<!-- Placeholder for displaying domain price -->
|
||||
<div class="mb-3" id="domainPriceDisplay" style="display:none;">
|
||||
<strong>{{ __('Estimated Price') }}: </strong><span id="domainPrice">$0.00</span>
|
||||
<strong>{{ __('Estimated Price') }}: </strong><span id="domainPrice">{{ currency }} 0.00</span>
|
||||
</div>
|
||||
|
||||
<!-- Fields for 4 contacts with roles -->
|
||||
|
@ -443,9 +443,9 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||
function formatPrice(price) {
|
||||
switch(window.currencyPosition) {
|
||||
case 'before':
|
||||
return `${window.currencySymbol}${price.toFixed(2)}`;
|
||||
return `{{ currency }} ${price.toFixed(2)}`;
|
||||
case 'after':
|
||||
return `${price.toFixed(2)} ${window.currencySymbol}`;
|
||||
return `${price.toFixed(2)} {{ currency }}`;
|
||||
default:
|
||||
return price.toFixed(2);
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
<!-- Placeholder for displaying domain price -->
|
||||
<div class="mb-3" id="domainPriceDisplay" style="display:none;">
|
||||
<strong>{{ __('Estimated Price') }}: </strong><span id="domainPrice">$0.00</span>
|
||||
<strong>{{ __('Estimated Price') }}: </strong><span id="domainPrice">{{ currency }} 0.00</span>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="mb-3">
|
||||
|
@ -158,9 +158,9 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||
function formatPrice(price) {
|
||||
switch(window.currencyPosition) {
|
||||
case 'before':
|
||||
return `${window.currencySymbol}${price.toFixed(2)}`;
|
||||
return `{{ currency }} ${price.toFixed(2)}`;
|
||||
case 'after':
|
||||
return `${price.toFixed(2)} ${window.currencySymbol}`;
|
||||
return `${price.toFixed(2)} {{ currency }}`;
|
||||
default:
|
||||
return price.toFixed(2);
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
{% if registrars and not registrar %}
|
||||
<div class="form-group mb-3">
|
||||
<label for="registrarDropdown" class="form-label required">{{ __('Gaining Registrar') }}:</label>
|
||||
<label for="registrarDropdown" class="form-label required">{{ __('Gaining Registrar') }}</label>
|
||||
<select id="registrarDropdown" name="registrar" class="form-control">
|
||||
{% for registrar in registrars %}
|
||||
<option value="{{ registrar.id }}">{{ registrar.name }}</option>
|
||||
|
@ -60,7 +60,7 @@
|
|||
|
||||
<!-- Placeholder for displaying domain price -->
|
||||
<div class="mb-3" id="domainPriceDisplay" style="display:none;">
|
||||
<strong>{{ __('Estimated Price') }}: </strong><span id="domainPrice">$0.00</span>
|
||||
<strong>{{ __('Estimated Price') }}: </strong><span id="domainPrice">{{ currency }} 0.00</span>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
|
@ -168,9 +168,9 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||
function formatPrice(price) {
|
||||
switch(window.currencyPosition) {
|
||||
case 'before':
|
||||
return `${window.currencySymbol}${price.toFixed(2)}`;
|
||||
return `{{ currency }} ${price.toFixed(2)}`;
|
||||
case 'after':
|
||||
return `${price.toFixed(2)} ${window.currencySymbol}`;
|
||||
return `${price.toFixed(2)} {{ currency }}`;
|
||||
default:
|
||||
return price.toFixed(2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue