{# /***************************************************************************** File name: panel-picture.html.twig Project: Villas3 Copyright 2024-2026 Michael J. Miller, All rights reserved Purpose: Pictures panel in Manage Properties Requires: villa_id villa_list picture_count photos Revision History: Date Version Details -------- ------ ------------------------------------------------- 4/25/24 3.0a created 10/26/26 4.1 Prevent changing data in demo. ******************************************************************************/ #}
{{ picture_count }} photos {% if role == 'webmaster' %} {% endif %}
{% set i = 0 %} {% for photo in photos %} {% set i = i + 1 %} {% set image = photo.small ? photo.small : photo.thumb %} {% set image_size = photo.small ? photo.small_size : photo.thumb_size %}
Picture of {{ photo.caption }}
{{ photo.caption }}
{% endfor %} {# pictures can't be uploaded for demos or for free subscriptions that have 5 or more pictures #} {% if not DEMO_MODE and (subscription_type|default != 'free' or picture_count < 5) %} {% set formname = "picture-drop-zone" %}
{# #}
{% endif %}