Skip to content

Instantly share code, notes, and snippets.

@ofelix03
Created April 11, 2025 23:34
Show Gist options
  • Save ofelix03/eb18170b46c62d2893e438e1a73d9836 to your computer and use it in GitHub Desktop.
Save ofelix03/eb18170b46c62d2893e438e1a73d9836 to your computer and use it in GitHub Desktop.
FormSaveReasonDialog
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="fotoo.FormSaveReasonDialog">
<Dialog title="'Contact Modification Reason'" technical="true">
<div>
<label class="form-label">Reason</label>
<div>
<input t-att-value="state.reason" class="form-control" autofocus="true" />
</div>
</div>
<t t-set-slot="footer">
<div class="d-flex gap-1">
<button class="btn btn-primary" t-on-click="onSave">Save</button>
<button class='btn btn-secondary' t-on-click="() => this.props.close()">Discard</button>
</div>
</t>
</Dialog>
</t>
</templates>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment