| 1 |
<odoo> |
| 2 |
<template id="passkeys_portal_hook" name="Passkeys Portal hook" inherit_id="portal.portal_my_security"> |
| 3 |
<xpath expr="//section[@name='portal_revoke_all_devices_popup']" position="before"> |
| 4 |
<section name="portal_passkey_management"> |
| 5 |
<h4> |
| 6 |
Passkeys |
| 7 |
</h4> |
| 8 |
<div> |
| 9 |
<table class="table"> |
| 10 |
<thead> |
| 11 |
<tr> |
| 12 |
<th>Name</th> |
| 13 |
<th>Created</th> |
| 14 |
<th>Last Used</th> |
| 15 |
<th/> |
| 16 |
<th/> |
| 17 |
</tr> |
| 18 |
</thead> |
| 19 |
<tbody> |
| 20 |
<t t-foreach="user_id.auth_passkey_key_ids" t-as="key"> |
| 21 |
<tr class="o_passkey_portal_entry" t-att-id="key.id"> |
| 22 |
<td><span t-field="key.name" class="o_passkey_name"/></td> |
| 23 |
<td><span t-field="key.create_date" t-options='{"widget": "datetime", "format": "short"}'/></td> |
| 24 |
<td><span t-field="key.write_date" t-options='{"widget": "datetime", "format": "short"}'/></td> |
| 25 |
<td> |
| 26 |
<i class="fa fa-pencil o_passkey_portal_rename" type="button"/> |
| 27 |
</td> |
| 28 |
<td> |
| 29 |
<i class="fa fa-trash text-danger o_passkey_portal_delete" type="button"/> |
| 30 |
</td> |
| 31 |
</tr> |
| 32 |
</t> |
| 33 |
</tbody> |
| 34 |
</table> |
| 35 |
</div> |
| 36 |
<button type="button" class="btn btn-light mt-1" id="portal_passkey_add"> |
| 37 |
Add Passkey |
| 38 |
</button> |
| 39 |
</section> |
| 40 |
</xpath> |
| 41 |
</template> |
| 42 |
</odoo> |