{% extends "layout.html" %} {% block content_header %} {{ build_breadcrumbs(current_breadcrumbs + [ { 'name': _('Devices'), 'link': url_for('.DeviceView:index'), 'icon': 'phone-square' } ]) }} {% endblock %} {% block content %}
{% call build_list_containers(_('Devices'), 'phone-square') %} {% call build_form_tabs_box() %} {% call build_tabs_navigation() %} {{ add_tab_navigation_item('all', _('All'), active=True) }} {{ add_tab_navigation_item('unallocated', _('Unallocated')) }} {% endcall %} {% call build_tabs_content() %} {% call build_tab_content_item('all', active=True) %} {% call build_list_table('all', id='all') %} {% call build_list_table_headers(get=url_for('.DeviceView:get', id=''), delete=url_for('.DeviceView:delete', id='')) %} {{ _('IP') }} {{ _('MAC') }} {{ _('Model') }} {{ _('Plugin') }} {{ _('Vendor') }} {{ _('Version') }} {% endcall %} {% call(device) build_list_table_rows(resource_list['all']['items']) %} {% if device.status == 'configured' %} {% elif device.status == 'autoprov' %} {% elif device.status == 'not_configured' %} {% else %} - {% endif %} {{ device.ip or '-' }} {{ device.mac or '-' }} {{ device.model or '-' }} {{ device.plugin or '-' }} {{ device.vendor or '-' }} {{ device.version or '-' }} {% endcall %} {% endcall %} {% endcall %} {% call build_tab_content_item('unallocated') %} {% call build_list_table('unallocated', id='unallocated') %} {% call build_list_table_headers(actions_column=false) %} {{ _('IP') }} {{ _('MAC') }} {{ _('Model') }} {{ _('Plugin') }} {{ _('Vendor') }} {{ _('Version') }} {% endcall %} {% call(device) build_list_table_rows(resource_list['unallocated']['items']) %} {% if device.status == 'configured' %} {% elif device.status == 'autoprov' %} {% elif device.status == 'not_configured' %} {% else %} - {% endif %} {{ device.ip or '-' }} {{ device.mac or '-' }} {{ device.model or '-' }} {{ device.plugin or '-' }} {{ device.vendor or '-' }} {{ device.version or '-' }} {{ _('Take') }} {% endcall %} {% endcall %} {% endcall %} {% endcall %} {{ _('Status') }}: ( {{ _('Configured') }}) ( {{ _('Autoprov') }}) ( {{ _('Not configured') }}) {% endcall %} {% endcall %} {% call build_hidden_add_containers(_('Add Device'), 'all-add-form') %} {% call build_form() %} {% call add_default_fields(form=form, submit_value=_('Add')) %} {{ render_field(form.ip) }} {{ render_field(form.mac) }} {{ render_field(form.options.switchboard) }} {{ render_field(form.description) }} {% endcall %} {% endcall %} {% endcall %}
{% endblock %} {% block additional_js %} {% endblock %}