[FIX] website_rating: fix rating popupcomposer display

Improve overall widget layout, fix stars design and perform some small
tweaks.

Commit linked to task ID 1941250 and PR #31977
This commit is contained in:
sri-odoo
2019-03-21 11:38:47 +00:00
committed by Thibault Delavallée
parent 88102776f1
commit da17740634
3 changed files with 7 additions and 7 deletions
@@ -44,17 +44,17 @@
It can alse be used to modify a message
-->
<t t-name="website_rating.PopupComposer">
<div class="row align-items-center">
<div class="col">
<div class="d-flex flex-wrap align-items-center">
<div class="text-nowrap">
<t t-call="website_rating.rating_stars_static">
<t t-set="val" t-value="widget.rating_avg || 0"/>
<t t-set="inline_mode" t-value="true"/>
</t>
<t t-if="widget.rating_total">
<small class="font-weight-bold">(<t t-esc="widget.rating_total"/> ratings)</small>
<small>(<t t-esc="widget.rating_total"/> ratings)</small>
</t>
</div>
<button t-if="widget.options['display_composer']" type="button" class="btn btn-primary col" data-toggle="modal" data-target="#ratingpopupcomposer">
<button t-if="widget.options['display_composer']" type="button" class="btn btn-sm btn-primary mx-3" data-toggle="modal" data-target="#ratingpopupcomposer">
<t t-if="widget.options['display_composer']">
<t t-if="widget.options['default_message_id']">
Modify your review
@@ -13,7 +13,7 @@
<i class="fa fa-star-half-o" role="img" aria-label="Half a star" title="Half a star"></i>
</t>
<t t-foreach="_.range(0, empty_star)" t-as="num" role="img" t-attf-aria-label="#{empty_star} on 5" t-attf-title="#{empty_star} on 5">
<i class="fa fa-star-o"></i>
<i class="fa fa-star text-black-25"></i>
</t>
</div>
</t>
@@ -73,7 +73,7 @@
<i class="fa fa-star-half-o" role="img" aria-label="Half a star" title="Half a star"></i>
</t>
<t t-foreach="_.range(0, empty_star)" t-as="num" role="img" t-attf-aria-label="#{empty_star} on 5" t-attf-title="#{empty_star} on 5">
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o text-black-25"></i>
</t>
</div>
<div class="rate_text">
@@ -30,7 +30,7 @@
<i class="fa fa-star-half-o" role="img"></i>
</t>
<t t-foreach="range(0, empty_star)" t-as="num" role="img">
<i class="fa fa-star-o"></i>
<i class="fa fa-star text-black-25"></i>
</t>
<t t-if="rating_count">
(<t t-esc="rating_count"/>)