{% extends 'base.html' %} {% block content %}

{% if form.instance.pk %} ✏️ تعديل المقال {% else %} ✍️ كتابة مقال جديد {% endif %}

{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{{ form.title }} {% if form.title.errors %} {% endif %}
{{ form.content }} {% if form.content.errors %} {% endif %}
إلغاء
{% endblock %}