{# /***************************************************************************** File name: panel-house_rules.html.twig Project: Villas3 Copyright 2024 Michael J. Miller, All rights reserved Purpose: villa house rules panel Requires: villa_id villa_list Revision History: Date Version Details -------- ------ ------------------------------------------------- 4/25/24 3.0a created 11/27/25 3.3 Saving order of rules now works. Improved handling of locked rules and duotone icones. 10/26/26 4.1 Prevent changine data in demo. ******************************************************************************/ #}
Check box to add to property. Rearrange items by dragging. Click on an unlocked rule to edit it. Changing the order of a rule affects all the properties to which it is assigned.
{% include "includes/messages.html.twig" %}
{% set formname = 'house_rules' %}
{#
Selected
#}
Rule
Icon Name
Icon
{% for rule in house_rules %}
{{ rule.rule_id }} {{ rule.text }}
{{ rule.icon }}
{% if rule.icon is null or rule.icon == '' %} {% elseif rule.icon_style == 'duotone' %} {% else %}   {% endif %}
{% if rule.locked %}   {% else %}   {% endif %}
{% endfor %}