2023-08-14 14:49:11 +05:30
|
|
|
{% extends 'candidate/application_form_component.html' %}
|
|
|
|
|
{% block content %}
|
2023-06-06 12:27:41 +05:30
|
|
|
{% load static %} {% load i18n %}
|
|
|
|
|
{{form.load}}
|
2023-05-10 15:06:57 +05:30
|
|
|
<div id="main">
|
|
|
|
|
<main class="oh-onboarding">
|
|
|
|
|
<div class="oh-onboarding-card oh-onboarding-card--top-bar">
|
2023-06-06 12:27:41 +05:30
|
|
|
<div
|
|
|
|
|
class="oh-onboarding-card__container oh-onboarding-card__container--wide"
|
|
|
|
|
>
|
|
|
|
|
<form action="" method="post" enctype="multipart/form-data">
|
2023-05-10 15:06:57 +05:30
|
|
|
{% if messages %}
|
|
|
|
|
<div class="oh-alert-container">
|
2023-06-06 12:27:41 +05:30
|
|
|
{% for message in messages %}
|
|
|
|
|
<div class="oh-alert oh-alert--animated {{message.tags}}">
|
|
|
|
|
{{ message }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
2023-05-10 15:06:57 +05:30
|
|
|
</div>
|
2023-06-06 12:27:41 +05:30
|
|
|
{% endif %} {% csrf_token %}
|
2023-05-10 15:06:57 +05:30
|
|
|
<div class="row">
|
2023-06-06 12:27:41 +05:30
|
|
|
<div
|
|
|
|
|
class="oh-modal"
|
|
|
|
|
id="uploadPhotoModal"
|
|
|
|
|
role="dialog"
|
|
|
|
|
aria-labelledby="uploadPhotoModal"
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
>
|
|
|
|
|
<div class="oh-modal__dialog">
|
|
|
|
|
<div class="oh-modal__dialog-header">
|
|
|
|
|
<span
|
|
|
|
|
class="oh-modal__dialog-title"
|
|
|
|
|
id="uploadPhotoModalLabel"
|
|
|
|
|
>Upload Photo</span
|
|
|
|
|
>
|
|
|
|
|
<button type="button" onclick="event.stopPropagation()" class="oh-modal__close" aria-label="Close">
|
|
|
|
|
<ion-icon name="close-outline"></ion-icon>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="oh-modal__dialog-body">
|
|
|
|
|
<div class="oh-profile-section__image-container">
|
|
|
|
|
<div class="oh-profile-section__modal-avatar">
|
|
|
|
|
<img
|
|
|
|
|
src="/static/images/ui/user.jpg"
|
|
|
|
|
class="oh-profile-section__modal-image oh-upload-photo"
|
|
|
|
|
alt="User Photo"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<input
|
|
|
|
|
type="file"
|
|
|
|
|
id="photo"
|
|
|
|
|
name="profile"
|
|
|
|
|
required
|
|
|
|
|
class="oh-input oh-input--file oh-input--file-sm mt-4 oh-upload-input"
|
|
|
|
|
data-target=".oh-upload-photo"
|
|
|
|
|
/>
|
|
|
|
|
<div
|
|
|
|
|
class="d-flex justify-content-between w-100 align-items-center mt-4"
|
|
|
|
|
>
|
|
|
|
|
<button
|
|
|
|
|
class="oh-btn oh-btn--light-danger mr-1 oh-remove-image"
|
|
|
|
|
data-target=".oh-upload-photo"
|
|
|
|
|
>
|
|
|
|
|
<ion-icon
|
|
|
|
|
class="me-1"
|
|
|
|
|
name="trash-outline"
|
|
|
|
|
></ion-icon
|
|
|
|
|
>Delete image
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-05-10 15:06:57 +05:30
|
|
|
<div class="col-sm-12 col-md-2 col-lg-2">
|
2023-06-06 12:27:41 +05:30
|
|
|
<div
|
|
|
|
|
class="oh-profile-section__edit-photo me-4 mb-3"
|
|
|
|
|
data-toggle="oh-modal-toggle"
|
|
|
|
|
data-target="#uploadPhotoModal"
|
|
|
|
|
>
|
|
|
|
|
<img
|
|
|
|
|
src="/static/images/ui/user.jpg"
|
|
|
|
|
class="oh-profile-section__avatar oh-upload-photo"
|
|
|
|
|
alt="Lizaveta Ivanovna"
|
2023-05-10 15:06:57 +05:30
|
|
|
/>
|
2023-06-06 12:27:41 +05:30
|
|
|
</div>
|
2023-05-10 15:06:57 +05:30
|
|
|
</div>
|
2023-06-06 12:27:41 +05:30
|
|
|
<ul id="error-list" class="errorlist" style="display: none">
|
2023-05-10 15:06:57 +05:30
|
|
|
<li>{% trans "Please select profile image" %}.</li>
|
|
|
|
|
</ul>
|
2023-06-06 12:27:41 +05:30
|
|
|
<div class="col-sm-12 col-md-12 col-lg-12">
|
2023-05-10 15:06:57 +05:30
|
|
|
<div class="oh-input-group">
|
2023-06-06 12:27:41 +05:30
|
|
|
<label class="oh-label" for="name"
|
|
|
|
|
>{% trans "Name" %}</label
|
|
|
|
|
>
|
2023-05-10 15:06:57 +05:30
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="name"
|
|
|
|
|
name="name"
|
|
|
|
|
required
|
|
|
|
|
class="oh-input w-100"
|
|
|
|
|
placeholder="e.g. Jane Doe"
|
|
|
|
|
/>
|
|
|
|
|
{{form.name.errrors}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-12 col-md-6 col-lg-6">
|
|
|
|
|
<div class="oh-input-group">
|
2023-06-06 12:27:41 +05:30
|
|
|
<label class="oh-label" for="recuitment"
|
|
|
|
|
>{% trans "Open Recruitment" %}
|
|
|
|
|
</label>
|
|
|
|
|
{{form.recruitment_id}}
|
|
|
|
|
{{form.recruitment_id.errors}}
|
2023-05-10 15:06:57 +05:30
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-12 col-md-6 col-lg-6">
|
|
|
|
|
<div class="oh-input-group">
|
|
|
|
|
<label class="oh-label" for="recuitment"
|
2023-06-06 12:27:41 +05:30
|
|
|
>{% trans "Choose Open Position" %}
|
|
|
|
|
</label>
|
|
|
|
|
{{form.job_position_id}} {{form.job_position_id.errors}}
|
2023-05-10 15:06:57 +05:30
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-12 col-md-6 col-lg-6">
|
|
|
|
|
<div class="oh-input-group">
|
2023-06-06 12:27:41 +05:30
|
|
|
<label class="oh-label" for="email"
|
|
|
|
|
>{% trans "Email" %}</label
|
|
|
|
|
>
|
2023-05-10 15:06:57 +05:30
|
|
|
<input
|
|
|
|
|
type="email"
|
|
|
|
|
id="email"
|
|
|
|
|
name="email"
|
|
|
|
|
class="oh-input w-100"
|
|
|
|
|
requied
|
|
|
|
|
placeholder="e.g. janedoe@example.com"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
{{form.email.errors}}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-12 col-md-6 col-lg-6">
|
|
|
|
|
<div class="oh-input-group">
|
2023-06-06 12:27:41 +05:30
|
|
|
<label class="oh-label" for="phone"
|
|
|
|
|
>{% trans "Phone" %}</label
|
|
|
|
|
>
|
2023-05-10 15:06:57 +05:30
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="phone"
|
|
|
|
|
class="oh-input w-100"
|
|
|
|
|
name="mobile"
|
|
|
|
|
placeholder="e.g. +1 245 999 999"
|
|
|
|
|
/>
|
|
|
|
|
{{form.mobile.errors}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-06-06 12:27:41 +05:30
|
|
|
<div class="col-sm-12 col-md-6 col-lg-6">
|
|
|
|
|
<div class="oh-input-group">
|
|
|
|
|
<label class="oh-label" for="portfolio"
|
|
|
|
|
>{% trans "Portfolio" %}</label
|
|
|
|
|
>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="portfolio"
|
|
|
|
|
name="portfolio"
|
|
|
|
|
class="oh-input w-100"
|
|
|
|
|
placeholder="e.g. https://www.linktoportfolio.com/"
|
|
|
|
|
/>
|
|
|
|
|
{{form.portfolio.errors}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-05-10 15:06:57 +05:30
|
|
|
|
2023-06-06 12:27:41 +05:30
|
|
|
<div class="col-sm-12 col-md-12 col-lg-6">
|
2023-05-10 15:06:57 +05:30
|
|
|
<div class="oh-input-group">
|
2023-06-06 12:27:41 +05:30
|
|
|
<label class="oh-label" for="resume"
|
|
|
|
|
>{% trans "Resume" %}</label
|
|
|
|
|
>
|
|
|
|
|
<input
|
|
|
|
|
type="file"
|
|
|
|
|
id="resume"
|
|
|
|
|
name="resume"
|
|
|
|
|
required
|
|
|
|
|
class="oh-input w-100 px-0"
|
|
|
|
|
/>
|
2023-05-10 15:06:57 +05:30
|
|
|
{{form.resume.errors}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-06-06 12:27:41 +05:30
|
|
|
<div class="col-sm-12 col-md-6 col-lg-6">
|
|
|
|
|
<div class="oh-input-group">
|
|
|
|
|
<label class="oh-label" for="gender"
|
|
|
|
|
>{% trans "Gender" %}</label
|
|
|
|
|
>
|
|
|
|
|
{{form.gender}} {{form.gender.errros}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-05-10 15:06:57 +05:30
|
|
|
<div class="col-sm-12 col-md-6 col-lg-12">
|
|
|
|
|
<div class="oh-input-group">
|
2023-06-06 12:27:41 +05:30
|
|
|
<label class="oh-label" for="address"
|
|
|
|
|
>{% trans "Address" %}</label
|
|
|
|
|
>
|
2023-05-10 15:06:57 +05:30
|
|
|
<textarea
|
|
|
|
|
id="address"
|
|
|
|
|
name="address"
|
|
|
|
|
class="oh-input oh-input--textarea w-100"
|
|
|
|
|
></textarea>
|
|
|
|
|
{{form.address.errors}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-12 col-md-6 col-lg-6">
|
|
|
|
|
<div class="oh-input-group">
|
2023-06-06 12:27:41 +05:30
|
|
|
<label class="oh-label" for="id_country"
|
|
|
|
|
>{% trans "Country" %}</label
|
|
|
|
|
>
|
|
|
|
|
<select
|
|
|
|
|
name="country"
|
|
|
|
|
id="id_country"
|
|
|
|
|
class="oh-select oh-select-2"
|
|
|
|
|
></select>
|
2023-05-10 15:06:57 +05:30
|
|
|
{{form.country.errors}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-12 col-md-6 col-lg-6">
|
|
|
|
|
<div class="oh-input-group">
|
2023-06-06 12:27:41 +05:30
|
|
|
<label class="oh-label" for="id_state"
|
|
|
|
|
>{% trans "State" %}</label
|
|
|
|
|
>
|
|
|
|
|
<select
|
|
|
|
|
name="state"
|
|
|
|
|
id="id_state"
|
|
|
|
|
class="oh-select oh-select-2"
|
|
|
|
|
></select>
|
2023-05-10 15:06:57 +05:30
|
|
|
{{form.state.errors}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-12 col-md-6 col-lg-6">
|
|
|
|
|
<div class="oh-input-group">
|
2023-06-06 12:27:41 +05:30
|
|
|
<label class="oh-label" for="city"
|
|
|
|
|
>{% trans "City" %}</label
|
|
|
|
|
>
|
2023-05-10 15:06:57 +05:30
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="city"
|
|
|
|
|
name="city"
|
|
|
|
|
class="oh-input w-100"
|
|
|
|
|
placeholder="e.g. Kerala"
|
|
|
|
|
/>
|
|
|
|
|
{{form.city.errors}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-12 col-md-6 col-lg-6">
|
|
|
|
|
<div class="oh-input-group">
|
2023-06-06 12:27:41 +05:30
|
|
|
<label class="oh-label" for="zip"
|
|
|
|
|
>{% trans "Zip Code" %}</label
|
|
|
|
|
>
|
2023-05-10 15:06:57 +05:30
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="zip"
|
|
|
|
|
name="zip"
|
|
|
|
|
class="oh-input w-100"
|
|
|
|
|
placeholder="e.g. 611 293"
|
|
|
|
|
/>
|
|
|
|
|
{{form.zip.errors}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2023-06-06 12:27:41 +05:30
|
|
|
|
2023-05-10 15:06:57 +05:30
|
|
|
|
|
|
|
|
<div class="col-sm-12 col-md-12 col-lg-12">
|
|
|
|
|
<button
|
|
|
|
|
type="submit"
|
2023-06-06 12:27:41 +05:30
|
|
|
class="oh-btn mt-4 oh-btn--secondary w-100 mb-4"
|
2023-05-10 15:06:57 +05:30
|
|
|
onclick="validateForm(event)"
|
|
|
|
|
>
|
|
|
|
|
<ion-icon name="checkmark-outline" class="me-2"></ion-icon>
|
|
|
|
|
{% trans "Apply" %}
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-12 col-md-12 col-lg-12">
|
2023-06-06 12:27:41 +05:30
|
|
|
<p class="small text-muted text-center">
|
|
|
|
|
© 2023 Horilla. All rights resevered.
|
|
|
|
|
</p>
|
2023-05-10 15:06:57 +05:30
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-08-14 14:49:11 +05:30
|
|
|
|
|
|
|
|
<div class="oh-onboarding-preview " >
|
|
|
|
|
<div class="oh-onboarding-preview__content oh-onboarding-card--top-bar" id="recruitmentInfoBody" style="border-bottom: solid rgba(128, 128, 128, 0.281) 1px;">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="oh-onboarding-preview__content oh-onboarding-card--top-bar" id="recruitmentSurveyBody" style="border-bottom: solid rgba(128, 128, 128, 0.281) 1px;">
|
2023-06-06 12:27:41 +05:30
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-05-10 15:06:57 +05:30
|
|
|
</main>
|
|
|
|
|
</div>
|
|
|
|
|
<script>
|
|
|
|
|
{% include 'country.js' %}
|
2023-05-18 15:05:28 +05:30
|
|
|
{% include 'select2.js' %}
|
2023-06-06 12:27:41 +05:30
|
|
|
var description = `{{form.instance.recruitment_id.description|safe}}`
|
|
|
|
|
var formattedDescription = description.replace(/\n/g, "<br>");
|
|
|
|
|
$("#recruitmentInfoBody").html(formattedDescription);
|
|
|
|
|
|
2023-05-10 15:06:57 +05:30
|
|
|
</script>
|
|
|
|
|
<script>
|
|
|
|
|
function validateForm(event) {
|
2023-06-06 12:27:41 +05:30
|
|
|
var fileInput = document.getElementById("photo");
|
|
|
|
|
var errorList = document.getElementById("error-list");
|
|
|
|
|
|
2023-05-10 15:06:57 +05:30
|
|
|
if (!fileInput.value) {
|
|
|
|
|
event.preventDefault(); // Prevent form submission
|
2023-06-06 12:27:41 +05:30
|
|
|
errorList.style.display = "block"; // Show error message
|
2023-05-10 15:06:57 +05:30
|
|
|
} else {
|
2023-06-06 12:27:41 +05:30
|
|
|
errorList.style.display = "none"; // Hide error message
|
2023-05-10 15:06:57 +05:30
|
|
|
}
|
|
|
|
|
}
|
2023-06-06 12:27:41 +05:30
|
|
|
</script>
|
2023-08-14 14:49:11 +05:30
|
|
|
|
|
|
|
|
{% endblock content %}
|