diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-15 00:32:39 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-15 00:32:39 +0800 |
commit | d5416d850c9b697bc8fb189841e1c1e622494f5e (patch) | |
tree | b877df54a6fbef112b0d32796f514b66177c9976 /templates/login.tmpl | |
parent | Makefile, resources.go: Add vendor directory to serve library source (diff) | |
download | forge-d5416d850c9b697bc8fb189841e1c1e622494f5e.tar.gz forge-d5416d850c9b697bc8fb189841e1c1e622494f5e.tar.zst forge-d5416d850c9b697bc8fb189841e1c1e622494f5e.zip |
templates: *.html.tmpl -> *.tmpl
Diffstat (limited to 'templates/login.tmpl')
-rw-r--r-- | templates/login.tmpl | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/templates/login.tmpl b/templates/login.tmpl new file mode 100644 index 0000000..3b0e74a --- /dev/null +++ b/templates/login.tmpl @@ -0,0 +1,55 @@ +{{- define "login" -}} +<!DOCTYPE html> +<html lang="en"> + <head> + {{ template "head_common" . }} + <title>Login – {{ .global.forge_title }}</title> + </head> + <body class="index"> + {{ .login_error }} + <div class="padding-wrapper"> + <form method="POST" enctype="application/x-www-form-urlencoded"> + <table> + <thead> + <tr> + <th class="title-row" colspan="2"> + Password authentication + </th> + </tr> + </thead> + <tbody> + <tr> + <th scope="row">Username</th> + <td class="tdinput"> + <input id="usernameinput" name="username" type="text" /> + </td> + </tr> + <tr> + <th scope="row">Password</th> + <td class="tdinput"> + <input id="passwordinput" name="password" type="password" /> + </td> + </tr> + </tbody> + <tfoot> + <tr> + <td class="th-like" colspan="2"> + <div class="flex-justify"> + <div class="left"> + </div> + <div class="right"> + <input class="btn-primary" type="submit" value="Submit" /> + </div> + </div> + </td> + </tr> + </tfoot> + </table> + </form> + </div> + <footer> + {{ template "footer" . }} + </footer> + </body> +</html> +{{- end -}} |