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