{% extends 'base.html' %}
{% load i18n %}
{% load bootstrap %}

{% block title %}
{% if object.title %}{{ object.title }}{% else %}{% trans 'New post' %}{% endif %}
{% endblock %}

{% block body %}
<form role="form" method="POST">
    <legend>{% if object.title %}{{ object.title }}{% else %}{% trans 'New post' %}{% endif %}</legend>
    {% csrf_token %}
    {{ form|bootstrap }}
    <div class="form-group">
      <button type="submit" class="btn btn-primary">{% trans 'Save' %}</button>
    </div>
</form>
{% endblock %}
