create timesheet for multiple users (#1716)
This commit is contained in:
@@ -37,9 +37,9 @@
|
||||
{% macro label_boolean(visible) %}
|
||||
{% import _self as macro %}
|
||||
{% if visible %}
|
||||
{{ macro.label('yes', 'success') }}
|
||||
{{ macro.label('yes'|trans, 'success') }}
|
||||
{% else %}
|
||||
{{ macro.label('no', 'default') }}
|
||||
{{ macro.label('no'|trans, 'default') }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
@@ -50,17 +50,17 @@
|
||||
|
||||
{% macro label_role(role) %}
|
||||
{% import _self as macro %}
|
||||
{% set color = 'primary' %}
|
||||
{% if role == 'ROLE_SUPER_ADMIN' %}
|
||||
{{ macro.label(role, 'danger') }}
|
||||
{% set color = 'danger' %}
|
||||
{% elseif role == 'ROLE_ADMIN' %}
|
||||
{{ macro.label(role, 'warning') }}
|
||||
{% set color = 'warning' %}
|
||||
{% elseif role == 'ROLE_TEAMLEAD' %}
|
||||
{{ macro.label(role, 'success') }}
|
||||
{% set color = 'success' %}
|
||||
{% elseif role == 'ROLE_USER' %}
|
||||
{{ macro.label(role, 'gray') }}
|
||||
{% else %}
|
||||
{{ macro.label(role, 'primary') }}
|
||||
{% set color = 'gray' %}
|
||||
{% endif %}
|
||||
{{ macro.label(role|trans, color) }}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro username(user) %}
|
||||
@@ -155,11 +155,11 @@
|
||||
|
||||
{% macro label(title, type, tooltip) %}
|
||||
{# success, warning, danger, primary #}
|
||||
<span {% if tooltip %}data-toggle="tooltip" data-placement="top" title="{{ tooltip }}" {% endif %}class="label label-{{ type|default('success') }}">{{ title|trans }}</span>
|
||||
<span {% if tooltip %}data-toggle="tooltip" data-placement="top" title="{{ tooltip }}" {% endif %}class="label label-{{ type|default('success') }}">{{ title }}</span>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro badge(title, color) %}
|
||||
<span class="badge" style="background-color:{{ color }}">{{ title|trans }}</span>
|
||||
<span class="badge" style="background-color:{{ color }}">{{ title }}</span>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro alert(type, description, title, icon) %}
|
||||
@@ -345,7 +345,7 @@
|
||||
<span class="caret"></span>
|
||||
<span class="sr-only">{{ 'label.toggle_dropdown'|trans }}</span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<ul class="dropdown-menu dropdown-menu-right" role="menu">
|
||||
{% for childIcon,childValues in values.children %}
|
||||
<li>{{ macro.action_button(childIcon, childValues, false) }}</li>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user