{% extends "wiki/base.html" %}
{% load i18n %}

{% block contents %}
    <h3><a href="{{ wiki.get_absolute_url }}">{{ wiki }}</a></h3>
    {% include "wiki/navigation.html" %}
    <h1>{% if create %}Create new {{ wiki }} wiki page{% if name %} '{{ name }}'{% endif %}{% else %}Edit wiki page '<a href="{{ page.get_absolute_url }}">{{ name }}</a>'{% endif %}</h1>

    <form action="" method="POST">
      <fieldset>
	<legend>{{ wiki }} wiki page</legend>
	<table>
	  {{ form }}
	  {{ content_form }}
	</table>

	<p class="buttons">
	  <button type="submit" class="button positive">
	    {% if create %}Create{% else %}Save{% endif %}
	  </button>
	</p>
      </fieldset>
    </form>

    {% include "wiki/infobox.html" %}
{% endblock contents %}
