Mark the channel field of "Join a channel" UI as required

This commit is contained in:
Jérémie Astori 2017-12-22 12:15:40 -05:00
parent a03f894888
commit 1063d7b1d6
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8

View File

@ -1,5 +1,5 @@
<form id="join-channel-{{id}}" class="join-form" method="post" action="" autocomplete="off">
<input type="text" class="input" name="channel" placeholder="Channel" pattern="[^\s]+" maxlength="200" title="Should be a valid channel name">
<input type="text" class="input" name="channel" placeholder="Channel" pattern="[^\s]+" maxlength="200" title="Should be a valid channel name" required>
<input type="password" class="input" name="key" placeholder="Password (optional)" pattern="[^\s]+" title="Should be a valid channel key" maxlength="200" >
<button type="submit" class="btn joinchan:submit" data-id="{{id}}">Join</button>
</form>