{% extends "SsoBackendBundle:Service:base.html.twig" %}

{% block title %}{{ parent() }} - List{% endblock %}

{% block body %}
    <h1>Services</h1>
    <table class="table table-striped table-bordered table-condensed">
        <tr>
            <th>ServiceId</th>
            <th>ServiceType</th>
            <th>ServiceController</th>
            <th>ServiceAction</th>
            <th>ServiceMapped2Group</th>
            <th>Action</th>
        </tr>
        {% for service in services %}
            <tr>
                <td><span class="cutstring">{{ service.ServiceId }}</span></td>
                <td>{{ service.ServiceType }}</td>
                <td>{{ service.ServiceController }}</td>
                <td>{{ service.ServiceAction }}</td>
                <td>{{ service.ServiceMapped2Group }}</td>
                <td><a class="btn btn-default btn-xs"
                       href="{{ path('_admin_backend_service_delete', {'ServiceId': service.ServiceId}) }}">delete</a>
                </td>
            </tr>
        {% endfor %}
    </table>
<a class="btn btn-default" href="{{ path('_admin_backend_service_add') }}" title="add service">add
    service</a>{% endblock %}
