{% extends "SsoBackendBundle:Token:base.html.twig" %}
{% block title %}Edit User-Group{% 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>
    <h1>Edit User Group</h1>
    <div class="well clearfix">
        {{ form_start(form) }}
        {{ form_rest(form) }}
        <button class="btn btn-primary" type="submit">Update User Group</button>
        <a
                class="btn btn-danger"
                data-toggle="modal"
                data-target="#confirm-delete"
                href="#">Delete User Group</a>
        <a class="btn btn-success" href="{{ path('_admin_backend_webservice_user_group') }}">
            Back to the list
        </a>
        {{ form_end(form) }}
    </div>
{% endblock %}
