{% import "components/form.html" as form with context %} {% extends "layout/basic.html" %} {% block content %}
{{ form.form_text({ columns:6, label:'Title', name:'title', placeholder:_('title'), value:adoc.title|default(''), autofocus:true, row:false }) }} {{ form.form_checkbox({ columns:2, label:'Hidden', name:'hidden', placeholder:_('Is hidden'), value:adoc.hidden|default(false), row:false }) }} {{ form.form_checkbox({ columns:2, label:'Highlight', name:'highlight', placeholder:_('Is highlight'), value:adoc.highlight|default(false), row:false }) }} {{ form.form_text({ columns:2, label:'Pin', name:'pin', placeholder:_('pin'), value:adoc.pin|default(0), row:false }) }}
{{ form.form_textarea({ columns:12, label:'Content', name:'content', value:adoc.content|default(''), markdown:true, required:true, extra_style:'height: 500px', extra_textarea_class:'auto-resize' }) }}
{% if adoc and handler.user.hasPerm(perm.PERM_EDIT_DOMAIN) %} {% endif %}
{% endblock %}