Clean up editor a bit

This commit is contained in:
Tim Van Baak 2020-05-01 00:08:21 -07:00
parent 3386733d77
commit b8239c0bc4
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@
</a> </a>
{# If article is not finalized, show button to submit and retract #} {# If article is not finalized, show button to submit and retract #}
{% if article and not article.status.approved %} {% if article and not article.status.approved %}
<button id="button-submit" onclick="submitArticle()">Submit article</button> <button id="button-submit" onclick="submitArticle()" disabled>Submit article</button>
{% endif %} {% endif %}
{# Header always includes character/player info #} {# Header always includes character/player info #}
<span> <span>
@ -90,14 +90,14 @@
{# In edit mode, `article` is specified and `characters` is #} {# In edit mode, `article` is specified and `characters` is #}
{# not, and the editor pane contains the article editor. #} {# not, and the editor pane contains the article editor. #}
{% if article %} {% if article %}
<div id="editor-buttons"> {# <div id="editor-buttons">
Character literals: Character literals:
<button>*</button> <button>*</button>
<button>/</button> <button>/</button>
<button>[</button> <button>[</button>
<button>]</button> <button>]</button>
<button>~</button> <button>~</button>
</div> </div> #}
<input id="editor-title" placeholder="Title" oninput="onContentChange()" disabled value="{{ article.title }}"> <input id="editor-title" placeholder="Title" oninput="onContentChange()" disabled value="{{ article.title }}">
<textarea id="editor-content" class="fullwidth" oninput="onContentChange()" disabled> <textarea id="editor-content" class="fullwidth" oninput="onContentChange()" disabled>
{# #}{{ article.contents }}{# {# #}{{ article.contents }}{#