[UPDT] RECRUITMENT: Updated recruitment candidate note model

This commit is contained in:
Horilla
2025-09-04 09:52:56 +05:30
parent 3948408d59
commit d4a33a50da
2 changed files with 11 additions and 8 deletions

View File

@@ -720,7 +720,7 @@ class StageNote(HorillaModel):
"""
candidate_id = models.ForeignKey(Candidate, on_delete=models.CASCADE)
description = models.TextField(verbose_name=_("Description"), max_length=255)
description = models.TextField(verbose_name=_("Description")) # 905
stage_id = models.ForeignKey(Stage, on_delete=models.CASCADE)
stage_files = models.ManyToManyField(StageFiles, blank=True)
updated_by = models.ForeignKey(

View File

@@ -162,13 +162,16 @@
</form>
</div>
<span class="oh-activity-sidebar__a">
{% trans 'by' %}
<img
src="{{ note.note_by.get_avatar }}"
style="width: 1.5em; border-radius: 100%"
/>
{{ note.updated_user }} @ {{note.stage_id }}
{% trans "stage" %}
{% trans "by" %}
<img src="https://ui-avatars.com/api/?name={{note.updated_user.get_full_name}}&amp;background=random"
style="width: 1.5em; border-radius: 100%" alt="User" />
{{note.updated_user}}
</span>
<span class="oh-activity-sidebar__a">
{% trans "at" %} &nbsp
<span class="dateformat_changer">{{ note.created_at|date:"Y-m-d" }}</span>
&nbsp
<span class="timeformat_changer">{{ note.created_at|time:"H:i" }}</span>
</span>
<div style="width: 50%">
<div id="enlargeImageContainer" class="enlargeImageContainer"></div>