1 <?xml version="1.0" encoding="utf-8"?>
2 <templates id="template" xml:space="preserve">
7 Use INPUT type 'checkbox' or 'radio' or use OPTION in select box
8 'data-xmlid' (optional) xml id of the template to add if the input is checked.
9 You can set a list of xml id separate by comma (all template is enable or
11 'data-enable' (optional) to checked one or more HTML ids, or list separate by comma
12 'data-disable' (optional) to unchecked one or more HTML ids, or list separate by comma
13 'data-reload="/"' (optional) force the reloading of the page if the url match with
14 the string ( = regexp).
15 Otherwise, only the '/web/css/website.assets_frontend' is reloaded
17 For the sets (data-enable and/or data-disable without data-xmlid), the set is
18 automatically checked if:
19 - all related fields are enabled for data-enable
20 - all related fields are disabled for data-disable
24 - 'checked': on the parent label when input is checked
25 - 'in': on the container (e.g.: bootstrap modal) after added in DOM (removed together
27 - 'out': on the container 1 second before removed from ths DOM
28 - 'loading': on the container/modal when the new css is loading
31 <t t-name="website.theme_customize">
32 <div id="theme_customize_modal" class="modal fade">
33 <div class="modal-dialog">
34 <div class="modal-content">
35 <div class="loading_backdrop"></div>
36 <div class="modal-header">
37 <button type="button" class="close">×</button>
38 <h4 class="modal-title" id="mySmallModalLabel">Customize your theme</h4>
40 <div class="modal-body">
41 <h5 class="modal-h5">LAYOUT</h5>
44 <td class=" text-center" width="50%">
45 <label class=" center-block">
46 <div class="text-center" style="background-image: url(/website/static/src/img/theme/layout-full.gif); background-size: 100%; line-height: 40px;">FULL WIDTH</div>
47 <input name="layoutvar" type="radio" data-xmlid="" />
50 <td class=" text-center">
51 <label class=" center-block">
52 <div class="text-center" style="background-image: url(/website/static/src/img/theme/layout-boxed.gif); background-size: 100%; line-height: 40px;">BOXED</div>
53 <input name="layoutvar" type="radio" data-xmlid="website.option_layout_boxed"/>
59 <h5 class="modal-h5">MAIN COLOR</h5>
63 <label class="chd-color-combi">
64 <img src="/website/static/src/img/theme/variant-stone.gif" alt="Stone" class="chd-color-combi-img"/>
65 <input name="colorvar" type="radio" data-xmlid="" />
69 <label class="chd-color-combi">
70 <img src="/website/static/src/img/theme/variant-emerald.gif" alt="Emerald" class="chd-color-combi-img"/>
71 <input name="colorvar" type="radio" data-xmlid="website.option_color_emerald" />
75 <label class="chd-color-combi">
76 <img src="/website/static/src/img/theme/variant-cobalt.gif" alt="Cobalt" class="chd-color-combi-img"/>
77 <input name="colorvar" type="radio" data-xmlid="website.option_color_cobalt" />
81 <label class="chd-color-combi">
82 <img src="/website/static/src/img/theme/variant-amethyst.gif" alt="Amethyst" class="chd-color-combi-img"/>
83 <input name="colorvar" type="radio" data-xmlid="website.option_color_amethyst" />
87 <label class="chd-color-combi">
88 <img src="/website/static/src/img/theme/variant-ruby.gif" alt="Blue" class="chd-color-combi-img"/>
89 <input name="colorvar" type="radio" data-xmlid="website.option_color_ruby" />
93 <label class="chd-color-combi">
94 <img src="/website/static/src/img/theme/variant-gold.gif" alt="Gold" class="chd-color-combi-img"/>
95 <input name="colorvar" type="radio" data-xmlid="website.option_color_gold" />
101 <h5 class="modal-h5">FONTS COMBINATIONS</h5>
107 <span style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:11px">Helvetica</span>
108 <span style="font-family:Georgia, 'Times New Roman', Times, serif; font-size:11px" >/ Georgia</span>
110 <input name="theme" type="radio" data-xmlid=""/>
116 <span style="font-family:Georgia, 'Times New Roman', Times, serif; font-size:11px" >Georgia</span>
117 <span style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:11px">/ Helvetica</span>
118 <input name="theme" type="radio" data-xmlid="website.option_font"/>
130 <!-- color-picker -->
131 <!-- HTML class to hide option for one mode : only-text, only-bg -->
133 <t t-name="website.colorpicker">
134 <table class="colorpicker">
136 <td><button class="automatic-color" title="Automatic Color"/></td>
137 <td><button class="bg-primary" title="Primary Color"/></td>
138 <td><button class="bg-success" title="Success Color"/></td>
139 <td><button class="bg-info" title="Info Color"/></td>
140 <td><button class="bg-warning" title="Warning Color"/></td>
141 <td><button class="bg-danger" title="Danger Color"/></td>
143 <tr><td colspan="8"><hr style="width: 100%; height: 1px;"/></td></tr>
145 <td><button class="bg-blue"/></td>
146 <td><button class="bg-turquoise"/></td>
147 <td><button class="bg-green"/></td>
148 <td><button class="bg-yellow"/></td>
149 <td><button class="bg-red"/></td>
150 <td><button class="bg-pink"/></td>
151 <td><button class="bg-purple"/></td>
152 <td><button class="bg-brown"/></td>