diff options
| author | Amit Patel <apa@tinyerp.com> | 2012-09-28 10:34:33 +0530 |
|---|---|---|
| committer | Amit Patel <apa@tinyerp.com> | 2012-09-28 10:34:33 +0530 |
| commit | ad5a175d8be28e24921f1c2cfc4485ee8cb8fefd (patch) | |
| tree | 5bd7f3961748f8b9530f2cad8411f96b22204334 /addons/pad/static/src/xml | |
| parent | 6585e5288f1ad60ee25d059fe29a0c04c4c87883 (diff) | |
| parent | b6254d631a0515685bf26c43044fba700456d349 (diff) | |
[MERGE]:trunk
bzr revid: apa@tinyerp.com-20120928050433-1gb7lpwwxdfpedlu
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> |
