diff options
| author | Frédéric van der Essen <fva@openerp.com> | 2012-09-24 15:46:00 +0200 |
|---|---|---|
| committer | Frédéric van der Essen <fva@openerp.com> | 2012-09-24 15:46:00 +0200 |
| commit | a7f63f3fb2ef9fd9a3ebbfa66f9e62e0e9154023 (patch) | |
| tree | c825eb60d3a549f9159fc83025f243e440a3debd /addons/pad/static/src/xml | |
| parent | db6c61f66687cb64a3b50b62a43dd2f87a3755c1 (diff) | |
[FIX] css: further etherpad fixes:
bzr revid: fva@openerp.com-20120924134600-5avqr2vohdsh7y9n
Diffstat (limited to 'addons/pad/static/src/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> |
