mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[ADD] web_widget_many2one_simple
This commit is contained in:
committed by
OCA-git-bot
parent
64f34f7c73
commit
575daf2e68
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="web_widget_many2one_simple.FieldMany2OneSimple">
|
||||
<t t-if="widget.mode === 'readonly'">
|
||||
<a
|
||||
t-if="!widget.noOpen"
|
||||
t-att-tabindex="widget.attrs.tabindex"
|
||||
class="o_form_uri"
|
||||
href="#"
|
||||
/>
|
||||
<span t-if="widget.noOpen" />
|
||||
</t>
|
||||
<div
|
||||
t-if="widget.mode === 'edit'"
|
||||
class="o_field_widget o_field_many2one_simple"
|
||||
aria-atomic="true"
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
class="o_input"
|
||||
t-att-barcode_events="widget.nodeOptions.barcode_events"
|
||||
t-att-tabindex="widget.attrs.tabindex"
|
||||
t-att-autofocus="widget.attrs.autofocus"
|
||||
t-att-placeholder="widget.attrs.placeholder"
|
||||
t-att-id="widget.idForLabel"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
t-if="!widget.noOpen"
|
||||
class="fa fa-external-link btn btn-secondary o_external_button"
|
||||
tabindex="-1"
|
||||
draggable="false"
|
||||
aria-label="External link"
|
||||
title="External link"
|
||||
/>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
Reference in New Issue
Block a user