2021-02-23 22:54:08 +01:00
{% extends "base.html" %}
2021-03-15 22:11:10 +01:00
{% block title %}
{% if pl_title %}Editing “{{ pl_title }}”
{% else %}Edit note{% endif %}
- {{ app_name }}
{% endblock %}
2021-08-17 06:30:49 +02:00
{% block meta %}
< meta name = "robots" content = "noindex,nofollow" / >
{% endblock %}
2021-03-15 22:11:10 +01:00
{% block json_info %}< script > window . page _info = { { ( pl _js _info or { } ) | tojson | safe } } ; < / script > {% endblock %}
2021-02-23 22:54:08 +01:00
{% block content %}
{% if preview %}
2022-05-18 02:37:51 +02:00
< article >
< h1 id = "firstHeading" > {{ pl_title }}< / h1 >
< div class = "preview-subtitle" > Preview< / div >
< div class = "preview-area" >
< div class = "preview-warning" >
Remember this is only a preview.
< strong > Your changes were not saved yet!< / strong >
< a href = "#editing-area" > Jump to editing area< / a > < / div >
< div class = "inner-content" > {{ preview|safe }}< / div >
< div style = "clear:both" > < / div >
< / div >
< / article >
2021-02-23 22:54:08 +01:00
{% endif %}
< form method = "POST" >
< div >
2022-05-18 02:37:51 +02:00
< label for = "title" > < span class = "material-icons" > link< / span > /< / label >
< input type = "text" name = "url" class = "url-input" placeholder = "(No URL)" maxlength = "64" value = "{{ pl_url or '' }}" >
2021-02-23 22:54:08 +01:00
< / div >
< div >
< input type = "text" required name = "title" placeholder = "Title (required)" class = "title-input" maxlength = "256" value = "{{ pl_title }}" >
< / div >
< div id = "editing-area" >
< div class = "pre-text-input" >
< p > This editor is using Markdown for text formatting (e.g. bold, italic, headers and tables). < a href = "https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet" rel = "nofollow" > More info on Markdown< / a > .< / p >
< / div >
< div class = "over-text-input" > < / div >
< textarea name = "text" class = "text-input" > {{ pl_text }}< / textarea >
< / div >
< div >
< label for = "tags" > Tags (comma separated):< / label >
< input type = "text" name = "tags" class = "tags-input" placeholder = "No tags" value = "{{ pl_tags }}" >
< / div >
< div >
< input type = "submit" value = "Save" id = "save-button" class = "submit-primary" >
< input type = "submit" name = "preview" value = "Preview" id = "preview-button" class = "submit-secondary" >
< / div >
2022-05-29 17:44:52 +02:00
< h3 > Advanced options< / h3 >
< div >
< input type = "checkbox" id = "CB__enablemath" name = "enablemath" { % if math_version and pl_enablemath % } checked = "" { % elif not math_version % } disabled = "" { % endif % } >
< label for = "CB__enablemath" > Enable math expressions parsing {% if not math_version %}(disabled for this instance){% endif %}< / label >
< / div >
2021-02-23 22:54:08 +01:00
< / form >
{% endblock %}
{% block scripts %}
< script src = "/static/edit.js" > < / script >
2022-05-10 22:35:21 +02:00
< script src = "/static/content.js" > < / script >
2021-02-23 22:54:08 +01:00
{% endblock %}