{% extends 'admin/change_form.html' %}

{% load i18n jazzmin %}
{% get_jazzmin_settings request as jazzmin_settings %}
{% get_jazzmin_ui_tweaks as jazzmin_ui %}

{% block submit_buttons_bottom %}
    {{ block.super }}
    {% if change or add %}
        {% if original.bEnabled or add %}
            <div class="submit-row" style="margin-top: 1rem">
                   <div class="form-group">
                    <input type="submit" class="btn btn-secondary form-control" value="{% trans 'Enregister en brouillon' %}" name="_temp_save">
                </div>
            </div>
        {% else %}
             <div class="submit-row" style="margin-top: 1rem">
               <div class="form-group">
                <input type="submit" class="btn btn-success  form-control" value="{% trans 'Publier' %}" name="_publish_save">
            </div>
        </div>
        {% endif %}
    {% endif %}
{% endblock %}