[FIX] RECRUITMENT: Recruitment dashboard redirect to employee start onboarding

This commit is contained in:
Horilla
2024-02-05 11:54:03 +05:30
parent fdeb38aae1
commit 1a97a12d0b
3 changed files with 11 additions and 10 deletions

View File

@@ -269,11 +269,11 @@ function populateStates(countryElementId, stateElementId) {
stateElement.length = 0; // Fixed by Julian Woods
stateElement.options[0] = new Option('Select State', '');
stateElement.selectedIndex = 0;
var state_arr = s_a[selectedCountryIndex].split("|");
for (var i = 0; i < state_arr.length; i++) {
stateElement.options[stateElement.length] = new Option(state_arr[i], state_arr[i]);
if (s_a[selectedCountryIndex]) {
state_arr = s_a[selectedCountryIndex].split("|")
for (var i = 0; i < state_arr.length; i++) {
stateElement.options[stateElement.length] = new Option(state_arr[i], state_arr[i]);
}
}
}

View File

@@ -131,7 +131,7 @@
<div class="col-12 col-sm-12 col-md-12 col-lg-5 oh-card" style="border:0px solid white" >
<div class="oh-card-dashboard__header oh-card-dashboard__header--divider">
<span class="oh-card-dashboard__title">{% trans "Candidate on Onboard" %}</span>
{% if onboarding_count %}<span class="oh-card-dashboard__title float-end"><a href="{% url 'onboarding-view' %}" style="text-decoration:none; color:orange;">{% trans "View all" %}</a></span>{% endif %}
{% if onboarding_count %}<span class="oh-card-dashboard__title float-end"><a href="{% url 'candidate-view' %}?start_onboard=true" style="text-decoration:none; color:orange;">{% trans "View all" %}</a></span>{% endif %}
</div>
<div class="oh-card-dashboard__body" style="height:325px; overflow-y:auto;">
{% if onboarding_count %}

View File

@@ -269,10 +269,11 @@ function populateStates(countryElementId, stateElementId) {
stateElement.length = 0; // Fixed by Julian Woods
stateElement.options[0] = new Option('Select State', '');
stateElement.selectedIndex = 0;
var state_arr = s_a[selectedCountryIndex].split("|");
for (var i = 0; i < state_arr.length; i++) {
stateElement.options[stateElement.length] = new Option(state_arr[i], state_arr[i]);
if (s_a[selectedCountryIndex]) {
state_arr = s_a[selectedCountryIndex].split("|")
for (var i = 0; i < state_arr.length; i++) {
stateElement.options[stateElement.length] = new Option(state_arr[i], state_arr[i]);
}
}
}