Add placeholder to MUC invite modal input
This commit is contained in:
parent
7279f08a34
commit
f854e477b7
@ -4,7 +4,8 @@ import { modal_header_close_button } from "./buttons"
|
|||||||
|
|
||||||
const i18n_invite = __('Invite');
|
const i18n_invite = __('Invite');
|
||||||
const i18n_invite_heading = __('Invite someone to this groupchat');
|
const i18n_invite_heading = __('Invite someone to this groupchat');
|
||||||
const error_message = __('Please enter a valid XMPP address');
|
const i18n_jid_placeholder = __('user@example.org');
|
||||||
|
const i18n_error_message = __('Please enter a valid XMPP address');
|
||||||
const i18n_invite_label = __('XMPP Address');
|
const i18n_invite_label = __('XMPP Address');
|
||||||
const i18n_reason = __('Optional reason for the invitation');
|
const i18n_reason = __('Optional reason for the invitation');
|
||||||
|
|
||||||
@ -22,11 +23,12 @@ export default (o) => html`
|
|||||||
<form @submit=${o.submitInviteForm}>
|
<form @submit=${o.submitInviteForm}>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="clearfix" for="invitee_jids">${i18n_invite_label}:</label>
|
<label class="clearfix" for="invitee_jids">${i18n_invite_label}:</label>
|
||||||
${ o.invalid_invite_jid ? html`<div class="error error-feedback">${error_message}</div>` : '' }
|
${ o.invalid_invite_jid ? html`<div class="error error-feedback">${i18n_error_message}</div>` : '' }
|
||||||
<input class="form-control suggestion-box__input"
|
<input class="form-control suggestion-box__input"
|
||||||
required="required"
|
required="required"
|
||||||
name="invitee_jids"
|
name="invitee_jids"
|
||||||
id="invitee_jids"
|
id="invitee_jids"
|
||||||
|
placeholder="${i18n_jid_placeholder}"
|
||||||
type="text"/>
|
type="text"/>
|
||||||
<span class="suggestion-box__additions visually-hidden" role="status" aria-live="assertive" aria-relevant="additions"></span>
|
<span class="suggestion-box__additions visually-hidden" role="status" aria-live="assertive" aria-relevant="additions"></span>
|
||||||
<ul class="suggestion-box__results suggestion-box__results--below" hidden=""></ul>
|
<ul class="suggestion-box__results suggestion-box__results--below" hidden=""></ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user