[FIX] ONBOARDING: #922
This commit is contained in:
@@ -120,9 +120,9 @@
|
||||
href="{% url 'rec-candidate-update' candidate.id %}?onboarding=True"><ion-icon
|
||||
name="create-outline"></ion-icon></a>
|
||||
{% if perms.recruitment.change_candidate %}
|
||||
<button type="button" hx-get="{% url 'send-mail' candidate.id %}" title="{% trans 'Send Mail' %}" hx-target="#objectDetailsModalTarget" hx-swap="innerHTML"
|
||||
<button type="button" hx-get="{% url 'send-mail' candidate.id %}" title="{% trans 'Send Mail' %}" hx-target="#objectCreateModalTarget" hx-swap="innerHTML"
|
||||
class="oh-btn oh-btn--light w-100" data-toggle="oh-modal-toggle"
|
||||
data-target="#objectDetailsModal">
|
||||
data-target="#objectCreateModal">
|
||||
<ion-icon name="mail-open-outline" role="img" class="md hydrated"
|
||||
aria-label="mail open outline">
|
||||
</ion-icon>
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
href="{% url 'rec-candidate-update' candidate.id %}?onboarding=True"><ion-icon
|
||||
name="create-outline"></ion-icon></a>
|
||||
{% if perms.recruitment.change_candidate %}
|
||||
<button type="button" hx-get="{% url 'send-mail' candidate.id %}" title="{% trans "Send Mail" %}" hx-target="#objectDetailsModalTarget" hx-swap="innerHTML" class="oh-btn oh-btn--light w-100" data-toggle="oh-modal-toggle" data-target="#objectDetailsModal" >
|
||||
<button type="button" hx-get="{% url 'send-mail' candidate.id %}" title="{% trans "Send Mail" %}" hx-target="#objectCreateModalTarget" hx-swap="innerHTML" class="oh-btn oh-btn--light w-100" data-toggle="oh-modal-toggle" data-target="#objectCreateModal" >
|
||||
<ion-icon name="mail-open-outline" role="img" class="md hydrated" aria-label="mail open outline"></ion-icon>
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
<a href="#" class="oh-dropdown__link oh-dropdown__link--danger oh-kanban__card-delete">Delete</a>
|
||||
</li> {% endcomment %}
|
||||
<li class="oh-dropdown__item">
|
||||
<a href="#" data-toggle="oh-modal-toggle" data-target="#sendMailModal" hx-get="{% url 'onboarding-send-mail' candidate.candidate_id.id %}" hx-target="#sendMailModalBody" class="oh-dropdown__link">{% trans "Send Mail" %}</a>
|
||||
<a href="#" data-toggle="oh-modal-toggle" data-target="#objectCreateModal" hx-get="{% url 'onboarding-send-mail' candidate.candidate_id.id %}" hx-target="#objectCreateModalTarget" class="oh-dropdown__link">{% trans "Send Mail" %}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -261,7 +261,7 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="oh-sticky-table__td" onclick="event.stopPropagation()">
|
||||
<button class="oh-checkpoint-badge text-success" data-toggle="oh-modal-toggle" data-target="#objectDetailsModal" hx-get="{% url 'send-mail' candidate.candidate_id.id %}" hx-target="#objectDetailsModalTarget">
|
||||
<button class="oh-checkpoint-badge text-success" data-toggle="oh-modal-toggle" data-target="#objectCreateModal" hx-get="{% url 'send-mail' candidate.candidate_id.id %}" hx-target="#objectCreateModalTarget">
|
||||
{% trans "Send mail" %}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
{% load i18n %}
|
||||
<div class="p-2 mb-3" style="background-color:#6089d54e;
|
||||
color:#6089d5fd;border-radius: 5px;">
|
||||
<div class="p-2 mb-3" style="background-color:#6089d54e;color:#6089d5fd;border-radius: 5px;">
|
||||
Mail to {{candidate.email}}
|
||||
</div>
|
||||
<form hx-post="{% url 'onboarding-send-mail' candidate.id %}" hx-target="#sendMailModalBody" method="post">
|
||||
{% csrf_token %}
|
||||
<label for="subject" class="mb-1">Subject</label>
|
||||
<input type="text" class="oh-input w-100" id="subject{{candidate.id}}" name="subject">
|
||||
<label for="Body" class="mt-3 mb-1">Body</label>
|
||||
<textarea name="body" class="w-100 oh-input" id="Body{{candidate.id}}" cols="30" rows="2"></textarea>
|
||||
<button type="submit" class="oh-btn oh-btn--secondary w-100">
|
||||
{% trans "Send" %}
|
||||
</button>
|
||||
<input type="text" class="oh-input w-100" id="subject{{candidate.id}}" name="subject">
|
||||
<label for="Body" class="mt-3 mb-1">Body</label>
|
||||
<textarea name="body" class="w-100 oh-input" id="Body{{candidate.id}}" cols="30" rows="2"></textarea>
|
||||
<button type="submit" class="oh-btn oh-btn--secondary w-100">
|
||||
{% trans "Send" %}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user