Move warnings to the bottom of page
alex wennerberg alex@alexwennerberg.com
Sun, 24 Jan 2021 22:40:15 -0800
1 files changed,
7 insertions(+),
7 deletions(-)
jump to
M
templates/edit_file.html
→
templates/edit_file.html
@@ -3,13 +3,6 @@ <h2>Editing <a href="//{{.AuthUser.Username}}.{{.Host}}/{{.FileName}}">{{.FileName}}</a></h2>
<form id="edit-form" action="/edit/{{.FileName}}" method="POST"> <label for="rename">Rename:</label> <input type="text" value="{{.FileName}}" id="rename" name="rename"> - <div class="warning"> - <p> - {{ range .Warnings }} - </p> - {{ . }} - {{ end }} - </div> {{ if .IsText }} {{ if .IsGemini }} <p>@@ -27,6 +20,13 @@ <br>
<input type="submit" value="Save file" class="button"> <a href="/my_site">Back</a> <script type="text/javascript">window.setTimeout("document.getElementById('save-message').style.display='none';", 2000); </script> + <div class="warning"> + <p> + {{ range .Warnings }} + </p> + {{ . }} + {{ end }} + </div> <div id="save-message" class="alert">{{.Alert}}</div> </form> {{template "footer" .}}