Currently, after the customer sends the survey feedback, their ratings and message (the smileys and text area) is displayed on the right of the title. By this commit, the smileys and the text area should be displayed below the title. TaskID : 2452502 closes odoo/odoo#66308 X-original-commit: 261bf437e806fbf105597b66464c3a697e17e4d1 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
49 lines
2.9 KiB
XML
49 lines
2.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<!-- External page : thanks message -->
|
|
<template id="rating_external_page_view" name="Rating Page Done">
|
|
<t t-call="web.frontend_layout">
|
|
<div class="container pt-5">
|
|
<div class="text-center mt-5 pt-5">
|
|
<h3 class="d-inline">Thank you, we appreciate your feedback!</h3>
|
|
</div>
|
|
<div class="text-center">
|
|
<a role="button" t-att-href="web_base_url" class="btn btn-primary my-5">Go back to the Homepage</a>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<!-- External page: rate and submit feedback -->
|
|
<template id="rating_external_page_submit" name="Rating Page Submit">
|
|
<t t-call="web.frontend_layout">
|
|
<div class="container card mb-5 mt-4 o_rating_page_submit">
|
|
<div class="card-body">
|
|
<div class="row text-center justify-content-center">
|
|
<h1 class="col-12 mt-5">Thank you for rating our services!</h1>
|
|
<form t-attf-action="/rate/#{token}/submit_feedback" method="post">
|
|
<div class="btn-group btn-group-toggle row" data-toggle="buttons">
|
|
<t t-foreach="rate_names" t-as="rate_name">
|
|
<label t-attf-class="col-xs-12 btn o_rating_label shadow-none {{rate == rate_name and 'active' or ''}}">
|
|
<input type="radio" name="rate" t-attf-id="rate_{{rate_name}}" t-att-value="rate_name" t-att-checked="rate == rate_name"/>
|
|
<a class="o_rating" href="#">
|
|
<img t-attf-src='/rating/static/src/img/rating_#{rate_name}.png' t-att-alt="rate_name_value" t-att-title="rate_name_value"/>
|
|
</a>
|
|
</label>
|
|
</t>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<p class="mt-5">
|
|
Feel free to write a feedback on your experience:
|
|
</p>
|
|
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
|
|
<textarea class="form-control" name="feedback" rows="8" t-att-value="rating.feedback"></textarea>
|
|
<button type="submit" class="btn btn-primary" style="margin-top:8px;">Send Feedback</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
</odoo>
|