aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/docedit.html
diff options
context:
space:
mode:
authorAlexander_Kabui2024-01-02 13:21:07 +0300
committerAlexander_Kabui2024-01-02 13:21:07 +0300
commit70c4201b332e0e2c0d958428086512f291469b87 (patch)
treeaea4fac8782c110fc233c589c3f0f7bd34bada6c /gn2/wqflask/templates/docedit.html
parent5092eb42f062b1695c4e39619f0bd74a876cfac2 (diff)
parent965ce5114d585624d5edb082c710b83d83a3be40 (diff)
downloadgenenetwork2-70c4201b332e0e2c0d958428086512f291469b87.tar.gz
merge changes
Diffstat (limited to 'gn2/wqflask/templates/docedit.html')
-rw-r--r--gn2/wqflask/templates/docedit.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/docedit.html b/gn2/wqflask/templates/docedit.html
new file mode 100644
index 00000000..50bb96c0
--- /dev/null
+++ b/gn2/wqflask/templates/docedit.html
@@ -0,0 +1,31 @@
+{% extends "base.html" %}
+
+{% block title %}Edit: {{title}}{% endblock %}
+
+{% block content %}
+<div class="container">
+ <h3>Edit: {{title}}</h3>
+ <form id="update_text" action="/update_text" method="post">
+ <input type="hidden" name="entry_type" value="{{ entry }}">
+ <input type="hidden" name="title" value="{{ title }}">
+ {% if editable is defined %}
+ <input type="hidden" name="edit" value="{{ editable }}">
+ {% endif %}
+ <button class="submit_changes" style="margin-bottom: 20px;">Submit Changes</button>
+ <textarea name="ckcontent" id="ckcontent">
+ {{content|safe}}
+ </textarea>
+ <button class="submit_changes" style="margin-top: 20px;">Submit Changes</button>
+ <script language="javascript" type="text/javascript" src="{{ url_for('js', filename='ckeditor/ckeditor.js') }}"></script>
+ <script type="text/javascript">
+ CKEDITOR.replace('ckcontent', {
+ height: '650px',
+ });
+
+ $('.submit_changes').click(function() {
+ $('#update_text').submit();
+ })
+ </script>
+ </form>
+</div>
+{% endblock %}