{# /***************************************************************************** File name: page-calendar-group.html.twig Project: Villas3 Copyright 2024 Michael J. Miller, All rights reserved Purpose: calendar display for all properties Requires: villa_id villa_list date_menu calendar Revision History: Date Version Details -------- ------ ------------------------------------------------- 4/29/24 3.0a created 6/16/24 3.0a added actual page ******************************************************************************/ #}

Manage All Calendars

{% include 'includes/db-paging-control.html.twig' %}
{% if role == 'webmaster' %}
{% endif %}
{% set date = '' %} {% set month_count = 0 %} {% set column = 2 %}
Properties
{% for villa in villa_list %}
{{villa.title_short}}
{% endfor %} {% set dow = calendar[0].date|date("N") %} {% for month in calendar %} {% set title = month.date|date("M Y") %} {% set month_count = month_count + 1 %} {% if title != date %} {% set date = title %}
{{title}}
{% endif %} {% set cur_date = month.date|date("Y-m-d") %} {% for i in 1..month.count %}
{{WEEK_DAY_NAMES[(dow % 7)]}}
{{i}}
{% set cur_date = cur_date|date_modify("+1 day") %} {% set column = column + 1 %} {% set dow = dow + 1 %} {% endfor %} {% endfor %} {# this populates all months for all calendars #} {% if all_calendars is defined %} {% set column = 2 %} {% for entry in all_calendars %} {% set villa_calendars = entry['days'] %} {{ include('admin/calendar-group-month.html.twig')}} {% set column = column + entry['count'] %} {% endfor %} {% endif %}

Click to select a date.
Shift Click to extend a selection. ^Control or ⌘Command Click to add to or remove day from existing selection.
Hold mouse down and drag to select multiple days.
Click month to select month or "Properties" to select all active days.
Click day to select all properties on that day.
Use day of the week buttons in "Calendar Management" to include/exclude days of the week.

Calendar Management

Tools for setting options on selected dates in all calendars simultaneously

{% set group_cal = true %} {{ include('admin/calendar-cal-tools.html.twig')}}

Any dates which have a confirmed reservation are skipped when performing ANY of these actions. Use the Reservation Editor to change the calendar for reservations.