Add time progress bar to section page

This commit is contained in:
Stefan Wehrmeyer 2022-11-23 13:51:56 +01:00
parent 65a713d10b
commit bb7fe12632
2 changed files with 8 additions and 3 deletions

View file

@ -1,9 +1,13 @@
{% load govplan %}
{% load i18n %}
<div class="row">
{% with gov=instance.government %}
<div class="col-sm-3">
<span class="text-gray-700">{{ gov.days_left }} Tage übrig</span>
<span class="text-gray-700">
{% blocktranslate count days=gov.days_left %}One day left{% plural %}{{ days }} days left{% endblocktranslate %}
</span>
</div>
<div class="col-sm-9">
<div class="progress" style="height: 1.5rem;">

View file

@ -36,14 +36,14 @@
<p>
{% blocktranslate with section=object.title %}
Here you can find all plans of the section "{{section}}", which the coalition constituted in their agreement. On the curresponding detail pages, you'll get more information, stay up to date with news or submit changes.
Here you can find all plans of the section “{{ section }}”, which the coalition constituted in their agreement. On the curresponding detail pages, you'll get more information, stay up to date with news or submit changes.
{% endblocktranslate %}
</p>
</div>
</div>
<div class="mt-5">
{% include "froide_govplan/plugins/progress.html" with object_list=plans %}
{% include "froide_govplan/plugins/progress_row.html" with object_list=plans %}
<p class="small text-gray-700 mt-3 no-hyphens">
<span class="text-nowrap me-1"><i class="fa fa-circle text-light"></i>&nbsp;nicht begonnen</span>
<span class="text-nowrap me-1"><i class="fa fa-circle text-primary"></i>&nbsp;begonnen</span>
@ -51,6 +51,7 @@
<span class="text-nowrap me-1"><i class="fa fa-circle text-success"></i>&nbsp;umgesetzt</span>
<span class="text-nowrap me-1"><i class="fa fa-circle text-danger"></i>&nbsp;verschoben</span>
</p>
{% include "froide_govplan/plugins/time_used.html" with instance=object %}
</div>
</div>
</div>