diff options
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> |
