Debian Codegraph @

addons/portal_rating/static/src/chatter/frontend/composer_patch.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <templates xml:space="preserve">
3 <t t-inherit="mail.Composer" t-inherit-mode="extension">
4 <xpath expr="//div[hasclass('o-mail-Composer-coreMain')]" position="before">
5 <div t-if="env.displayRating and !message" class="o-mail-Composer-starCard d-flex mb-3 px-2">
6 <div class="o-mail-Composer-stars enabled cursor-pointer" t-on-mouseleave="onMouseLeaveStar">
7 <t t-set="index" t-value="0" />
8 <t t-foreach="Array(visibleRatingValue)" t-as="num" t-key="num_index">
9 <i class="fa fa-star" role="img" aria-label="Full star" t-att-index="index" t-on-mousemove="onMoveStar" t-on-click="onClickStar"/>
10 <t t-set="index" t-value="index + 1" />
11 </t>
12 <t t-foreach="Array(MAX_STAR_RATING - visibleRatingValue)" t-as="num" t-key="Array(visibleRatingValue) + num_index">
13 <i class="fa fa-star-o text-black-25" role="img" aria-label="Empty star" t-att-index="index" t-on-mousemove="onMoveStar" t-on-click="onClickStar"/>
14 <t t-set="index" t-value="index + 1" />
15 </t>
16 </div>
17 </div>
18 </xpath>
19 </t>
20 </templates>