{# /************************************************************* File name: panel-house_rules-editor.html.twig Project: Villas3.com Copyright 2025-2026 Michael J. Miller, All rights reserved Purpose: generate markup for house rules editor Requires: rule - rule record to be edited (new if none is supplied) Revision History: Date Version Details -------- -------- -------------------------------------------- 7/15/25 3.1 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 Fixed adding a rule. **************************************************************/ #} {% import "includes/amenity-icon-macro.html.twig" as icon %}

Edit Rule {% if rule.locked|default(0) == 1 %} {% endif %}

Changes made here affect all properties using this rule.{{ rule.locked|default(0) ? ' Only the name can be changed on locked rules.' : '' }}
{% set read_only = role == 'webmaster' and rule.locked|default(0) ? 'disabled' : '' %} {% set icon_style = rule.icon_style|default('light') %}
{{ icon.icon(rule.icon|default, rule.icon_color|default, rule.icon_color_alt|default, rule.icon_style|default, true) }} {# class="fa-{{ icon_style }} fa-{{ rule.icon|default }} fa-2xl" #} {# title="The actual icon, in the selected style, that guests see with this rule." #} {# style="color:{{ rule.icon_color|default }}; " #} {# tabindex="0" #}
  Find Icons