Skip to content

Commit b532d2d

Browse files
committed
pre-commit stuff
1 parent 1d81d04 commit b532d2d

1 file changed

Lines changed: 41 additions & 12 deletions

File tree

altinkaya_survey/templates/google_review_link.xml

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,52 @@
22
<odoo>
33
<template id="survey_google_review_link" inherit_id="survey.survey_fill_form_done">
44
<xpath expr="//div[@class='o_survey_finished mt32 mb32']/h1" position="after">
5-
<t t-set="has_five_star_rating" t-value="False"/>
5+
<t t-set="has_five_star_rating" t-value="False" />
66
<t t-foreach="answer.user_input_line_ids" t-as="line">
7-
<t t-if="line.question_id.question_type == 'star_rating' and line.value_star_rating == 5">
8-
<t t-set="has_five_star_rating" t-value="True"/>
7+
<t
8+
t-if="line.question_id.question_type == 'star_rating' and line.value_star_rating == 5"
9+
>
10+
<t t-set="has_five_star_rating" t-value="True" />
911
</t>
1012
</t>
11-
<div t-if="has_five_star_rating" class="o_survey_google_review mt-5 mb-5 p-4 text-center" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);">
13+
<div
14+
t-if="has_five_star_rating"
15+
class="o_survey_google_review mt-5 mb-5 p-4 text-center"
16+
style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);"
17+
>
1218
<div class="mb-3">
13-
<i class="fa fa-star text-warning" style="font-size: 2em; margin: 0 5px;"/>
14-
<i class="fa fa-star text-warning" style="font-size: 2em; margin: 0 5px;"/>
15-
<i class="fa fa-star text-warning" style="font-size: 2em; margin: 0 5px;"/>
16-
<i class="fa fa-star text-warning" style="font-size: 2em; margin: 0 5px;"/>
17-
<i class="fa fa-star text-warning" style="font-size: 2em; margin: 0 5px;"/>
19+
<i
20+
class="fa fa-star text-warning"
21+
style="font-size: 2em; margin: 0 5px;"
22+
/>
23+
<i
24+
class="fa fa-star text-warning"
25+
style="font-size: 2em; margin: 0 5px;"
26+
/>
27+
<i
28+
class="fa fa-star text-warning"
29+
style="font-size: 2em; margin: 0 5px;"
30+
/>
31+
<i
32+
class="fa fa-star text-warning"
33+
style="font-size: 2em; margin: 0 5px;"
34+
/>
35+
<i
36+
class="fa fa-star text-warning"
37+
style="font-size: 2em; margin: 0 5px;"
38+
/>
1839
</div>
19-
<h3 class="text-white mb-3" style="font-weight: 600;">Share your experience and help others discover us</h3>
20-
<a href="https://g.page/r/Cbenqo4Sl0LDEBM/review?utm_source=survey&amp;utm_medium=5star&amp;utm_campaign=satisfaction_survey" target="_blank" class="btn btn-light btn-lg px-5 py-3" style="font-size: 1.2em; font-weight: 600; border-radius: 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: all 0.3s ease;">
21-
<i class="fa fa-google me-2" style="color: #4285f4;"/>
40+
<h3
41+
class="text-white mb-3"
42+
style="font-weight: 600;"
43+
>Share your experience and help others discover us</h3>
44+
<a
45+
href="https://g.page/r/Cbenqo4Sl0LDEBM/review?utm_source=survey&amp;utm_medium=5star&amp;utm_campaign=satisfaction_survey"
46+
target="_blank"
47+
class="btn btn-light btn-lg px-5 py-3"
48+
style="font-size: 1.2em; font-weight: 600; border-radius: 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: all 0.3s ease;"
49+
>
50+
<i class="fa fa-google me-2" style="color: #4285f4;" />
2251
Leave a Google Review
2352
</a>
2453
</div>

0 commit comments

Comments
 (0)