fix(cof_clubs): Add remaining budget in period title
This commit is contained in:
parent
80096fb99b
commit
112a4dc37e
2 changed files with 3 additions and 1 deletions
|
@ -30,7 +30,8 @@
|
|||
{% if period.is_archived %}
|
||||
<div class="button is-static"><span>Archivé</span><span class="icon"><i class="fa fa-inbox"></i></span></div>
|
||||
{% else %}
|
||||
<a class="button" href="{% url "cof_clubs:budget-line-create" object.id period.id %}"><span class="icon"><i class="fa fa-plus"></i></span></a>
|
||||
/ {{ period.remaining }} €
|
||||
<a class="button" href="{% url "cof_clubs:budget-line-create" object.id period.id %}"><span class="icon"><i class="fa fa-plus"></i></span><span>Nouvelle ligne</span></a>
|
||||
{% endif %}
|
||||
</h2>
|
||||
|
||||
|
|
|
@ -144,6 +144,7 @@ class ClubDetailView(AccessMixin, DetailView):
|
|||
)
|
||||
value["remaining"] = s
|
||||
accounting_periods[i]["lines"] = lines
|
||||
accounting_periods[i]["remaining"] = s
|
||||
ctx["accounting_periods"] = accounting_periods
|
||||
return ctx
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue