[UPDT] BASE: Added updated country.js file to index page

This commit is contained in:
Horilla
2025-07-10 15:05:56 +05:30
parent 32bd742bf0
commit 21b167d9c8
18 changed files with 373 additions and 1263 deletions

View File

@@ -223,8 +223,8 @@
</div>
</div>
</div>
<script src="{% static '/index/country.js' %}"></script>
<script>
{% include 'country.js' %}
{% include 'select2.js' %}
var resume = "{{resume.file.url}}"
{% if resume %}

View File

@@ -112,10 +112,6 @@
</div>
</div>
</div>
<script>
{% include 'country.js' %}
</script>
<script>
$(document).ready(function () {
$("#choose_profile").change(function (e) {

View File

@@ -24,8 +24,8 @@
<div class="row">
<div class="col-lg-6">
<label class="oh-label" for="{{form.country.id_for_label}}">{{form.country.label}}</label>
<select name="country" class="w-100 oh-select-2" id="id_country">
<option value="{{form.instance.country}}" selected>{{form.instance.country}}</option>
<select name="country" class="w-100 oh-select-2" id="id_country"
data-selected="{{ form.country.value|default:'' }}">
</select>
{{form.country.errors}}
<span class="dropdown-wrapper" aria-hidden="true"></span>
@@ -33,8 +33,8 @@
</div>
<div class="col-lg-6">
<label class="oh-label d-block" for="{{form.state.id_for_label}}">{{form.state.label}}</label>
<select name="state" class="w-100 oh-select-2" id="id_state">
<option value="{{form.instance.state}}" selected>{{form.instance.state}}</option>
<select name="state" class="w-100 oh-select-2" id="id_state"
data-selected="{{ form.state.value|default:'' }}">
</select>
{{form.state.errors}}
</div>

View File

@@ -20,7 +20,7 @@
</div>
<div class="oh-input-group">
<label class="oh-label" for="country">{{f.form.country.label}}</label>
<select name="country" class="oh-select-2 w-100 country" id="country">
<select name="country" class="oh-select-2 w-100 country" id="country" data-selected="{{ f.form.country.value|default:'' }}">
</select>
</div>
<div class="oh-input-group">
@@ -54,7 +54,7 @@
<div class="oh-input-group">
<label class="oh-label" for="state">{{f.form.state.label}}</label>
<select name="state" class="oh-select-2 w-100 country" id="state">
<select name="state" class="oh-select-2 w-100 state" id="state" data-selected="{{ f.form.state.value|default:'' }}">
</select>
</div>
@@ -195,7 +195,4 @@
</button>
</div>
<script src="{% static '/base/filter.js' %}"></script>
<script>
{% include "country.js" %}
</script>
<script src="{% static '/base/filter.js' %}"></script>

View File

@@ -176,6 +176,3 @@
</button>
</div>
<script src="{% static '/base/filter.js' %}"></script>
<script>
{% include "country.js" %}
</script>