feat: Label ANs as active/inactive

This commit is contained in:
moanos [he/him] 2025-01-09 06:06:32 +01:00
parent b2a3d910d9
commit 6229f0f8a2
2 changed files with 19 additions and 0 deletions

View File

@ -928,6 +928,20 @@ div.announcement {
background-color: #ede1b5;
}
.label {
border-radius: 8px;
padding: 4px;
color: #fff;
}
.active-adoption {
background-color: #4a9455;
}
.inactive-adoption {
background-color: #000;
}
/************************/
/* GENERAL HIGHLIGHTING */
/************************/

View File

@ -28,6 +28,11 @@
<button class="btn2" type="submit" id="submit"><i class="fa-solid fa-bell-slash"></i></button>
</form>
{% endif %}
{% if adoption_notice.is_active %}
<span id="submit" class="label active-adoption" style=>{% trans 'Aktive Vermittlung' %}</span>
{% else %}
<span id="submit" class="label inactive-adoption" style=>{% trans 'Vermittlung inaktiv' %}</span>
{% endif %}
</div>
{% if has_edit_permission %}
<a class="btn2"