{#
/**
 * @author
 * Altcom Ltd — 2024
 * @file
 * TOC SR overrides for Service Alterations calendar.
 *
 * Available variables:
 * - attributes: Remaining HTML attributes for the element.
 * - css_name: A CSS-safe version of the view name.
 * - css_class: The user-specified classes names, if any.
 * - header: The optional header.
 * - footer: The optional footer.
 * - rows: The results of the view query, if any.
 * - empty: The content to display if there are no rows.
 * - pager: The optional pager next/prev links to display.
 * - exposed: Exposed widget form/info to display.
 * - feed_icons: Optional feed icons to display.
 * - more: An optional link to the next page of results.
 * - title: Title of the view, only used when displaying in the admin preview.
 * - title_prefix: Additional output populated by modules, intended to be
 *   displayed in front of the view title.
 * - title_suffix: Additional output populated by modules, intended to be
 *   displayed after the view title.
 * - attachment_before: An optional attachment view to be displayed before the
 *   view content.
 * - attachment_after: An optional attachment view to be displayed after the
 *   view content.
 * - dom_id: Unique id for every view being printed to give unique class for
 *   JavaScript.
 * - calendar_start_datetime: Datetime object for start of date range (first day of the month).
 * - calendar_start: Start of date range (first day of the month) as 'Y-m-d'.
 * - calendar_end_datetime: Datetime object for end of date range (last day of the month).
 * - calendar_end: End of date range (last day of the month) as 'Y-m-d'.
 * - prev_show: Flag to show/enable the previous button.
 * - next_show: Flag to show/enable the next button.
 * - prev_from_datetime: Datetime object for start of the previous month (first day of previous month).
 * - prev_from: Start of the previous month (first day of previous month) as 'Y-m-d'.
 * - prev_to_datetime: Datetime object for end of the previous month (last day of previous month).
 * - prev_to: End of the previous month (last day of previous month) as 'Y-m-d'.
 * - next_from_datetime: Datetime object for start of the next month (first day of next month).
 * - next_from: Start of the previous month (first day of next month) as 'Y-m-d'.
 * - next_to_datetime: Datetime object for end of the next month (last day of next month).
 * - next_to: End of the previous month (last day of next month) as 'Y-m-d'.
 * - items: Array of Alterations for the current date range
 *
 * @ingroup themeable
 */
#}

{% set btn_next_class = 'btn btn-primary' %}
{% set btn_prev_class = 'btn btn-primary' %}
{% set prev_text = prev_from_datetime|date('F Y') %}
{% set next_text = next_from_datetime|date('F Y') %}
{% include '@core/views/alterations/views-view--service-alterations-date-range--block.html.twig' %}
