summaryrefslogtreecommitdiff
path: root/templates/change_ssh.html
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2018-06-08 08:01:06 +0200
committerMarkus Krogh <markus@nordu.net>2018-06-08 08:01:06 +0200
commitfc2455cdbf8c64c98a8f7104ae7e7acdcff1337c (patch)
treea80e94c6bbe7fbd768379dd940a269ae0920e744 /templates/change_ssh.html
parent16fe3880782e38a1adaa157f26b788049bcc3205 (diff)
Go impl of pwman, first draft
Diffstat (limited to 'templates/change_ssh.html')
-rw-r--r--templates/change_ssh.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/change_ssh.html b/templates/change_ssh.html
new file mode 100644
index 0000000..96231a7
--- /dev/null
+++ b/templates/change_ssh.html
@@ -0,0 +1,32 @@
+
+{{ define "content" }}
+<div class="column">
+ <h2>Your existing SSH keys</h2>
+ <ul class="unstyled">
+ {{ $csrf := .CsrfField }}
+ {{ range .SSHKeys }}
+ <li class="sshkey">
+ <form method="post" action="">
+ <span class="sshfingerprint">{{ .Fingerprint }} {{ .Comment }}</span>
+ {{ $csrf }}
+ <input type="hidden" name="sshkey" value="{{ . }}">
+ <input type="submit" name="delete" value="&#x274C;" class="btn-delete">
+ </form>
+ <label for="show_full_{{.KeyEnd}}" class="keyend" title="Click for full key">Key ends in: {{ .KeyEnd }}</label>
+ <input id="show_full_{{.KeyEnd}}" type="radio" name="showfull" value="full" class="hidden">
+ <label class="fullkey">{{ . }} <input type="radio" name="showfull" value="end" class="hidden"></label>
+ </li>
+ {{ end }}
+ </ul>
+</div>
+<form method="post" autocomplete="off" class="column">
+ {{ $csrf }}
+ <p>Paste your SSH public keys (one key per line):</p>
+ <textarea name="ssh_keys"></textarea>
+ <input name="add_key" type="submit" class="form-element form-button" />
+</form>
+
+<div class="column full">
+ <a href=".">Back</a>
+</div>
+{{ end }}