{% extends 'base.html' %}

{% block head_title %}
  Edit {{ review.title }}
{% endblock %}

{% load bootstrap %}
{% block body %}
  <div class="page-header">
    <h2>Editing: {{ review.title }}</h2>
  </div>

  <form action="" method="post">
    {% csrf_token %}

    {{ form|bootstrap }}

    <a href="{{ object.get_absolute_url }}" class="btn btn-default">Cancel</a>
    <input type="submit" value="Save Changes" class="btn btn-primary"/>
    <a href="{{ object.get_absolute_url }}/delete" class="btn btn-danger">Delete this review</a>
  </form>
{% endblock %}

{% block extra_head %}
  <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
{% endblock %}

{% block extra_body %}
  <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
{% endblock %}

{% extends 'base.html' %}

{% block head_title %}
  Edit {{ review.title }}
{% endblock %}

{% load bootstrap %}
{% block body %}
  <div class="page-header">
    <h2>Editing: {{ review.title }}</h2>
    <nav>
      <a href="{{ object.get_absolute_url }}" class="btn btn-info">
        <span class="glyphicon glyphicon-arrow-left"></span> Discard changes
      </a>

      <div class="vertical-divider"></div>

      <a href="{{ object.get_absolute_url }}/delete" class="btn btn-danger">Delete this review</a>
    </nav>
  </div>

  <form action="" method="post">
    {% csrf_token %}

    {{ form|bootstrap }}

    <input type="submit" value="Save Changes" class="btn btn-primary"/>
  </form>
{% endblock %}

{% block extra_head %}
  <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
{% endblock %}

{% block extra_body %}
  <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
{% endblock %}

Rearrange buttons on review edit form for consistency
Rearrange buttons on review edit form for consistency
