diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-26 17:45:25 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-26 17:45:25 +0100 |
commit | d1b66d30883c9e5fda0c4cace494dec74d7df024 (patch) | |
tree | 02d4b8a244ae2538966ea6384da11edd171de679 /templates/login.html | |
parent | 4270202972ec80ca98a5159e30978378194c1b41 (diff) | |
download | easybridge-d1b66d30883c9e5fda0c4cace494dec74d7df024.tar.gz easybridge-d1b66d30883c9e5fda0c4cace494dec74d7df024.zip |
Stub web interface
Diffstat (limited to 'templates/login.html')
-rw-r--r-- | templates/login.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000..47435ac --- /dev/null +++ b/templates/login.html @@ -0,0 +1,30 @@ +{{define "title"}}{{end}} + +{{define "body"}} +<h4>Log in</h4> + +<div class="alert alert-info"> + Log in using your Matrix credentials on {{ .MatrixDomain }} +</div> + +<form method="POST"> + {{if .WrongPass}} + <div class="alert alert-danger">Wrong password.</div> + {{end}} + {{if .ErrorMessage}} + <div class="alert alert-danger">Unable to log in. + <div style="font-size: 0.8em">{{ .ErrorMessage }}</div> + </div> + {{end}} + <div class="form-group"> + <label for="username">Username:</label> + <input type="text" name="username" id="username" class="form-control" value="{{ .Username }}" /> + </div> + <div class="form-group"> + <label for="password">Password:</label> + <input type="password" name="password" id="password" class="form-control" /> + </div> + <button type="submit" class="btn btn-primary">Log in</button> +</form> + +{{end}} |