fix change template mode; fix schedule view; minor fixes
This commit is contained in:
@@ -1,31 +1,20 @@
|
||||
{% macro month_menu(routeName, months, currentMonth) %}
|
||||
{% macro month_menu(routeName, months, currentMonth, countOverdueLeft) %}
|
||||
<div class="row reports-months-all">
|
||||
{# <div class="col">#}
|
||||
{# <div class="card">#}
|
||||
{# <a href="{{ path(routeName, {monthId:-1}) }}" class="btn {% if currentMonth is null %}btn-success{% else %}btn-secondary{% endif %}">Zaległe</a>#}
|
||||
{# </div>#}
|
||||
{# </div>#}
|
||||
{# {% for id,month in months %}#}
|
||||
{# {% set isCurrent = currentMonth is not null and month | date("Y-m") == currentMonth | date("Y-m") %}#}
|
||||
{# <div class="col col-xxl-1 col-xl-2 col-lg-2 col-md-3 col-sm-3 col-4">#}
|
||||
{# <div class="card">#}
|
||||
{# <a href="{{ path(routeName,{monthId: id}) }}" class="btn {% if isCurrent %}btn-success{% else %}btn-secondary{% endif %}">#}
|
||||
{# {% if routeName=='app_schedule' %}#}
|
||||
{# {{ id }}#}
|
||||
{# {% else %}#}
|
||||
{# {{ month | date("Y-m") }}#}
|
||||
{# {% endif %}#}
|
||||
{# </a>#}
|
||||
{# </div>#}
|
||||
{# </div>#}
|
||||
{# {% endfor %}#}
|
||||
<ul class="nav nav-underline nav-fill">
|
||||
<li class="nav-item">
|
||||
<li class="nav-item position-relative">
|
||||
<a href="{{ path(routeName, {monthId:-1}) }}" class="nav-link {% if currentMonth is null %}active{% endif %}">Zaległe</a>
|
||||
{% if countOverdueLeft > 0 %}
|
||||
<div class="spinner-grow spinner-grow-sm text-danger overdue"></div>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% for id,month in months %}
|
||||
{% for id,obj in months %}
|
||||
{% set month = obj.date %}
|
||||
{% set isCurrent = currentMonth is not null and month | date("Y-m") == currentMonth | date("Y-m") %}
|
||||
<li class="nav-item">
|
||||
<li class="nav-item position-relative"
|
||||
{% if obj.overdueCount > 0 %}
|
||||
data-toggle="tooltip" data-bs-placement="bottom" title="Zaległe sprawozdania do zrobienia"
|
||||
{% endif %}
|
||||
>
|
||||
<a class="nav-link {% if isCurrent %} active{% endif %}" href="{{ path(routeName,{monthId: id}) }}">
|
||||
{% if routeName=='app_schedule' %}
|
||||
{{ id }}
|
||||
@@ -33,6 +22,9 @@
|
||||
{{ month | date("Y-m") }}
|
||||
{% endif %}
|
||||
</a>
|
||||
{% if obj.overdueCount > 0 %}
|
||||
<div class="spinner-grow spinner-grow-sm text-danger overdue"></div>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user