-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #462 from maykinmedia/feature/1109-update-plans-li…
…st-view [#1109] Feature/update plan list view
- Loading branch information
Showing
6 changed files
with
210 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,51 @@ | ||
{% extends 'master.html' %} | ||
{% load i18n button_tags card_tags map_tags utils string_tags %} | ||
{% load i18n button_tags string_tags pagination_tags helpers card_tags %} | ||
|
||
{% block content %} | ||
<h1 class="h1"> | ||
{% trans "Samenwerken" %} | ||
{% button href="plans:plan_create" text=_("Start nieuwe samenwerking") primary=True icon="group" icon_outlined=True %} | ||
</h1> | ||
{% optional_paragraph configurable_text.plans_page.plans_intro %} | ||
{% card_container plans=object_list columns=2 %} | ||
|
||
{% if extended_plans %} | ||
<table class="table plans-extended"> | ||
<thead class="table__heading"> | ||
<tr> | ||
<td class="table__item">{% trans "Samenwerking" %}</td> | ||
<td class="table__item">{% trans "Contactpersoon" %}</td> | ||
<td class="table__item">{% trans "Einddatum" %}</td> | ||
<td class="table__item">{% trans "Status" %}</td> | ||
<td class="table__item" colspan="2">{% trans "Openstaande acties" %} </td> | ||
<td class="table__item"> </td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for plan, plan_participants in extended_plans.items %} | ||
<tr> | ||
<th class="table__header">{{plan.title}}</th> | ||
<td class="table__item">{{plan_participants|truncatechars:30}}</td> | ||
<td class="table__item table__item--no-lb">{{plan.end_date|date:"d-m-Y"}}</td> | ||
<td class="table__item">{{plan.get_status}}</td> | ||
<td class="table__item">{{plan.open_actions.count}}</td> | ||
<td class="table__item"> | ||
{% if plan.open_actions.exists %} | ||
<div class="table__item--notification-danger">{% trans "Actie vereist" %}</div> | ||
{% endif %} | ||
</td> | ||
<td class="table__item">{% button text="" href=plan.get_absolute_url icon="arrow_forward" icon_outlined=True transparent=True %}</td> | ||
</tr> | ||
{% empty %} | ||
<tr> | ||
<td class="table__item" colspan="7" >{% trans "There are no plans yet." %}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
|
||
{% else %} | ||
{% card_container plans=plans columns=2 %} | ||
{% endif %} | ||
|
||
{% pagination page_obj=page_obj paginator=paginator request=request %} | ||
{% endblock %} |