mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
connect-form: improve HTML indentation
This commit is contained in:
parent
a1d79cda4b
commit
5b53fb6fe9
1 changed files with 49 additions and 7 deletions
|
@ -88,7 +88,13 @@ export default class ConnectForm extends Component {
|
||||||
serverURL = html`
|
serverURL = html`
|
||||||
<label>
|
<label>
|
||||||
Server URL:<br/>
|
Server URL:<br/>
|
||||||
<input type="text" name="url" value=${this.state.url} disabled=${disabled} inputmode="url"/>
|
<input
|
||||||
|
type="text"
|
||||||
|
name="url"
|
||||||
|
value=${this.state.url}
|
||||||
|
disabled=${disabled}
|
||||||
|
inputmode="url"
|
||||||
|
/>
|
||||||
</label>
|
</label>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
`;
|
`;
|
||||||
|
@ -126,7 +132,13 @@ export default class ConnectForm extends Component {
|
||||||
let autojoin = html`
|
let autojoin = html`
|
||||||
<label>
|
<label>
|
||||||
Auto-join channels:<br/>
|
Auto-join channels:<br/>
|
||||||
<input type="text" name="autojoin" value=${this.state.autojoin} disabled=${disabled} placeholder="Comma-separated list of channels"/>
|
<input
|
||||||
|
type="text"
|
||||||
|
name="autojoin"
|
||||||
|
value=${this.state.autojoin}
|
||||||
|
disabled=${disabled}
|
||||||
|
placeholder="Comma-separated list of channels"
|
||||||
|
/>
|
||||||
</label>
|
</label>
|
||||||
<br/>
|
<br/>
|
||||||
`;
|
`;
|
||||||
|
@ -140,7 +152,14 @@ export default class ConnectForm extends Component {
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
Nickname:<br/>
|
Nickname:<br/>
|
||||||
<input type="username" name="nick" value=${this.state.nick} disabled=${disabled} ref=${this.nickInput} autofocus required/>
|
<input
|
||||||
|
type="username"
|
||||||
|
name="nick"
|
||||||
|
value=${this.state.nick}
|
||||||
|
disabled=${disabled}
|
||||||
|
ref=${this.nickInput}
|
||||||
|
required
|
||||||
|
/>
|
||||||
</label>
|
</label>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
|
@ -149,7 +168,12 @@ export default class ConnectForm extends Component {
|
||||||
${!isAutojoinAdvanced ? [autojoin, html`<br/>`] : null}
|
${!isAutojoinAdvanced ? [autojoin, html`<br/>`] : null}
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="rememberMe" checked=${this.state.rememberMe} disabled=${disabled}/>
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
name="rememberMe"
|
||||||
|
checked=${this.state.rememberMe}
|
||||||
|
disabled=${disabled}
|
||||||
|
/>
|
||||||
Remember me
|
Remember me
|
||||||
</label>
|
</label>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
@ -163,19 +187,37 @@ export default class ConnectForm extends Component {
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
Username:<br/>
|
Username:<br/>
|
||||||
<input type="username" name="username" value=${this.state.username} disabled=${disabled} placeholder="Same as nickname"/>
|
<input
|
||||||
|
type="username"
|
||||||
|
name="username"
|
||||||
|
value=${this.state.username}
|
||||||
|
disabled=${disabled}
|
||||||
|
placeholder="Same as nickname"
|
||||||
|
/>
|
||||||
</label>
|
</label>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
Real name:<br/>
|
Real name:<br/>
|
||||||
<input type="text" name="realname" value=${this.state.realname} disabled=${disabled} placeholder="Same as nickname"/>
|
<input
|
||||||
|
type="text"
|
||||||
|
name="realname"
|
||||||
|
value=${this.state.realname}
|
||||||
|
disabled=${disabled}
|
||||||
|
placeholder="Same as nickname"
|
||||||
|
/>
|
||||||
</label>
|
</label>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
Server password:<br/>
|
Server password:<br/>
|
||||||
<input type="text" name="pass" value=${this.state.pass} disabled=${disabled} placeholder="None"/>
|
<input
|
||||||
|
type="text"
|
||||||
|
name="pass"
|
||||||
|
value=${this.state.pass}
|
||||||
|
disabled=${disabled}
|
||||||
|
placeholder="None"
|
||||||
|
/>
|
||||||
</label>
|
</label>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue