mirror of
https://github.com/bringout/oca-server-auth.git
synced 2026-04-19 04:12:02 +02:00
46 lines
1.5 KiB
XML
46 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<templates id="template" xml:space="preserve">
|
|
<t
|
|
t-name="vault.FieldShareVault"
|
|
t-inherit="vault.FieldVault"
|
|
t-inherit-mode="primary"
|
|
owl="1"
|
|
>
|
|
<xpath expr="//div[@t-elif='props.readonly']" position="attributes">
|
|
<attribute name="t-elif">!isNew</attribute>
|
|
</xpath>
|
|
</t>
|
|
|
|
<t
|
|
t-name="vault.FileShareVault"
|
|
t-inherit="web.BinaryField"
|
|
t-inherit-mode="primary"
|
|
owl="1"
|
|
>
|
|
<xpath expr="//t[@t-if='!props.readonly']" position="attributes">
|
|
<attribute name="t-if">isNew</attribute>
|
|
</xpath>
|
|
</t>
|
|
|
|
<t t-name="vault.FieldPinVault" owl="1">
|
|
<div class="o_vault o_vault_error" t-if="!supported()">
|
|
<span>*******</span>
|
|
</div>
|
|
<div class="o_vault" t-else="">
|
|
<t t-call="vault.Field.buttons" />
|
|
<span t-esc="formattedValue" t-ref="span" />
|
|
</div>
|
|
</t>
|
|
|
|
<t t-inherit="vault.FieldVault" t-inherit-mode="extension" owl="1">
|
|
<xpath expr="//span[hasclass('o_vault_buttons')]" position="inside">
|
|
<button
|
|
t-if="shareButton"
|
|
class="btn btn-secondary btn-sm fa fa-external-link o_vault_share"
|
|
title="Share the secret with an external user"
|
|
aria-label="Share the secret with an external user"
|
|
t-on-click="_onShareValue"
|
|
/>
|
|
</xpath>
|
|
</t>
|
|
</templates>
|