Browse Source
I still need to add a section for managing the archive entries thumbnail but the basics are in place.stable
Craig Oates
2 years ago
1 changed files with 45 additions and 0 deletions
@ -0,0 +1,45 @@
|
||||
{% extends "layouts/default.html" %} |
||||
{% block title %}Edit: {{db-data.title}}{% endblock %} |
||||
{% block content %} |
||||
<h1>Edit Archive</h1> |
||||
|
||||
<script src="/js/tinymce/tinymce.min.js" referrerpolicy="origin"></script> |
||||
|
||||
<script> |
||||
tinymce.init({ |
||||
selector: '#mytextarea', |
||||
plugins: [ |
||||
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', |
||||
'emoticons', 'preview', 'anchor', 'searchreplace', 'visualblocks', |
||||
'fullscreen', 'insertdatetime', 'media', 'save', 'table', 'help', |
||||
'visualchars', 'wordcount', 'quickbars', 'pagebreak', 'nonbreaking', |
||||
'importcss', 'directionality', 'codesample', 'code', 'autosave', |
||||
'autoresize' |
||||
], |
||||
toolbar: 'undo redo | save | formatpainter casechange blocks | bold italic backcolor | ' + |
||||
'alignleft aligncenter alignright alignjustify | ' + |
||||
'bullist numlist checklist outdent indent | removeformat | a11ycheck code table help' |
||||
}); |
||||
</script> |
||||
|
||||
<form action="/rename/archive-entry" method="post"> |
||||
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
||||
<input required type="hidden" name="ID" value="{{db-data.id}}"> |
||||
<input required type="hidden" name="SLUG" value="{{db-data.slug}}"> |
||||
<label>Title</label> |
||||
<input required type="text" name="NEW-TITLE" value="{{db-data.title}}"> |
||||
<input type="submit" value="Rename Entry"> |
||||
</form> |
||||
|
||||
<h3>TODO: Add thumbnail section</h3> |
||||
|
||||
<form action="/edit/archive" method="post"> |
||||
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
||||
<input required type="hidden" name="slug" value="{{db-data.slug}}"> |
||||
<textarea name="PAGE-CONTENT" id="mytextarea" |
||||
placeholder="Enter page content..."> |
||||
{{data}} |
||||
</textarea> |
||||
<!-- <input type="submit" value="Save Page"> --> |
||||
</form> |
||||
{% endblock %} |
Loading…
Reference in new issue