{% extends 'adminlte_full/base.html' %}
{% import "adminlte_full/macros/widgets.html" as widgets %}

{% block head %}
  {{ super() }}
  <base href="{{ adminlte.create_url(config.ADMINLTE_MENU_ROOT_ENDPOINT) }}">
{% endblock %}

{% block page_title %}{{ adminlte.gettext('Edit menu') }}{% endblock %}

{% block breadcrumbs %}
  {{ super() }}
  {{ bootstrap.breadcrumb(title=adminlte.gettext('Menu Dashboard'), url=adminlte.create_url(config.ADMINLTE_MENU_ROOT_ENDPOINT)) }}
  {{ bootstrap.breadcrumb(title=menu, url=menu.id) }}
  {{ bootstrap.breadcrumb(title=adminlte.gettext('Edit menu'), is_active=true) }}
{% endblock %}

{% block page_content %}
  <div class="row">
    <div class="col-12">
      {% with title=adminlte.gettext('Edit menu'), cancel=menu.id %}
        {% include 'adminlte_full/menus/menu_form.html' %}
      {% endwith %}
    </div>
  </div>
{% endblock %}