content-edit.html 543 B

12345678910111213141516171819
  1. {{ template "header" }}
  2. <main>
  3. <form action="/admin/save/{{.Path}}" method="POST">
  4. <h1>{{.Metadata.title}}</h1>
  5. <ul>
  6. {{range $key, $value := .Metadata}}
  7. <li><label for="{{$key}}">{{$key}}</label> <input type="text" name="fm.{{$key}}" value="{{$value}}" /></li>
  8. {{end}}
  9. </ul>
  10. <div><textarea name="body" style="width:800px;height:400px;">{{.Body}}</textarea></div>
  11. <div><input type="submit" value="Save"></div>
  12. </form>
  13. </main>
  14. {{ template "footer" }}