{% from '_protection_messages.html' import render_public_protection_message, render_inherited_protection_message,
                                           render_protected_protection_message, render_unlisted_event_protection_message,
                                           render_non_inheriting_children_message %}

<div class="form-group" id="form-group-protected-{{ field.id }}" style="margin-top: 5px;">
    {{ render_public_protection_message() }}
    {% if field.can_inherit_protection %}
        {{ render_inherited_protection_message(protected_object.protection_parent, parent_type) }}
    {% endif %}
    {{ render_protected_protection_message() }}
    {{ render_unlisted_event_protection_message() }}
    {{ render_non_inheriting_children_message(protected_object, non_inheriting_objects) }}
</div>
