{% extends "base-apply.html" %} {% load static %} {% block title %}Editing: {{ object.title }}{% endblock %} {% block content %} <div class="admin-bar"> <div class="admin-bar__inner"> <h2 class="heading heading--no-margin">Editing: {{ object.title}}</h2> </div> </div> {% include "forms/includes/form_errors.html" with form=form %} <div class="wrapper wrapper--light-grey-bg wrapper--form wrapper--sidebar"> <div class="wrapper--sidebar--inner"> <form class="form" method="post"> {% csrf_token %} {% for field in form %} {% if field.field %} {% include "forms/includes/field.html" %} {% else %} {{ field }} {% endif %} {% endfor %} <a class="button button--submit button--top-space button--white" href="{{ object.get_absolute_url }}"> Cancel </a> <button class="button button--submit button--top-space button--primary" type="submit"> Save </button> </form> </div> </div> {% endblock %} {% block extra_css %} {{ form.media.css }} {% endblock %} {% block extra_js %} {{ form.media.js }} {% endblock %}