Public archive for the Return to Ritherdon project.
https://www.nicolaellisandritherdon.com
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.1 KiB
51 lines
2.1 KiB
{% 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> |
|
|
|
<img alt="{{db-data.title}}" src="/storage/thumb/archive/{{db-data.slug}}"> |
|
<form action="/edit/archive-thumbnail" method="post" enctype="multipart/form-data"> |
|
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
|
<input required type="hidden" name="ARCHIVE-SLUG" value="{{db-data.slug}}"> |
|
<input type="file" name="THUMBNAIL-FILE"> |
|
<input type="submit" value="Change Thumbnail"> |
|
</form> |
|
|
|
<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> |
|
|
|
<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 %}
|
|
|