summaryrefslogtreecommitdiff
path: root/addons/pad/static/src/xml
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2012-10-02 09:49:31 +0200
committerFabien Meghazi <fme@openerp.com>2012-10-02 09:49:31 +0200
commit4d2299adc4e9d7db2cb52a79cf4ab8ebaad707ae (patch)
tree8a45a95b39d3b060fdef188f3da8a70fbfe20ad5 /addons/pad/static/src/xml
parent32d492acf9db0a57487a1c6c47e4311d842e99f7 (diff)
parenta5fac44994a5d2c0e20cdde0bf72ef152d2342dd (diff)
[MERGE] trunk
bzr revid: fme@openerp.com-20121002074931-845aiqhflw2rqrcn
Diffstat (limited to 'addons/pad/static/src/xml')
-rw-r--r--addons/pad/static/src/xml/pad.xml44
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">&amp;Ntilde;</span>
+ </div>
+ <div class="oe_pad_content oe_editing">
+ </div>
+ </div>
+ </t>
+ </t>
+ </t>
+
</templates>