<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_website_config_settings" model="ir.ui.view">
            <field name="name">Website settings</field>
            <field name="model">website.config.settings</field>
            <field name="arch" type="xml">
                <form string="Configure Website" class="oe_form_configuration">
                    <header>
                        <button string="Apply" type="object" name="execute" class="oe_highlight"/>
                        or
                        <button string="Cancel" type="object" name="cancel" class="oe_link"/>
                    </header>
                    <div>
                        <field name="website_id" invisible="True" on_change="on_change_website_id(website_id)"/>
                        <group string="Domain">
                            <field name="website_name" />
                            <label for="google_analytics_key"/>
                            <div name="google_analytics_key">
                                <div>
                                    <div name="google_analytics_key" class="oe_inline">
                                        <field name="google_analytics_key" placeholder="UA-XXXXXXXX-Y"/>
                                    </div>
                                </div>
                            </div>
                        </group>
                        <group string="Social Media">
                            <label for="social_twitter"/>
                            <div name="social_twitter">
                                <div class="oe_inline">
                                    <field name="social_twitter" placeholder="https://twitter.com/openerp"/>
                                </div>
                            </div>
                            <label for="social_facebook"/>
                            <div name="social_facebook">
                                <div class="oe_inline">
                                    <field name="social_facebook" placeholder="https://facebook.com/openerp"/>
                                </div>
                            </div>
                            <label for="social_github"/>
                            <div name="social_github">
                                <div class="oe_inline">
                                    <field name="social_github" placeholder="https://youraccount.github.io"/>
                                </div>
                            </div>
                            <label for="social_linkedin"/>
                            <div name="social_linkedin">
                                <div class="oe_inline">
                                    <field name="social_linkedin" placeholder="http://www.linkedin.com/company/openerp"/>
                                </div>
                            </div>
                            <label for="social_youtube"/>
                            <div name="social_youtube">
                                <div class="oe_inline">
                                    <field name="social_youtube" placeholder="http://www.youtube.com/channel/HCU842OHPPNrQ"/>
                                </div>
                            </div>
                            <label for="social_googleplus"/>
                            <div name="social_googleplus">
                                <div class="oe_inline">
                                    <field name="social_googleplus" placeholder="https://plus.google.com/+openerp"/>
                                </div>
                            </div>
                        </group>
                        <group string="Language">
                            <label for="language_ids"/>
                            <div name="language_ids">
                                <div>
                                    <div name="language_ids" class="oe_inline">
                                        <field name="language_ids" widget="many2many_checkboxes"/>
                                    </div>
                                </div>
                            </div>
                            <label for="default_lang_id"/>
                            <div name="default_lang_id">
                                <div>
                                    <div name="default_lang_id" class="oe_inline">
                                        <field name="default_lang_id" widget="selection"/>
                                    </div>
                                </div>
                            </div>
                        </group>
                        <group string="Menu">
                            <button type="action"
                                name="%(website.action_website_menu)d"
                                string="Configure website menus" class="oe_link"/>
                        </group>
                    </div>
                </form>
            </field>
        </record>

        <record id="action_website_configuration" model="ir.actions.act_window">
            <field name="name">Website Settings</field>
            <field name="res_model">website.config.settings</field>
            <field name="view_mode">form</field>
            <field name="target">inline</field>
        </record>

        <menuitem id="menu_website_configuration" parent="base.menu_config"
            sequence="90" action="action_website_configuration"/>

    </data>
</openerp>
