{% 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_tokens', {'ServiceNameId': serviceName.ServiceNameId}) }}">Back
            to tokens overview</a>
    {% else %}
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">Delete token from Service Group Name</h3>
            </div>
            <div class="panel-body">
                {{ form_start(form) }}
                You are about to remove the token &quot;<strong>{{ token.ServiceToken }}</strong>&quot; from the service
                group
                &quot;<strong>{{ serviceName.serviceName }}</strong>&quot;!
                <br/><br/>
                All consumers / serviceproviders / applications using this token will no longer be able to access any
                services.
                <br/><br/>
                {{ form_widget(form.token) }}{{ form_widget(form.serviceName) }}
                <ul class="record_actions pull-left">
                    <li>
                        <a href="{{ path('_admin_backend_servicetoken_list_tokens', {'ServiceNameId': serviceNameId}) }}"
                           class="btn btn-default">Cancel</a></li>
                    <li>{{ form_widget(form.submit) }}</li>
                </ul>
                {{ form_end(form) }}
            </div>
        </div>
    {% endif %}
{% endblock %}
