{%- extends "_layout_creatupdate.html" %}

{%- block itemform_fields %}

    {%- if item_action == 'createfor' %}

                                {{ macros_form.render_form_item_static(_('Group:'), parent.name) }}

    {%- elif item_action == 'create' or current_user.has_role('admin') %}

                                {{ macros_form.render_form_item_select(form.group) }}

    {%- elif item_action == 'update' %}

                                {{ macros_form.render_form_item_static(_('Group:'), item.group.name) }}

    {%- endif %}

                                {{ macros_form.render_form_item_default(form.netname) }}

                                {{ macros_form.render_form_item_default(form.description) }}

                                {{ macros_form.render_form_item_default(form.network) }}

                                {{ macros_form.render_form_item_default(form.rank) }}

    {%- if form.local_id and (permission_can('admin') or permission_can('maintainer')) %}
                                {{ macros_form.render_form_item_default(form.local_id) }}
    {%- endif %}

{%- endblock itemform_fields %}
