[FIX] ONBOARDING: Portal employee and user creation issues fixed

This commit is contained in:
Horilla
2024-06-19 12:11:31 +05:30
parent 271530c923
commit 8de3762a22
2 changed files with 7 additions and 1 deletions

View File

@@ -187,6 +187,7 @@ class OnboardingPortal(HorillaModel):
token = models.CharField(max_length=200)
used = models.BooleanField(default=False)
count = models.IntegerField(default=0)
profile = models.ImageField(upload_to="employee/profile", null=True, blank=True)
objects = HorillaCompanyManager("candidate_id__recruitment_id__company_id")
def __str__(self):

View File

@@ -55,9 +55,14 @@
<form>
<div class="oh-input-group w-100 d-flex justify-content-center">
<div class="oh-profile-section__edit-photo me-4 mb-3" data-toggle="oh-modal-toggle"
data-target="#uploadPhotoModal">
<img src="{{candidate.get_avatar}}" class="oh-profile-section__avatar" alt="{{candidate.name}}"/>
{% if profile %}
<img src="{{profile.url}}" class="oh-profile-section__avatar" alt="{{candidate.name}}"/>
{% else %}
<img src="{{candidate.get_avatar}}" class="oh-profile-section__avatar" alt="{{candidate.name}}"/>
{% endif %}
</div>
</div>
<h2 class="oh-onboarding-card__greeting text-center">Welcome Aboard</h2>