diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-10-30 13:41:25 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-10-30 13:41:25 -0400 |
commit | 417d9bbd646248daebde2ab0ccc2fcbcb8911426 (patch) | |
tree | ab3934a3809613f9ed411ca5ba67293e64796f67 /themes | |
parent | 2bef9425fb249b015f6046b71f1d26cceda279d1 (diff) | |
download | alps-417d9bbd646248daebde2ab0ccc2fcbcb8911426.tar.gz alps-417d9bbd646248daebde2ab0ccc2fcbcb8911426.zip |
Implement folder creation UI
Diffstat (limited to 'themes')
-rw-r--r-- | themes/alps/new-mailbox.html | 23 | ||||
-rw-r--r-- | themes/alps/util.html | 5 |
2 files changed, 27 insertions, 1 deletions
diff --git a/themes/alps/new-mailbox.html b/themes/alps/new-mailbox.html new file mode 100644 index 0000000..d202783 --- /dev/null +++ b/themes/alps/new-mailbox.html @@ -0,0 +1,23 @@ +{{template "head.html" .}} +{{template "nav.html" .}} +{{template "util.html" .}} + +<div class="page-wrap"> + {{ template "aside" . }} + <div class="container"> + <main class="create-update"> + <form method="POST"> + <h2>Create new folder</h2> + <label for="name">Name</label> + <input type="text" name="name" id="name" autofocus /> + {{ if .Error }}<p>{{ .Error }}</p>{{ end }} + <div class="actions"> + <button type="submit">Save</button> + <a class="button-link" href="/">Cancel</a> + </div> + </form> + </main> + </div> +</div> + +{{template "foot.html"}} diff --git a/themes/alps/util.html b/themes/alps/util.html index 89e5cac..5ee456a 100644 --- a/themes/alps/util.html +++ b/themes/alps/util.html @@ -26,7 +26,7 @@ <!-- the logo image, dimensions 200x32 may be present or not --> <a href="/compose" class="new {{ if eq $.GlobalData.URL.Path "/compose" }}active{{ end }} - ">Compose Mail</a> + ">Compose mail</a> {{ with .CategorizedMailboxes }} {{ with .Common.Inbox }}{{ template "mbox-link" . }}{{ end}} {{ with .Common.Drafts }}{{ template "mbox-link" . }}{{ end}} @@ -42,5 +42,8 @@ {{ end }} {{ end }} {{ end }} + <a href="/new-mailbox" class="new + {{ if eq $.GlobalData.URL.Path "/new-mailbox" }}active{{ end }} + ">Create new folder</a> </aside> {{ end }} |