{% extends "SsoBackendBundle:Token:base.html.twig" %}
{% block title %}User 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>Delete User-Group</h2>
                </div>
                <div class="modal-body">
                    <p>You are about to delete a user-group, this procedure is irreversible.</p>
                    <p>Do you want to proceed?</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                    {{ form_start(deleteForm, { 'attr': { 'style': 'display: inline-block' } }) }}
                    <button type="submit" class="btn btn-danger danger">Delete</button>
                    {{ form_end(deleteForm) }}
                </div>
            </div>
        </div>
    </div>
    <h2>User Group View</h2>
    <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>
        <li class="list-group-item">
            <div class="labelview">Description</div>
            {{ entity.description }}&nbsp;
        </li>
        <li class="list-group-item">
            <div class="labelview">createdAt</div>
            {{ entity.createdAt|date('Y-m-d H:i:s') }}&nbsp;
        </li>
        <li class="list-group-item">
            <div class="labelview">updatedAt</div>
            {{ entity.updatedAt|date('Y-m-d H:i:s') }}&nbsp;
        </li>
    </ul>

    <ul class="record_actions clearfix">
        <li>
            <a class="btn btn-success" href="{{ path('_admin_backend_webservice_user_group') }}">
                Back to the list
            </a>
        </li>
        <li>
            <a class="btn btn-primary"
               href="{{ path('_admin_backend_webservice_user_group_edit', { 'userGroupId': entity.id }) }}">
                Edit User Group
            </a>
        </li>
        <li>
            <a
                    class="btn btn-danger"
                    data-toggle="modal"
                    data-target="#confirm-delete"
                    href="#">Delete User Group</a>
        </li>
    </ul>
{% endblock %}
