Debian Codegraph @

addons/portal_rating/static/src/xml/portal_chatter.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <templates id="template" xml:space="preserve">
3 <!--
4 Inherited templates from portal to custom chatter with rating
5 -->
6 <t t-inherit="portal.Composer" t-inherit-mode="extension">
7 <xpath expr="//textarea" position="inside"><t t-esc="widget.options['default_message'] ? widget.options['default_message'].trim() : ''"/></xpath><!-- need to be one line to avoid \t in textarea -->
8 <xpath expr="//button[hasclass('o_portal_chatter_composer_btn')]" position="attributes">
9 <attribute name="t-attf-data-action">#{widget.options['force_submit_url'] || '/mail/message/post'}</attribute>
10 </xpath>
11 <xpath expr="//*[hasclass('o_portal_chatter_composer_input')]/div[hasclass('o_portal_chatter_composer_body')]" position="before">
12 <t t-call="portal_rating.rating_star_input">
13 <t t-set="default_rating" t-value="widget.options['default_rating_value']"/>
14 </t>
15 </xpath>
16 </t>
17
18 </templates>