summaryrefslogtreecommitdiff
path: root/addons/im_livechat/static/src/xml
diff options
context:
space:
mode:
authorJérome Maes <jem@openerp.com>2015-01-08 11:34:16 +0100
committerJérome Maes <jem@openerp.com>2015-01-08 12:28:22 +0100
commitade60d54bbbc5c9315346a8ede7f79dc6d4eb80a (patch)
tree3509ed8f7a500248171a70bdb957e604128628e2 /addons/im_livechat/static/src/xml
parentc8581af5921c0b5deb780658926d0953023b2a0d (diff)
[IMP] im_livechat : make the feedback for livechat a standart feature using the rating mixin. Create a dependancy to rating.
Diffstat (limited to 'addons/im_livechat/static/src/xml')
-rw-r--r--addons/im_livechat/static/src/xml/im_livechat.xml28
1 files changed, 13 insertions, 15 deletions
diff --git a/addons/im_livechat/static/src/xml/im_livechat.xml b/addons/im_livechat/static/src/xml/im_livechat.xml
index 6e9d8f33520..1bbeefc0b0b 100644
--- a/addons/im_livechat/static/src/xml/im_livechat.xml
+++ b/addons/im_livechat/static/src/xml/im_livechat.xml
@@ -1,31 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
-<templates>
+<templates xml:space="preserve">
- <t t-name="chatButton">
+ <t t-name="im_livechat.chatButton">
<t t-esc="widget.text"/>
</t>
- <t t-name="support_feedback">
- <div class="oe_im_chatview_feedback">
+ <t t-name="im_livechat.feedback">
+ <div class="oe_livechat_rating">
<div class="oe_im_feedback_text">
- Please take a second to rate our Livechat Support ...
+ Did we correctly answer your question ?
</div>
- <div class="oe_im_feedback_choices">
- <a data-value="10" name="good" title="Good"><img src='/im_livechat/static/src/img/good.png'/></a>
- <a data-value="5" name="ok" title="OK"><img src='/im_livechat/static/src/img/ok.png'/></a>
- <a data-value="1" name="bad" title="Bad"><img src='/im_livechat/static/src/img/bad.png'/></a>
+ <div class="oe_livechat_rating_choices">
+ <img src='/rating/static/src/img/rating_10.png' alt="Good" data-value="10"/>
+ <img src='/rating/static/src/img/rating_5.png' alt="OK" data-value="5"/>
+ <img src='/rating/static/src/img/rating_0.png' alt="Bad" data-value="0" />
</div>
- <div class="oe_im_feedback_small_text">
- Click on the icon that represent the most your feeling.
- </div>
- <div class="oe_im_feedback_reason">
+ <div class="oe_livechat_rating_reason">
<textarea id="reason" placeholder="Explain your note"></textarea>
</div>
- <div class="oe_im_feedback_btn">
- <input type="button" id="submit" value="Send" />
+ <div class="oe_livechat_rating_reason_button">
+ <input type="button" id="rating_submit" value="Send" />
</div>
</div>
</t>
+
</templates> \ No newline at end of file