Source

superwiki / superwiki / templates / wiki / edit.html

{% extends "wiki/layout.html" %}
{% load wiki_extra %}

{% block wiki_head %}
  edit "{% if page.title %}{{ page.title }}{% else %}{{ page.url }}{% endif %}"
{% endblock %}

{% block wiki_toolbar %}
{% endblock %}

{% block wiki_content %}
  {% include "wiki/editor_start.html" %}
  <form method="post" class="wiki-edit">
    {{ frm.as_p }}
    <input type="submit" class="hide" value="create" />
    <a href="#submit" class="button positive" onclick="$(this).parent().submit(); return false;">Save</a>
    <a href="{% wiki_reverse bind page.url %}" class="button negative" onclick="if (! confirm('All changes will be lost!')) return false;">Cancel</a>
  </form>
{% endblock %}