tabs and draft working
This commit is contained in:
parent
14ec6b7e7a
commit
9feccf9eaa
@ -29,9 +29,11 @@
|
||||
</footer>
|
||||
|
||||
{% if editor == 'ace' %}
|
||||
{% include '@novaconium/javascript/ace.html.twig' %}
|
||||
{% include '@novaconium/javascript/page-edit.html.twig' %}
|
||||
{% include '@novaconium/javascript/ace.html.twig' %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if debug is not empty %}
|
||||
<div id="debug">
|
||||
<h2>Debugging Information</h2>
|
||||
|
||||
@ -3,8 +3,3 @@
|
||||
right before the /body
|
||||
such as javascript
|
||||
-->
|
||||
{% include '@novaconium/javascript/page-edit.html.twig' %}
|
||||
|
||||
{% if editor == 'ace' %}
|
||||
{% include '@novaconium/javascript/ace.html.twig' %}
|
||||
{% endif %}
|
||||
|
||||
@ -13,4 +13,17 @@
|
||||
<textarea id="body" name="body" rows="10" style="display: none;">{{ rows.body|default('')|e('html') }}</textarea>
|
||||
<div id="body-editor" class="ace-editor"></div> {# Ace mounts here #}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="draft">
|
||||
<input
|
||||
type="checkbox"
|
||||
id="draft"
|
||||
name="draft"
|
||||
value="1"
|
||||
{% if rows.draft|default(false) %}checked{% endif %}
|
||||
>
|
||||
Save as draft
|
||||
</label>
|
||||
</div>
|
||||
Loading…
x
Reference in New Issue
Block a user