article_form.html 1.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
{% extends "base.html" %}
{% load static %}
{% load crispy_forms_tags %}
{% load crispy_forms_field %}


{% block content-banner %}
{% endblock %}

{% block content %}
<div class="row">
<div class="col-md-12 white-bg">
  <div class="well">

  <form class="" action="#" method="post">

    <div class="d-flex justify-content-start align-items-baseline mb-4">
      <p class="lead">
        <a class="btn btn-outline-primary" href="{{request.META.HTTP_REFERER}}"><i class="fa fa-chevron-left" aria-hidden="true"></i> Go back</a>
        <span class="ml-2"><strong>Article ID #{{object.id}}</strong> – proposé par XXX</span></span>
      </p>
      <div class="ml-auto">
        <span>Save and&nbsp;</span>
        <span class="btn-group" role="group" aria-label="Actions">
          <input type="submit" class="btn btn-outline-primary" name="preview" value="Prévisualiser">
          <input type="submit" class="btn btn-outline-warning" name="publish" value="Publier">
        </span>
      </div>
    </div>

    {% crispy form %}
  </form>

</div>
</div>
{% endblock %}