46 lines
1.9 KiB
Handlebars
46 lines
1.9 KiB
Handlebars
<div class="wrapper">
|
|
{{> topBar}}
|
|
<div class="full">
|
|
|
|
<h2>Log In</h2>
|
|
<p>Log in to an existing channel:</p>
|
|
<form id="login-form" action="/login" method="post">
|
|
<div>
|
|
<label>Username:</label>
|
|
@ <input type="text" name="username" class="input-text input-text--primary"/>
|
|
</div>
|
|
<div>
|
|
<label>Password:</label>
|
|
<input type="password" name="password" class="input-text input-text--primary"/>
|
|
</div>
|
|
<div>
|
|
<input type="submit" value="Log In"/>
|
|
</div>
|
|
</form>
|
|
|
|
<h2>Create New</h2>
|
|
<p>Create a brand new channel:</p>
|
|
<form id="signup-form" action="/signup" method="post">
|
|
<div>
|
|
<span id="input-error-channel-name" class="info-message info-message--failure"></span><br/>
|
|
<label>Channel name:</label>
|
|
@ <input type="text" name="username" value="" id="new-channel-name" class="input-text input-text--primary" oninput="checkChannelName(event.target.value)"/>
|
|
<span id="input-success-channel-name" class="info-message info-message--success"></span>
|
|
</div>
|
|
<div>
|
|
<span id="input-error-password" class="info-message info-message--failure"></span><br/>
|
|
<label>Password:</label>
|
|
<input type="password" name="password" value="" id="new-channel-password" class="input-text input-text--primary"/>
|
|
</div>
|
|
<div>
|
|
<input type="submit" value="Create" onclick="publishNewChannel(event)"/>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
{{> footer}}
|
|
</div>
|
|
|
|
<script src="/assets/js/generalFunctions.js"></script>
|
|
<script src="/assets/js/validationFunctions.js"></script>
|
|
<script src="/assets/js/publishChannelFunctions.js"></script>
|