<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="res_config_settings_view_form" model="ir.ui.view">
        <field name="name">res.config.settings.view.form.inherit.website.slides</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="//setting[@id='website_marketing_automation']" position="after">
                <setting id="slides_install_setting" groups="website_slides.group_website_slides_manager">
                    <span class="o_form_label">Slides</span>
                    <span class="fa fa-lg fa-globe" title="Values set here are website-specific." groups="website.group_multi_website"/>
                    <div class="text-muted">
                        Google Drive API Key
                    </div>
                    <div class="content-group">
                        <div class="row mt16">
                            <label for="website_slide_google_app_key" class="col-lg-3 o_light_label" string="API Key"/>
                            <field name="website_slide_google_app_key" class="oe_inline"/>
                        </div>
                        <div class="oe_link">
                            <a href="https://console.developers.google.com/flows/enableapi?apiid=drive,youtube"><span class="oi oi-arrow-right"/>
                                Create a Google Project and Get a Key
                            </a>
                        </div>
                    </div>
                </setting>
            </xpath>
            <xpath expr="//form" position="inside">
                <app data-string="eLearning" string="eLearning" name="website_slides" groups="website_slides.group_website_slides_manager">
                    <block title="eLearning" id="website_slides_selection_settings">
                        <setting id="website_slide_install_website_slides_survey" colspan="4" help="Evaluate the knowledge of your Attendees and certify their skills.">
                            <field name="module_website_slides_survey"/>
                        </setting>
                        <setting id="website_slides_install_sale_slides" colspan="4" string="Paid Courses" help="Sell access to your courses on your website and track revenues.">
                            <field name="module_website_sale_slides"/>
                        </setting>
                        <setting id="website_slides_install_mass_mailing_slides" colspan="4" help="Update all your Attendees at once through mass mailings.">
                            <field name="module_mass_mailing_slides"/>
                        </setting>
                        <setting id="website_slide_install_website_slides_forum" colspan="4" help="Create a community and let Attendees answer each others' questions.">
                            <field name="module_website_slides_forum"/>
                        </setting>
                    </block>
                </app>
            </xpath>
        </field>
    </record>

    <record id="website_slides_action_settings" model="ir.actions.act_window">
        <field name="name">Settings</field>
        <field name="res_model">res.config.settings</field>
        <field name="view_mode">form</field>
        <field name="target">inline</field>
        <field name="context">{'module': 'website_slides', 'bin_size': False}</field>
    </record>
</odoo>
