Add SiteSettings model with currency_symbol field and replace hardcoded currency symbols in templates
This commit is contained in:
@@ -35,11 +35,11 @@
|
||||
<div class="mb-3">
|
||||
<strong class="text-primary h4">
|
||||
{% if vacancy.salary_min and vacancy.salary_max %}
|
||||
${{ vacancy.salary_min|floatformat:0 }} - ${{ vacancy.salary_max|floatformat:0 }}
|
||||
{{ currency_symbol }}{{ vacancy.salary_min|floatformat:0 }} - {{ currency_symbol }}{{ vacancy.salary_max|floatformat:0 }}
|
||||
{% elif vacancy.salary_min %}
|
||||
От ${{ vacancy.salary_min|floatformat:0 }}
|
||||
От {{ currency_symbol }}{{ vacancy.salary_min|floatformat:0 }}
|
||||
{% else %}
|
||||
До ${{ vacancy.salary_max|floatformat:0 }}
|
||||
До {{ currency_symbol }}{{ vacancy.salary_max|floatformat:0 }}
|
||||
{% endif %}
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
@@ -46,11 +46,11 @@
|
||||
<div class="mb-3">
|
||||
<strong class="text-primary">
|
||||
{% if vacancy.salary_min and vacancy.salary_max %}
|
||||
${{ vacancy.salary_min|floatformat:0 }} - ${{ vacancy.salary_max|floatformat:0 }}
|
||||
{{ currency_symbol }}{{ vacancy.salary_min|floatformat:0 }} - {{ currency_symbol }}{{ vacancy.salary_max|floatformat:0 }}
|
||||
{% elif vacancy.salary_min %}
|
||||
От ${{ vacancy.salary_min|floatformat:0 }}
|
||||
От {{ currency_symbol }}{{ vacancy.salary_min|floatformat:0 }}
|
||||
{% else %}
|
||||
До ${{ vacancy.salary_max|floatformat:0 }}
|
||||
До {{ currency_symbol }}{{ vacancy.salary_max|floatformat:0 }}
|
||||
{% endif %}
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<div class="price-badge">
|
||||
<span class="price-label">от</span>
|
||||
<span class="price-value">{{ service.price|floatformat:0 }}</span>
|
||||
<span class="price-currency">₽</span>
|
||||
<span class="price-currency">{{ currency_symbol }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<div>
|
||||
<small class="text-muted">От</small>
|
||||
<span class="h5 text-primary mb-0">₩ {{ service.price|default:"По запросу" }}</span>
|
||||
<span class="h5 text-primary mb-0">{{ currency_symbol }} {{ service.price|default:"По запросу" }}</span>
|
||||
</div>
|
||||
<div class="text-end">
|
||||
<small class="text-muted">Срок</small>
|
||||
@@ -309,9 +309,9 @@
|
||||
<label for="budget" class="form-label">Примерный бюджет</label>
|
||||
<select class="form-select" id="budget" name="budget">
|
||||
<option value="">Не определен</option>
|
||||
<option value="1000-5000">₩ 1,000,000 - 5,000,000</option>
|
||||
<option value="5000-10000">₩ 5,000,000 - 10,000,000</option>
|
||||
<option value="10000+">₩ 10,000,000+</option>
|
||||
<option value="1000-5000">{{ currency_symbol }} 1,000,000 - 5,000,000</option>
|
||||
<option value="5000-10000">{{ currency_symbol }} 5,000,000 - 10,000,000</option>
|
||||
<option value="10000+">{{ currency_symbol }} 10,000,000+</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
Reference in New Issue
Block a user