{% extends "base.html" %}
{% load django_bootstrap5 %}
{% load bootstrap_icons %}
{% load i18n %}

{% block title %}{{ title }}{% endblock %}

{% block page_heading %}{{ title }}{% endblock page_heading %}

{% block content %}
<div class="card col-sm-10 offset-1">
    <div class="card-body">
        <form id="create-update" action="" method="post">
            {% csrf_token %}
            {% bootstrap_form user_form layout='horizontal' %}
            {% bootstrap_form attributes_form layout='horizontal' %}
        </form>
        <div class="float-end">
            <a class="btn btn-primary" href="javascript:history.back()">
                {% bs_icon 'x-square-fill' %} {% trans "Cancel" %}</a>
            <button type="submit" form="create-update" class="btn btn-success">
                {% bs_icon 'check2' %} {% trans "Save" %}
            </button>
        </div>
    </div>
</div>
{% endblock content %}