diff options
| author | ivar <i@oiee.no> | 2026-04-23 22:54:31 +0200 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2026-04-23 22:54:31 +0200 |
| commit | 4817e77682fb05288496a6e2db6b1e1c9260aba9 (patch) | |
| tree | e001e1d1ef15cc2e7f3380992f150112686dcf53 /templates | |
| parent | 7f40b470a7d42a7674cc74309b210a968291ca23 (diff) | |
| download | iblog-master.tar.xz iblog-master.zip | |
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/admin/form.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/admin/form.html b/templates/admin/form.html index 133951f..852690d 100644 --- a/templates/admin/form.html +++ b/templates/admin/form.html @@ -18,17 +18,17 @@ <input type="checkbox" id="draft" name="draft" {{if .Post.Draft}} checked{{end}}> Draft (not published) </label> - <button type="submit" class="btn btn-primary"> + <button type="submit"> {{if .IsNew}}Create Post{{else}}Save Changes{{end}} </button> <a href="/admin/" class="btn btn-secondary">Cancel</a> - <div id="editor" style="border: 1px solid #ccc; border-radius: 4px; min-height: 340px;"></div> + <div id="editor"></div> <input type="hidden" id="blocks" name="blocks" value="{{.Post.Blocks}}"> </form> <script type="module"> - import { EditorJS, Header, Paragraph, List, Code, Quote, ImageTool } from 'editorjs-bundle' + import { Code, EditorJS, Header, ImageTool, List, Paragraph, Quote } from 'editorjs-bundle' + import { on, qs } from 'shared' import ComponentTool from '/assets/admin/lib/component-tool.js' - import { qs, on } from 'shared' const blocksField = qs('#blocks') const form = qs('#postForm') |
