diff options
| author | Rajesh Prajapati (OpenERP) <rpr@tinyerp.com> | 2012-10-05 17:35:03 +0530 |
|---|---|---|
| committer | Rajesh Prajapati (OpenERP) <rpr@tinyerp.com> | 2012-10-05 17:35:03 +0530 |
| commit | cdff4611b0a588546afb9b706bbd2d0fbda7bf2f (patch) | |
| tree | 0a0a99b33e52547987ab69b2a29f3ec23c188142 /addons/pad/static/src/xml/pad.xml | |
| parent | 7202b8f7efbc76e2a40b1a4a8d7a95ed0d2ce573 (diff) | |
| parent | ba97319054728490e4d8a601382dd6fd2ab4f970 (diff) | |
[MERGE] merge with main addons
bzr revid: rpr@tinyerp.com-20121005120503-07e0zo8ucv8k0q3s
Diffstat (limited to 'addons/pad/static/src/xml/pad.xml')
| -rw-r--r-- | addons/pad/static/src/xml/pad.xml | 44 |
1 files changed, 31 insertions, 13 deletions
diff --git a/addons/pad/static/src/xml/pad.xml b/addons/pad/static/src/xml/pad.xml index 911655b6b89..eaa519dc04b 100644 --- a/addons/pad/static/src/xml/pad.xml +++ b/addons/pad/static/src/xml/pad.xml @@ -2,17 +2,35 @@ <!-- vim:fdl=1: --> <templates id="template" xml:space="preserve"> -<t t-name="FieldPad"> - <div class="oe_form_field_text oe_pad"> - <div class="oe_pad_head"> - <button class="oe_pad_switch oe_button">Fullscreen</button> - </div> - <div class="oe_pad_content"></div> - </div> -</t> -<t t-name="FieldPad.unconfigured"> - <p> - You must configure the etherpad through the menu Setting > Companies > Companies, in the configuration tab of your company.<br/> - </p> -</t> + + <t t-name="FieldPad"> + + <t t-if="!widget.configured"> + <div class="oe_form_field_text oe_pad oe_unconfigured"> + <p> + You must configure the etherpad through the menu Setting > Companies > Companies, in the configuration tab of your company. + </p> + </div> + </t> + + <t t-if="widget.configured"> + <t t-if="widget.get('effective_readonly')"> + <div class="oe_form_field_text oe_pad oe_configured"> + <div class="oe_pad_content etherpad_readonly"> + </div> + </div> + </t> + + <t t-if="!widget.get('effective_readonly')"> + <div class="oe_form_field_text oe_pad oe_configured"> + <div class="oe_pad_switch_positioner"> + <span class="oe_pad_switch oe_e">&Ntilde;</span> + </div> + <div class="oe_pad_content oe_editing"> + </div> + </div> + </t> + </t> + </t> + </templates> |
