[FIX] ONBOARDING: Portal employee and user creation issues fixed
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user