Add time progress bar to section page
This commit is contained in:
parent
65a713d10b
commit
bb7fe12632
2 changed files with 8 additions and 3 deletions
|
|
@ -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;">
|
||||
|
|
|
|||
|
|
@ -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> nicht begonnen</span>
|
||||
<span class="text-nowrap me-1"><i class="fa fa-circle text-primary"></i> begonnen</span>
|
||||
|
|
@ -51,6 +51,7 @@
|
|||
<span class="text-nowrap me-1"><i class="fa fa-circle text-success"></i> umgesetzt</span>
|
||||
<span class="text-nowrap me-1"><i class="fa fa-circle text-danger"></i> verschoben</span>
|
||||
</p>
|
||||
{% include "froide_govplan/plugins/time_used.html" with instance=object %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue