83 lines
5.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form_inherit_theme_reservation" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.theme.reservation</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="website.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//form" position="inside">
<app string="Theme Settings" name="dine360_theme_reservation" data-string="Theme Settings" data-key="dine360_theme_reservation">
<!-- 1. Theme Styling Colors -->
<block title="Table Reservation Theme Colors" id="theme_reservation_settings">
<setting string="Branding &amp; Colors" help="Configure custom styling colors for the Table Reservation system" id="theme_reservation_settings_detail">
<field name="is_reservation_theme_active"/>
<div class="content-group" invisible="not is_reservation_theme_active">
<div class="row mt16">
<label for="reservation_primary_color" class="col-lg-3 o_light_label"/>
<field name="reservation_primary_color"/>
</div>
<div class="row mt8">
<label for="reservation_secondary_color" class="col-lg-3 o_light_label"/>
<field name="reservation_secondary_color"/>
</div>
</div>
</setting>
</block>
<!-- 2. Form Field Visibility Checklist -->
<block title="Reservation Form Fields (Visibility Checklist)" id="reservation_fields_settings">
<setting string="Contact &amp; Guest Fields" help="Select which contact and guest inputs are shown on the reservation form" id="reservation_contact_fields">
<div class="content-group">
<div class="mt8">
<field name="reservation_show_phone" class="oe_inline"/>
<label for="reservation_show_phone" class="oe_inline ms-2"/>
</div>
<div class="mt8">
<field name="reservation_show_email" class="oe_inline"/>
<label for="reservation_show_email" class="oe_inline ms-2"/>
</div>
<div class="mt8">
<field name="reservation_show_guests" class="oe_inline"/>
<label for="reservation_show_guests" class="oe_inline ms-2"/>
</div>
</div>
</setting>
<setting string="Dining Preferences &amp; Requests" help="Enable additional dining preferences and customer note fields" id="reservation_preference_fields">
<div class="content-group">
<div class="mt8">
<field name="reservation_show_special_requests" class="oe_inline"/>
<label for="reservation_show_special_requests" class="oe_inline ms-2"/>
</div>
<div class="mt8">
<field name="reservation_show_occasion" class="oe_inline"/>
<label for="reservation_show_occasion" class="oe_inline ms-2"/>
</div>
<div class="mt8">
<field name="reservation_show_dietary" class="oe_inline"/>
<label for="reservation_show_dietary" class="oe_inline ms-2"/>
</div>
<div class="mt8">
<field name="reservation_show_zone" class="oe_inline"/>
<label for="reservation_show_zone" class="oe_inline ms-2"/>
</div>
</div>
</setting>
</block>
<!-- 3. Additional Custom Fields -->
<block title="Additional Custom Fields" id="reservation_custom_fields_block">
<setting string="Custom Questions &amp; Inputs" help="Add your own custom questions or fields (e.g. High Chair, Allergies, Special Occasion) to the reservation form">
<div class="mt8">
<button name="action_open_custom_fields" type="object" string="Manage Additional Fields" class="btn-primary" icon="fa-plus-circle"/>
</div>
<div class="text-muted mt8">
Click to create, activate, or reorder dynamic custom fields.
</div>
</setting>
</block>
</app>
</xpath>
</field>
</record>
</odoo>