123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <!--
- Customize Themes
- Use INPUT type 'checkbox' or 'radio' or use OPTION in select box
- 'data-xmlid' (optional) xml id of the template to add if the input is checked.
- You can set a list of xml id separate by comma (all template is enable or
- disable in same time)
- 'data-enable' (optional) to checked one or more HTML ids, or list separate by comma
- 'data-disable' (optional) to unchecked one or more HTML ids, or list separate by comma
- 'data-reload="/"' (optional) force the reloading of the page if the url match with
- the string ( = regexp).
- Otherwise, only the '/web/css/website.assets_frontend' is reloaded
- For the sets (data-enable and/or data-disable without data-xmlid), the set is
- automatically checked if:
- - all related fields are enabled for data-enable
- - all related fields are disabled for data-disable
- else unchecked
- HTML apply classes:
- - 'checked': on the parent label when input is checked
- - 'in': on the container (e.g.: bootstrap modal) after added in DOM (removed together
- out is added)
- - 'out': on the container 1 second before removed from ths DOM
- - 'loading': on the container/modal when the new css is loading
- -->
- <template id="website_less.theme_customize" name="Theme Modal for Customization">
- <div id="theme_customize_modal" class="modal fade">
- <div class="modal-dialog">
- <div class="modal-content">
- <input id="less" data-xmlid="website_less.option_bootstrap_less" style="display: none;"/>
- <div class="loading_backdrop"></div>
- <div class="modal-header">
- <button type="button" class="close">×</button>
- <h4 class="modal-title" id="mySmallModalLabel">Customize your theme</h4>
- </div>
- <div class="modal-body">
- <h5 class="modal-h5">LAYOUT</h5>
- <table name="layout">
- <tr>
- <td class=" text-center" width="50%">
- <label class=" center-block">
- <div class="text-center" style="background-image: url(/website_less/static/src/img/theme/layout-full.gif); background-size: 100%; line-height: 40px;">FULL WIDTH</div>
- <input name="layoutvar" type="radio" data-xmlid=""/>
- </label>
- </td>
- <td class=" text-center">
- <label class=" center-block">
- <div class="text-center" style="background-image: url(/website_less/static/src/img/theme/layout-boxed.gif); background-size: 100%; line-height: 40px;">BOXED</div>
- <input name="layoutvar" type="radio" data-xmlid="website_less.option_layout_boxed" data-enable="less"/>
- </label>
- </td>
- </tr>
- </table>
- <h5 class="modal-h5">MAIN COLOR</h5>
- <table name="color">
- <tr>
- <td>
- <label class="chd-color-combi">
- <img src="/website_less/static/src/img/theme/variant-stone.gif" alt="Stone" class="chd-color-combi-img"/>
- <input name="colorvar" type="radio" data-xmlid="" data-disable="less"/>
- </label>
- </td>
- <td>
- <label class="chd-color-combi">
- <img src="/website_less/static/src/img/theme/variant-emerald.gif" alt="Emerald" class="chd-color-combi-img"/>
- <input name="colorvar" type="radio" data-xmlid="website_less.option_color_emerald" data-enable="less"/>
- </label>
- </td>
- <td>
- <label class="chd-color-combi">
- <img src="/website_less/static/src/img/theme/variant-cobalt.gif" alt="Cobalt" class="chd-color-combi-img"/>
- <input name="colorvar" type="radio" data-xmlid="website_less.option_color_cobalt" data-enable="less"/>
- </label>
- </td>
- <td>
- <label class="chd-color-combi">
- <img src="/website_less/static/src/img/theme/variant-amethyst.gif" alt="Amethyst" class="chd-color-combi-img"/>
- <input name="colorvar" type="radio" data-xmlid="website_less.option_color_amethyst" data-enable="less"/>
- </label>
- </td>
- <td>
- <label class="chd-color-combi">
- <img src="/website_less/static/src/img/theme/variant-ruby.gif" alt="Blue" class="chd-color-combi-img"/>
- <input name="colorvar" type="radio" data-xmlid="website_less.option_color_ruby" data-enable="less"/>
- </label>
- </td>
- <td>
- <label class="chd-color-combi">
- <img src="/website_less/static/src/img/theme/variant-gold.gif" alt="Gold" class="chd-color-combi-img"/>
- <input name="colorvar" type="radio" data-xmlid="website_less.option_color_gold" data-enable="less"/>
- </label>
- </td>
- </tr>
- </table>
- <h5 class="modal-h5">FONTS COMBINATIONS</h5>
- <table name="font">
- <tr>
- <td width="50%">
- <label>
- <div>
- <span style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:11px">Helvetica</span>
- <span style="font-family:Georgia, 'Times New Roman', Times, serif; font-size:11px" >/ Georgia</span>
- </div>
- <input name="theme" type="radio" data-xmlid=""/>
- </label>
- </td>
- <td width="50%">
- <label>
- <div>
- <span style="font-family:Georgia, 'Times New Roman', Times, serif; font-size:11px" >Georgia</span>
- <span style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:11px">/ Helvetica</span>
- <input name="theme" type="radio" data-xmlid="website_less.option_font" data-enable="less"/>
- </div>
- </label>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </div>
- </template>
- <!-- color-picker -->
- <!-- HTML class to hide option for one mode : only-text, only-bg -->
- <template id="website_less.colorpicker" name="Color-Picker">
- <table class="colorpicker">
- <tr>
- <td><button class="automatic-color" title="Automatic Color"/></td>
- <td><button class="bg-primary" title="Primary Color"/></td>
- <td><button class="bg-success" title="Success Color"/></td>
- <td><button class="bg-info" title="Info Color"/></td>
- <td><button class="bg-warning" title="Warning Color"/></td>
- <td><button class="bg-danger" title="Danger Color"/></td>
- </tr>
- <tr><td colspan="8"><hr style="width: 100%; height: 1px;"/></td></tr>
- <tr>
- <td><button class="bg-blue"/></td>
- <td><button class="bg-turquoise"/></td>
- <td><button class="bg-green"/></td>
- <td><button class="bg-yellow"/></td>
- <td><button class="bg-red"/></td>
- <td><button class="bg-pink"/></td>
- <td><button class="bg-purple"/></td>
- <td><button class="bg-brown"/></td>
- </tr>
- </table>
- </template>
- <!-- Disable old themes before activating the less option -->
- <record id="website.theme_amelia" model="ir.ui.view">
- <field name="active" eval='False'/>
- </record>
- <record id="website.theme_cerulean" model="ir.ui.view">
- <field name="active" eval='False'/>
- </record>
- <record id="website.theme_cosmo" model="ir.ui.view">
- <field name="active" eval='False'/>
- </record>
- <record id="website.theme_cyborg" model="ir.ui.view">
- <field name="active" eval='False'/>
- </record>
- <record id="website.theme_flatly" model="ir.ui.view">
- <field name="active" eval='False'/>
- </record>
- <record id="website.theme_journal" model="ir.ui.view">
- <field name="active" eval='False'/>
- </record>
- <record id="website.theme_readable" model="ir.ui.view">
- <field name="active" eval='False'/>
- </record>
- <record id="website.theme_simplex" model="ir.ui.view">
- <field name="active" eval='False'/>
- </record>
- <record id="website.theme_slate" model="ir.ui.view">
- <field name="active" eval='False'/>
- </record>
- <record id="website.theme_spacelab" model="ir.ui.view">
- <field name="active" eval='False'/>
- </record>
- <record id="website.theme_united" model="ir.ui.view">
- <field name="active" eval='False'/>
- </record>
- <record id="website.theme_yeti" model="ir.ui.view">
- <field name="active" eval='False'/>
- </record>
- <!-- Bootstrap Less File layout
- Each theme module must override the following view to active bootstrap:
- <record id="website_less.option_bootstrap_less" model="ir.ui.view">
- <field name="active" eval='True'/>
- </record>
- -->
- <template id="website_less.option_bootstrap_less" name="option_bootstrap_less" inherit_id="website.theme" active="True" customize_show="False">
- <xpath expr="//link[@id='bootstrap_css']" position="replace">
- <link rel="stylesheet" href='/website_less/static/src/less/import_bootstrap.less'/>
- <link rel="stylesheet" href='/website_less/static/src/less/colors.less' t-ignore="true"/>
- </xpath>
- </template>
- <!-- Default Options Toggle -->
- <template id="website_less.default_options" name="Default Customize Options" inherit_id="website.theme">
- <xpath expr="//link[last()]" position="after">
- <!-- Default options inherit from this view so we can easily disable it to reset all options -->
- <t id="default_options" t-if="True"></t>
- </xpath>
- </template>
- <!-- Option layout -->
- <template id="website_less.option_layout_boxed" name="option_layout_boxed" inherit_id="website_less.default_options" active="False" customize_show="True">
- <xpath expr="//t[@id='default_options']" position="inside">
- <link href="/website_less/static/src/less/option_layout_boxed.less" rel="stylesheet" type="text/less"/>
- </xpath>
- </template>
- <!-- Option color -->
- <template id="website_less.option_color_stone" name="option_color_stone" inherit_id="website_less.default_options" active="False" customize_show="True">
- <xpath expr="//t[@id='default_options']" position="inside">
- <link href="/website_less/static/src/less/option_color_stone.less" rel="stylesheet" type="text/less"/>
- </xpath>
- </template>
- <template id="website_less.option_color_emerald" name="option_color_emerald" inherit_id="website_less.default_options" active="False" customize_show="True">
- <xpath expr="//t[@id='default_options']" position="inside">
- <link href="/website_less/static/src/less/option_color_emerald.less" rel="stylesheet" type="text/less"/>
- </xpath>
- </template>
- <template id="website_less.option_color_cobalt" name="option_color_cobalt" inherit_id="website_less.default_options" active="False" customize_show="True">
- <xpath expr="//t[@id='default_options']" position="inside">
- <link href="/website_less/static/src/less/option_color_cobalt.less" rel="stylesheet" type="text/less"/>
- </xpath>
- </template>
- <template id="website_less.option_color_amethyst" name="option_color_amethyst" inherit_id="website_less.default_options" active="False" customize_show="True">
- <xpath expr="//t[@id='default_options']" position="inside">
- <link href="/website_less/static/src/less/option_color_amethyst.less" rel="stylesheet" type="text/less"/>
- </xpath>
- </template>
- <template id="website_less.option_color_ruby" name="option_color_ruby" inherit_id="website_less.default_options" active="False" customize_show="True">
- <xpath expr="//t[@id='default_options']" position="inside">
- <link href="/website_less/static/src/less/option_color_ruby.less" rel="stylesheet" type="text/less"/>
- </xpath>
- </template>
- <template id="website_less.option_color_gold" name="option_color_gold" inherit_id="website_less.default_options" active="False" customize_show="True">
- <xpath expr="//t[@id='default_options']" position="inside">
- <link href="/website_less/static/src/less/option_color_gold.less" rel="stylesheet" type="text/less"/>
- </xpath>
- </template>
- <template id="website_less.option_font" name="option_font" inherit_id="website_less.default_options" active="False" customize_show="True">
- <xpath expr="//t[@id='default_options']" position="inside">
- <link href="/website_less/static/src/less/option_font.less" rel="stylesheet" type="text/less"/>
- </xpath>
- </template>
- </data>
- </openerp>
|