{% extends "SsoBackendBundle:token:base.html.twig" %}
{% form_theme delete_form ':Forms:bootstrap.layout.html.twig' %}

{% block title %}Attribute Group Show{% endblock %}

{% block body %}
    <div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h2>Do you really want to delete this object?</h2>
                </div>
                <div class="modal-body">
                    <p>You are about to delete one token, this procedure is irreversible.</p>
                    <p>Do you want to proceed?</p>
                    <p>We hope that you know what you do!</a>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                    <a href="#" class="btn btn-danger danger">Delete</a>
                </div>
            </div>
        </div>
    </div>
    <h3>Attribute Group View</h3>
    <ul class="list-group">
        <li class="list-group-item">
            <div class="labelview">id</div>
            {{ entity.id }}&nbsp;
        </li>
        <li class="list-group-item">
            <div class="labelview">Name</div>
            {{ entity.name }}&nbsp;
        </li>
    </ul>
    <h3>Connected Types</h3>
    <ul class="list-group">
        {% for type in entity.types %}

            <li class="list-group-item">
                <div class="labelview">name</div>
                {{ type.name }}&nbsp;
            </li>
        {% endfor %}
    </ul>
    <h3>Connected Attributes</h3>
    <ul class="list-group">
        {% for attributes in entity.attributes %}

            <li class="list-group-item">
                <div class="labelview">name</div>
                {{ attributes.name }}&nbsp;
            </li>
        {% endfor %}
    </ul>
    <ul class="record_actions clearfix">
        <li>
            <a class="btn btn-success" href="{{ path('_admin_backend_webservice_attribute_group') }}">
                Back to the list
            </a>
        </li>
        <li>
            <a class="btn btn-primary"
               href="{{ path('_admin_backend_webservice_attribute_group_edit', { 'groupId': entity.id }) }}">
                Edit Object
            </a>
        </li>

    </ul>
{% endblock %}