{% extends "SsoBackendBundle:token:base.html.twig" %}
{# % form_theme filterForm ':Forms:bootstrap.layout.html.twig' % #}
{% block title %}{{ parent() }} - Index{% endblock %}

{% block body %}
    <br/><br/>
    {% if isDeleted %}
        <strong>The operation has been executed!</strong>
        <br/><br/>
        <a class=""
           href="{{ path('_admin_backend_servicetoken_list_services', {'ServiceNameId': serviceName.ServiceNameId}) }}">Back
            to services overview</a>
    {% else %}
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">Delete service from Service Group Name</h3>
            </div>
            <div class="panel-body">
                {{ form_start(form) }}
                You are about to remove the service
                &quot;<strong>{{ service.serviceController }}/{{ service.serviceAction }}</strong>&quot;
                from the service group &quot;<strong>{{ serviceName.serviceName }}</strong>&quot;!
                <br/><br/>
                By removing the service from the service group,
                <strong>all</strong> tokens assigned to this service group will no longer be able to access the given
                service.
                <br/><br/>
                {{ form_widget(form.service) }}{{ form_widget(form.serviceName) }}
                <ul class="record_actions pull-left">
                    <li>
                        <a href="{{ path('_admin_backend_servicetoken_list_services', {'ServiceNameId': serviceNameId}) }}"
                           class="btn btn-default">Cancel</a></li>
                    <li>{{ form_widget(form.submit) }}</li>
                </ul>
                {{ form_end(form) }}
            </div>
        </div>
    {% endif %}
{% endblock %}
