| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<templates> |
| 3 |
<!-- /file template --> |
| 4 |
<t t-name="html_editor.EmbeddedFile" t-inherit="html_editor.ReadonlyEmbeddedFile" t-inherit-mode="primary"> |
| 5 |
<xpath expr="//span[hasclass('o_file_name_container')]" position="after"> |
| 6 |
<input t-attf-class="rounded border-0 mx-2 #{ localState.editFileName ? '' : 'd-none'}" |
| 7 |
t-ref="nameInput" type="text" maxLength="100" t-att-placeholder="fileModel.filename" |
| 8 |
t-on-blur="onBlurNameInput" t-on-input.stop="" t-on-keydown.stop="onKeydownNameInput" |
| 9 |
t-att-value="fileModel.filename"/> |
| 10 |
</xpath> |
| 11 |
<xpath expr="//span[hasclass('o_file_name_container')]" position="attributes"> |
| 12 |
<attribute name="t-att-class">{ |
| 13 |
"d-none": localState.editFileName, |
| 14 |
"cursor-pointer": true, |
| 15 |
}</attribute> |
| 16 |
<attribute name="t-on-focus">onFocusFileName</attribute> |
| 17 |
<attribute name="tabindex">-1</attribute> |
| 18 |
</xpath> |
| 19 |
<xpath expr="//span[hasclass('o_file_name')]" position="after"> |
| 20 |
<i class="fa fa-pencil mx-1 invisible align-items-center d-inline-flex"/> |
| 21 |
</xpath> |
| 22 |
</t> |
| 23 |
</templates> |