discourse/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-prompt.hbs
Osama Sayegh 277eae97e1
FIX: Use autocomplete=discourse in select-kit to disable autocomplete in Chrome (#12094)
Chrome ignores `autocomplete="off"` on input fields, but as a workaround we can supply a nonsensical value (`discourse` or anything else) to the `autocomplete` attribute and it'll disable autocomplete.

Context: https://meta.discourse.org/t/-/107484/66?u=osama and https://meta.discourse.org/t/-/140884/13?u=osama.
2021-02-16 12:46:46 +03:00

28 lines
754 B
Handlebars

<div>
{{#d-modal-body rawTitle=(i18n "admin.user.merge.prompt.title" username=username)}}
<p>{{html-safe (i18n "admin.user.merge.prompt.description" username=username)}}</p>
{{email-group-user-chooser
value=targetUsername
onChange=(action "updateUsername")
options=(hash
maximum=1
filterPlaceholder="admin.user.merge.prompt.target_username_placeholder"
)
}}
{{/d-modal-body}}
<div class="modal-footer">
{{d-button
class="btn-primary"
action=(action "showConfirmation")
icon="trash-alt"
disabled=mergeDisabled
translatedLabel=mergeButtonText
}}
{{d-button
action=(action "close")
label="admin.user.merge.prompt.cancel"
}}
</div>
</div>