diff options
author | Arun Isaac | 2023-12-29 18:55:37 +0000 |
---|---|---|
committer | Arun Isaac | 2023-12-29 19:01:46 +0000 |
commit | 204a308be0f741726b9a620d88fbc22b22124c81 (patch) | |
tree | b3cf66906674020b530c844c2bb4982c8a0e2d39 /gn2/wqflask/templates/docedit.html | |
parent | 83062c75442160427b50420161bfcae2c5c34c84 (diff) | |
download | genenetwork2-204a308be0f741726b9a620d88fbc22b22124c81.tar.gz |
Namespace all modules under gn2.
We move all modules under a gn2 directory. This is important for
"correct" packaging and deployment as a Guix service.
Diffstat (limited to 'gn2/wqflask/templates/docedit.html')
-rw-r--r-- | gn2/wqflask/templates/docedit.html | 31 |
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 %} |