all repos — flounder @ 7c81f713a773d2463dc971fcb7981abfaf3ad08f

A small site builder for the Gemini protocol

templates/edit_file.html (view raw)

 1{{template "header" .}}
 2<h2>Editing <a href="//{{.AuthUser}}.{{.Host}}/{{.FileName}}">{{.FileName}}</a></h2>
 3<form id="edit-form" action="/edit/{{.FileName}}" method="POST">
 4 <label for="rename">Rename:</label>
 5   <input type="text" value="{{.FileName}}" id="rename" name="rename">
 6  <textarea rows="25" name="file_text" id="editor">{{.FileText}}</textarea>
 7  <br>
 8  <input type="submit" value="Save file" class="button">
 9</form>
10{{template "footer" .}}