{# /***************************************************************************** File name: site-panel-channel-row.html.twig Project: Villas3 Copyright 2025 Michael J. Miller, All rights reserved Purpose: show Channel_Map record Requires: map - a Channel_Map row Revision History: Date Version Details -------- ------ ------------------------------------------------- 1/10/25 3.0a created ******************************************************************************/ #} {##}
{% if role == 'webmaster' %} {% endif %} {{map.source}}
{% if map.channel_state == 0 %}
Contact Webmaster to enable this channel.
{% else %}
{% if map.channel_id == 3 %} {% if map.property_id is not empty %} {{map.property_id}} {% elseif airbnb_listings is not null and map.property_id is empty %} {% else %} {% endif %} {% else %} {{ map.property_id|length > 0 ? map.property_id : 'required'|raw}} {% endif %}
{% if map.connected %} {% else %} {% endif %}
{% if map.active %} {% else %} {% endif %}
{% if map.connected %} {% set btn_color = (map.property_id is null or (map.channel_id != 3 and (map.room_id is null or map.rate_plan_id is null))) ? 'red' : 'orange' %} {% else %} {% endif %} {% if map.connected %} {% if map.active %} {% else %} {% endif %} {% else %}
{% endif %} {% endif %}