{% extends "layout.html" %} {% block scripts %} {% endblock %} {% block body %}
{{ _('admin') }}

{{ _('inventory') }}

{{ _('status') }}

    {{ macros.render_admin_add_item(_('add_status'), '#') }} {% for field in entry_status_types %} {{ macros.render_admin_simple_item(field) }} {% endfor %}

{{ _('documentation') }}

    {{ macros.render_admin_add_item(_('add_documentation'), '#') }} {% for field in entry_documentation_types %} {{ macros.render_admin_simple_item(field) }} {% endfor %}

{{ _('use_type') }}

    {{ macros.render_admin_add_item(_('add_use'), '#') }} {% for field in entry_use_types %} {{ macros.render_admin_simple_item(field) }} {% endfor %}

{{ _('fields') }}

    {{ macros.render_admin_add_item(_('add_field'), '#') }} {% for field in entry_fields %} {{ macros.render_admin_simple_item(field) }} {% endfor %}

{{ _('user_types') }}

{{ _('users') }}

{{ _('categories') }}

{{ macros.render_categories( categories, parent=none, parent_class='admin-categories nav nav-tree nav-tree-top', children_class='admin-category nav nav-tree', anchor_class='collapse-anchor', category_class=none, collapsed_class='collapsed', anchor=false, edit=true, new=true, no_category=True) }}

{{ _('notifications') }}

{{ notifications.csrf_token }} {{ macros.render_admin_notification( _('login'), notifications.login_message(class_='form-control vresize', rows=2)) }} {{ macros.render_admin_notification( _('inventory'), notifications.home_message(class_='form-control vresize', rows=2)) }} {{ macros.render_admin_notification( _('new_edit_entry'), notifications.new_entry_message(class_='form-control vresize', rows=2)) }}

{{ _('backup') }}

{{ _('updates') }}

{% endblock %} {% block modals %} {% if updates != None %} {{ macros.begin_render_modal('admin-updates-modal', _('updates'), 'admin-modal', closable=false, opened=true) }} {% if updates != 0 %}

{{ updates }} {{ _('updates_pending') }}

{{ _('update_warning') }}

{% else %}

{{ _('no_updates') }}

{% endif %} {% if updates != 0 %} {{ macros.end_render_modal(form='admin_update', buttons=( {'text': _('cancel'), 'href': 'admin'}, {'text': _('accept'), 'submit': true, 'class_': 'btn-danger'})) }} {% else %} {{ macros.end_render_modal(buttons=({'text': 'Cerrar', 'href': 'admin'},)) }} {% endif %} {% endif %} {{ macros.begin_render_modal('admin-entry-status-types-warning-delete-modal', _('warning'), 'admin-modal') }} {{ _('admin_delete_element_warning') }} {{ macros.end_render_modal(form='admin_entry_status_delete', hidden=['id'], buttons=( {'text': _('cancel'), 'cancel': true}, {'text': _('accept'), 'submit': true})) }} {{ macros.begin_render_modal('admin-entry-documentation-types-warning-delete-modal', _('warning'), 'admin-modal') }} {{ _('admin_delete_element_warning') }} {{ macros.end_render_modal(form='admin_entry_documentation_delete', hidden=['id'], buttons=( {'text': _('cancel'), 'cancel': true}, {'text': _('accept'), 'submit': true})) }} {{ macros.begin_render_modal('admin-entry-use-types-warning-delete-modal', _('warning'), 'admin-modal') }} {{ _('admin_delete_element_warning') }} {{ macros.end_render_modal(form='admin_entry_use_delete', hidden=['id'], buttons=( {'text': _('cancel'), 'cancel': true}, {'text': _('accept'), 'submit': true})) }} {{ macros.begin_render_modal('admin-entry-fields-warning-delete-modal', _('warning'), 'admin-modal') }} {{ _('admin_delete_element_warning') }} {{ macros.end_render_modal(form='admin_entry_field_delete', hidden=['id'], buttons=( {'text': _('cancel'), 'cancel': true}, {'text': _('accept'), 'submit': true})) }} {{ macros.begin_render_modal('admin-user-types-warning-delete-modal', _('warning'), 'admin-modal') }} {{ _('admin_delete_element_warning') }} {{ macros.end_render_modal(form='admin_user_type_delete', hidden=['id'], buttons=( {'text': _('cancel'), 'cancel': true}, {'text': _('accept'), 'submit': true})) }} {{ macros.begin_render_modal('admin-categories-edit-modal', _('edit_category'), 'admin-modal') }}

{{ _('fields') }}

{{ macros.end_render_modal(buttons=( {'text': _('delete_category'), 'id': 'admin-categories-delete', 'class_': 'btn-danger'}, {'text': _('cancel'), 'cancel': true}, {'text': _('accept'), 'id': 'admin-categories-edit-submit'})) }} {{ macros.begin_render_modal('admin-categories-warning-delete-modal', _('warning'), 'admin-modal') }} {{ _('category_delete_warning') }} {{ macros.end_render_modal(form='admin_category_delete', hidden=['id'], buttons=( {'text': _('cancel'), 'cancel': true}, {'text': _('accept'), 'submit': true})) }} {% endblock %}