Make use of new gispatcho
This commit is contained in:
parent
c6975d3814
commit
e6b5ea3921
6 changed files with 22 additions and 59 deletions
|
|
@ -1,11 +1,13 @@
|
|||
{{define "title"}}Edit {{.Title}}{{end}}
|
||||
{{define "title"}}Edit {{.note.Title}}{{end}}
|
||||
|
||||
{{define "main"}}
|
||||
<form action="save/" method="POST">
|
||||
<form action="{{.urlEdit}}" method="POST">
|
||||
<div class="mb-3">
|
||||
<label for="noteBodyInput" class="form-label">Note</label>
|
||||
<div id="toolbar"></div>
|
||||
<textarea class="form-control" id="noteBodyInput" name="body" aria-described-by="bodyHelp">{{printf "%s" .Body}}</textarea>
|
||||
<div class="border rounded rounded-1">
|
||||
<div id="toolbar"></div>
|
||||
<textarea class="form-control" id="noteBodyInput" name="body" aria-described-by="bodyHelp">{{.noteBody}}</textarea>
|
||||
</div>
|
||||
<div id="bodyHelp" class="form-text">Enter your note content in markdown</div>
|
||||
</div>
|
||||
<button class="btn btn-primary" type="submit">Save</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue