{% extends "layout.html" %}

{% block content_header %}
  {{ build_breadcrumbs(current_breadcrumbs + [
    { 'name': resource.host, 'link': url_for('.AccessFeatureView:get', id=resource.id), 'icon': 'random' }
  ]) }}
{% endblock %}

{% block content %}
  {% call build_section_row() %}
    {% call build_form_box(_('Access Feature'), resource.host, 'lock') %}
      {% call build_form(action=url_for('.AccessFeatureView:put', id=resource.id)) %}
        {% call add_default_fields(form=form, submit_value=_('Update')) %}
          {{ render_field(form.host) }}
          {{ render_field(form.feature) }}
        {% endcall %}
      {% endcall %}
    {% endcall %}
  {% endcall %}
{% endblock %}
