{% extends 'base.html' %}
{% from 'macros.html' import form_field %}

{% block content %}
<h1>New Article</h1>
<form method="post">
  {{ form.csrf_token }}
  {{ form_field(form.title) }}
  {{ form_field(form.body) }}
  {{ form.submit }}
</form>
{% endblock %}

{% block scripts %}
{{ super() }}
{{ ckeditor.load() }}
{{ ckeditor.config(name='body') }}
{% endblock %}
