mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-22 21:51:59 +02:00
Initial commit: Core packages
This commit is contained in:
commit
12c29a983b
9512 changed files with 8379910 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="survey.survey_breadcrumb_template">
|
||||
<ol class="breadcrumb justify-content-end bg-transparent">
|
||||
<t t-set="canGoBack" t-value="widget.canGoBack"/>
|
||||
<t t-foreach="widget.pages" t-as="page">
|
||||
<t t-set="isActivePage" t-value="page.id === widget.currentPageId"/>
|
||||
<li t-att-class="'breadcrumb-item' + (isActivePage ? ' active fw-bold' : '')"
|
||||
t-att-data-page-id="page.id"
|
||||
t-att-data-page-title="page.title">
|
||||
<t t-if="widget.currentPageId === page.id">
|
||||
<!-- Users can only go back and not forward -->
|
||||
<!-- As soon as we reach the current page, set "can_go_back" to False -->
|
||||
<t t-set="canGoBack" t-value="false" />
|
||||
</t>
|
||||
<t t-if="canGoBack">
|
||||
<a class="text-primary text-break" href="#">
|
||||
<span t-esc="page.title" />
|
||||
</a>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span t-att-class="'text-break ' + (isActivePage ? 'text-black' : 'text-muted')"
|
||||
t-esc="page.title" />
|
||||
</t>
|
||||
</li>
|
||||
</t>
|
||||
</ol>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="survey.survey_image_zoomer">
|
||||
<div role="dialog" class="o_survey_img_zoom_modal modal fade d-flex align-items-center p-0"
|
||||
data-bs-backdrop="false" aria-label="Image Zoom Dialog" tabindex="-1">
|
||||
<div class="o_survey_img_zoom_dialog modal-dialog h-100 w-100 mw-100 py-0" role="Picture Enlarged">
|
||||
<div class="modal-content h-100 bg-transparent">
|
||||
<div class="o_survey_img_zoom_body modal-body h-100 bg-transparent d-flex justify-content-center">
|
||||
<button type="button" data-bs-dismiss="modal" aria-label="close"
|
||||
class="o_survey_img_zoom_close_btn close text-white btn-close-white btn-close position-absolute"/>
|
||||
<img class="o_survey_img_zoom_image img img-fluid d-block m-auto" t-att-src="widget.sourceImage" alt="Zoomed Image"/>
|
||||
<div class="o_survey_img_zoom_controls_wrapper position-absolute">
|
||||
<button type="button" class="o_survey_img_zoom_in_btn text-white me-1" aria-label="Zoom in">
|
||||
<span class="fa fa-plus"/>
|
||||
</button>
|
||||
<button type="button" class="o_survey_img_zoom_out_btn text-white ms-1" aria-label="Zoom out">
|
||||
<span class="fa fa-minus"/>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<div t-name="survey.survey_session_text_answer" class="o_survey_session_text_answer d-inline-block m-1">
|
||||
<div class="o_survey_session_text_answer_container d-inline-block p-2 fw-bold"
|
||||
t-attf-style="border-color: #{borderColor}">
|
||||
<span class="d-inline-block" t-esc="value" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</templates>
|
||||
Loading…
Add table
Add a link
Reference in a new issue