Add progress bar for govplans
This commit is contained in:
parent
b0c8aa157f
commit
934ed192ed
4 changed files with 47 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
{% load govplan %}
|
||||
|
||||
{% get_plan_progress object_list as progress %}
|
||||
|
||||
<div>
|
||||
<div class="progress" style="height: 25px;">
|
||||
{% for section in progress.sections %}
|
||||
<div class="progress-bar bg-{{ section.css_class }}" role="progressbar" style="width: {{ section.css_percentage }}%;" aria-valuenow="{{ section.css_percentage }}" aria-valuemin="0" aria-valuemax="100" title="{{ section.label }}: {{ section.percentage }}%" data-toggle="tooltip" data-placement="top">
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue