Skip to content

Commit

Permalink
twig lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Apr 22, 2024
1 parent 9d55101 commit 37a4faa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions templates/pages/assistance/planning/availability.html.twig
Expand Up @@ -53,7 +53,7 @@
is_horizontal: false
}) }}
{% if users|length > 1 %}
{{ fields.dropdownArrayField('limitto', params.limitto, { 0: __('All') } + users, null, {
{{ fields.dropdownArrayField('limitto', params.limitto, {0: __('All')} + users, null, {
nolabel: true,
field_class: 'col-12 col-sm-6 col-lg-4 align-self-end',
input_class: 'col-xxl-7 mt-3',
Expand Down Expand Up @@ -108,7 +108,7 @@
{% set used_days = used_days + [current_day] %}
<tr>
<th>{{ current_day|formatted_datetime }}</th>
{% for i in begin_quarter..(end_quarter-1) %}
{% for i in begin_quarter..(end_quarter - 1) %}
{% set begin_time = date(current_day.getTimestamp() + i * constant("HOUR_TIMESTAMP") / 4)|date('Y-m-d H:i:s') %}
{% set end_time = date(current_day.getTimestamp() + (i + 1) * constant("HOUR_TIMESTAMP") / 4)|date('Y-m-d H:i:s') %}
{% set interv_toremove = [] %}
Expand Down
4 changes: 1 addition & 3 deletions templates/pages/assistance/planning/single_filter.html.twig
Expand Up @@ -67,9 +67,7 @@
{% if caldav_item_url != '' and filter_data.type != 'group_users' and filter_data.type != 'external' %}
<li class="dropdown-item">
{% set export_url = path(
'front/planning.php?genical=1&uID=' ~ uID ~ '&gID=' ~ gID ~ '&entities_id='
~ session('glpiactive_entity') ~ '&is_recursive=' ~ session('glpiactive_entity_recursive')
~ '&token=' ~ login_user.getAuthToken()
'front/planning.php?genical=1&uID=' ~ uID ~ '&gID=' ~ gID ~ '&entities_id=' ~ session('glpiactive_entity') ~ '&is_recursive=' ~ session('glpiactive_entity_recursive') ~ '&token=' ~ login_user.getAuthToken()
) %}
<a target="_blank" href="{{ export_url }}">
{{ export_msg }} - {{ formats.ical }}
Expand Down

0 comments on commit 37a4faa

Please sign in to comment.