feat: Make updatequeue parted
This commit is contained in:
parent
272046142e
commit
d47f181e1d
@ -115,6 +115,10 @@ textarea {
|
||||
}
|
||||
}
|
||||
|
||||
.spaced {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
/*******************************/
|
||||
/* PARTIAL SPECIFIC CONTAINERS */
|
||||
/*******************************/
|
||||
@ -163,6 +167,16 @@ textarea {
|
||||
}
|
||||
}
|
||||
|
||||
/*************/
|
||||
/* Modifiers */
|
||||
/*************/
|
||||
|
||||
/* Used to enlargen cards */
|
||||
.full-width {
|
||||
width: 100%;
|
||||
flex: none;
|
||||
}
|
||||
|
||||
/***********/
|
||||
/* BUTTONS */
|
||||
/***********/
|
||||
|
@ -3,9 +3,15 @@
|
||||
{% block content %}
|
||||
<h1>{% translate "Aktualitätscheck" %}</h1>
|
||||
<p>{% translate "Überprüfe ob Vermittlungen noch aktuell sind" %}</p>
|
||||
<div class="container-cards">
|
||||
<h1>{% translate 'Vermittlungen zur Überprüfung' %}</h1>
|
||||
{% for adoption_notice in adoption_notices %}
|
||||
<div class="container-cards spaced">
|
||||
<h1>{% translate 'Deaktivierte Vermittlungen zur Überprüfung' %}</h1>
|
||||
{% for adoption_notice in adoption_notices_disabled %}
|
||||
{% include "fellchensammlung/partials/partial-check-adoption-notice.html" %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="container-cards spaced">
|
||||
<h1>{% translate 'Aktive Vermittlungen zur Überprüfung' %}</h1>
|
||||
{% for adoption_notice in adoption_notices_active %}
|
||||
{% include "fellchensammlung/partials/partial-check-adoption-notice.html" %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
@ -460,8 +460,10 @@ def updatequeue(request):
|
||||
last_checked_adoption_list = AdoptionNotice.objects.order_by("last_checked")
|
||||
else:
|
||||
last_checked_adoption_list = AdoptionNotice.objects.filter(owner=request.user).order_by("last_checked")
|
||||
adoption_notices = [adoption for adoption in last_checked_adoption_list if adoption.is_active or adoption.is_to_be_checked]
|
||||
context = {"adoption_notices": adoption_notices}
|
||||
adoption_notices_active = [adoption for adoption in last_checked_adoption_list if adoption.is_active]
|
||||
adoption_notices_disabled = [adoption for adoption in last_checked_adoption_list if adoption.is_disabled_unchecked]
|
||||
context = {"adoption_notices_disabled": adoption_notices_disabled,
|
||||
"adoption_notices_active": adoption_notices_active}
|
||||
return render(request, 'fellchensammlung/updatequeue.html', context=context)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user