mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[ADD] web_widget_child_selector
This commit is contained in:
committed by
Olga Marco
parent
d4704c67c4
commit
5e2530e535
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="FieldChildSelector">
|
||||
|
||||
<!--<div class="o_element"/>-->
|
||||
<t t-if="widget.mode === 'readonly'">
|
||||
<a t-if="!widget.nodeOptions.no_open" t-att-tabindex="widget.attrs.tabindex" class="o_form_uri" href="#"/>
|
||||
<span t-if="widget.nodeOptions.no_open"/>
|
||||
</t>
|
||||
<div t-if="widget.mode === 'edit'" class="o_field_widget">
|
||||
<span class="o_input_value"/>
|
||||
<div class="o_input_dropdown"/>
|
||||
</div>
|
||||
</t>
|
||||
<t t-name="FieldChildSelectorChild">
|
||||
<div class="row">
|
||||
<div t-foreach="childs" t-as="key" class="col-xs-12">
|
||||
<button t-att-data-id="childs[key][0]" t-att-data-index="key"
|
||||
data-type="child" class="o_child_selection_button btn">
|
||||
<t t-esc="childs[key][1]"/>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
<t t-name="FieldChildSelectorParent">
|
||||
<span>
|
||||
<t t-foreach="parents" t-as="key">
|
||||
<t t-if="key > 0"> / </t>
|
||||
<a t-att-data-id="parents[key][0]" t-att-data-index="key"
|
||||
data-type="parent" class="o_child_selection_button">
|
||||
<t t-esc="parents[key][1]"/>
|
||||
</a>
|
||||
</t>
|
||||
</span>
|
||||
</t>
|
||||
</templates>
|
||||
Reference in New Issue
Block a user