{% extends "base.html" %} {#- Edit a project document, whole or one section. Expects: project, doc, section (anchor or None), text (the textarea), base_version (the version the save starts from), reason, optional error, note and current (the current text after a conflict, read together with base_version, shown to merge). A plain form post (cookie + CSRF). -#} {% block title %}Edit {{ doc.title }} · {{ project.name }} · relaybay{% endblock %} {% block crumbs %}/{{ project.name }}/Docs & rules/{{ doc.slug }}/edit{% endblock %} {% block content %}

Edit {{ doc.title }}{% if section %} · #{{ section }}{% endif %}

Cancel
{% if error %}{% endif %} {% if note %}

{{ note }}

{% endif %} {% if current is not none %}

Current {{ "section" if section else "text" }}, version {{ base_version }}

Someone saved a newer version while you were editing. Your text is kept below: merge the current one into it and save again.

{{ current }}
{% endif %}
{% if section %}{% endif %}
{% endblock %}