diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-01 14:46:15 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-01 14:46:15 -0400 |
commit | c7eea383aeaf6748daf994e9e28e4d0c25350736 (patch) | |
tree | a0979cbd4e6be06385fd0340e050147fdacd6e35 /got/edit.got |
initial commit
Diffstat (limited to 'got/edit.got')
-rw-r--r-- | got/edit.got | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/got/edit.got b/got/edit.got new file mode 100644 index 0000000..3fcdd23 --- /dev/null +++ b/got/edit.got @@ -0,0 +1,16 @@ +<!-- -*- Mode: HTML -*- --> +<h1>{{.path | html}}</h1> +<p>Content-Type: {{.ctype | html}}</p> +<form method="POST" enctype="multipart/form-data"> + <input type="hidden" name="_method" value="PUT"> + <input type="hidden" name="_xsrf_token" value="{{.xsrf_token | html}}"> + <textarea name="_body">{{.content | html }}</textarea> + <input type="submit" value="Save"> +</form> +<form method="POST" enctype="multipart/form-data"> + <input type="hidden" name="_method" value="PUT"> + <input type="hidden" name="_xsrf_token" value="{{.xsrf_token | html}}"> + <p>Instead of editing this in your browser, you can just upload a new copy.</p> + <input type="file" name="_body" required=required> + <input type="submit" value="Upload"> +</form> |