[FIX] RECRUITMENT: Fixes in the recruitment list detail view archive and unarchive issues
This commit is contained in:
@@ -18,30 +18,12 @@
|
||||
{% if perms.recruitment.delete_recruitment %}
|
||||
{% if instance.is_active %}
|
||||
<a onclick="return confirm('{% trans "Are you sure you want to archive this recruitment?" %}');" href="{% url 'recruitment-archive' instance.id %}" class="oh-btn oh-btn--primary w-50 " title="{% trans 'Archive' %}">
|
||||
<button style="
|
||||
background: none;
|
||||
color: inherit;
|
||||
border: none;
|
||||
padding: 0;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
outline: inherit;"
|
||||
title="{% trans 'Archive' %}">
|
||||
<ion-icon name="archive" ></ion-icon>
|
||||
{% trans "Archive" %}</button></a>
|
||||
{% else %}
|
||||
<ion-icon name="archive" ></ion-icon>{% trans "Archive" %}
|
||||
</a>
|
||||
{% else %}
|
||||
<a onclick="return confirm('{% trans "Are you sure you want to unarchive this recruitment?" %}');" href="{% url 'recruitment-archive' instance.id %}" class="oh-btn oh-btn--primary w-50" title="{% trans 'Unarchive' %}">
|
||||
<button style="
|
||||
background: none;
|
||||
color: inherit;
|
||||
border: none;
|
||||
padding: 0;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
outline: inherit;"
|
||||
title="{% trans 'Unarchive' %}">
|
||||
<ion-icon name="archive" ></ion-icon> {% trans "Un-archive" %}
|
||||
</button></a>
|
||||
<ion-icon name="archive" ></ion-icon> {% trans "Un-archive" %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if perms.recruitment.delete_recruitment %}
|
||||
|
||||
Reference in New Issue
Block a user