2017-11-04 17:19:12 +00:00
<div class="header">
<button class="lt" aria-label="Toggle channel list"></button>
</div>
2018-03-15 08:37:32 +00:00
<form class="container" method="post" action="" data-event=" { { # if defaults . uuid } } network:edit { { else } } network:new { { / if } } ">
2017-11-04 17:19:12 +00:00
<div class="row">
<div class="col-sm-12">
<h1 class="title">
2018-03-15 08:37:32 +00:00
{ { # if defaults . uuid } }
<input type="hidden" name="uuid" value=" { { defaults . uuid } } ">
Edit { { defaults . name } }
{ { else } }
{ { # if public } } The Lounge - { { / if } }
Connect
{ { # unless displayNetwork } }
{ { # if lockNetwork } }
to { { defaults . name } }
{ { / if } }
{ { / unless } }
{ { / if } }
2017-11-04 17:19:12 +00:00
</h1>
</div>
2018-03-15 08:37:32 +00:00
{ { # if displayNetwork } }
2017-11-04 17:19:12 +00:00
<div>
<div class="col-sm-12">
<h2>Network settings</h2>
</div>
<div class="col-sm-3">
<label for="connect:name">Name</label>
</div>
<div class="col-sm-9">
<input class="input" id="connect:name" name="name" value=" { { defaults . name } } ">
</div>
<div class="col-sm-3">
<label for="connect:host">Server</label>
</div>
<div class="col-sm-6 col-xs-8">
2018-03-15 08:37:32 +00:00
<input class="input" id="connect:host" name="host" value=" { { defaults . host } } " aria-label="Server address" required { { # if lockNetwork } } disabled { { / if } } >
2017-11-04 17:19:12 +00:00
</div>
<div class="col-sm-3 col-xs-4">
<div class="port">
<input class="input" type="number" min="1" max="65535" name="port" value=" { { defaults . port } } " aria-label="Server port" { { # if lockNetwork } } disabled { { / if } } >
</div>
</div>
<div class="clearfix"></div>
<div class="col-sm-9 col-sm-offset-3">
<label class="tls">
<input type="checkbox" name="tls" { { # if defaults . tls } } checked { { / if } } { { # if lockNetwork } } disabled { { / if } } >
2018-02-17 08:22:28 +00:00
Use secure connection (TLS)
</label>
</div>
<div class="col-sm-9 col-sm-offset-3">
<label class="tls">
2018-03-05 18:11:41 +00:00
<input type="checkbox" name="rejectUnauthorized" { { # if defaults . rejectUnauthorized } } checked { { / if } } { { # if lockNetwork } } disabled { { / if } } >
Only allow trusted certificates
2017-11-04 17:19:12 +00:00
</label>
</div>
<div class="clearfix"></div>
</div>
2018-03-15 08:37:32 +00:00
{ { / if } }
2017-11-04 17:19:12 +00:00
<div class="col-sm-12">
<h2>User preferences</h2>
</div>
<div class="col-sm-3">
<label for="connect:nick">Nick</label>
</div>
<div class="col-sm-9">
2018-03-15 08:37:32 +00:00
<input class="input nick" id="connect:nick" name="nick" value=" { { defaults . nick } } " required>
2017-11-04 17:19:12 +00:00
</div>
2018-03-15 08:37:32 +00:00
{ { # unless useHexIp } }
2017-11-04 17:19:12 +00:00
<div class="col-sm-3">
<label for="connect:username">Username</label>
</div>
<div class="col-sm-9">
<input class="input username" id="connect:username" name="username" value=" { { defaults . username } } ">
</div>
2018-03-15 08:37:32 +00:00
{ { / unless } }
2018-02-15 20:26:19 +00:00
<div class="col-sm-3">
<label for="connect:password">Password</label>
</div>
2018-05-08 21:40:39 +00:00
<div class="col-sm-9 password-container">
2018-02-15 20:26:19 +00:00
<input class="input" id="connect:password" type="password" name="password" value=" { { defaults . password } } ">
2018-05-08 21:40:39 +00:00
<i class="see-pw" title="Show Password"></i>
2018-02-15 20:26:19 +00:00
</div>
2017-11-04 17:19:12 +00:00
<div class="col-sm-3">
<label for="connect:realname">Real name</label>
</div>
<div class="col-sm-9">
<input class="input" id="connect:realname" name="realname" value=" { { defaults . realname } } ">
</div>
2018-03-15 08:37:32 +00:00
{ { # if defaults . uuid } }
<div class="col-sm-3">
<label for="connect:commands">Commands</label>
</div>
<div class="col-sm-9">
<textarea class="input" id="connect:commands" name="commands" placeholder="One raw command per line, each command will be executed on new connection"> { { ~ # each defaults . commands ~ } } { { ~ this } }
{ { / each ~ } } </textarea>
</div>
<div class="col-sm-9 col-sm-offset-3">
<button type="submit" class="btn">Save</button>
</div>
{ { else } }
2017-11-04 17:19:12 +00:00
<div class="col-sm-3">
<label for="connect:channels">Channels</label>
</div>
<div class="col-sm-9">
<input class="input" id="connect:channels" name="join" value=" { { defaults . join } } ">
</div>
<div class="col-sm-9 col-sm-offset-3">
<button type="submit" class="btn">Connect</button>
</div>
2018-03-15 08:37:32 +00:00
{ { / if } }
2017-11-04 17:19:12 +00:00
</div>
</form>