{% extends 'VGMWOBundle::layout.html.twig' %}
{% block jumbotron_content %}
    <div class="jumbotron" style="padding-top: 10px; padding-bottom: 5px;"  id="jumbotron">
        <div class="container-fluid">
            <div class="col-md-12 text-center" style="padding-left: 0px;">
                <H3 style="margin: 0px;"><strong>Entities</strong></H3>
            </div>
        </div>
    </div>
{% endblock %}
{% block content%}
    <div class="container" style="min-height: 500px;">
        <div class="table-responsive">
            <table class="table table-striped table-hover">
                <thead>
                <tr>
                    <th class="col-md-4">Name</th>
                </tr>
                </thead>
                <tbody>
                {% for entity in entities %}
                    <tr style="cursor: pointer;"
                        onclick="location.href='{{ path('unit_edit', {'id': entity.getId()} ) }}'">
                        <td>{{ entity.__toString() }}</td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
            <div class="container-fluid">
                <div class="col-lg-12 text-right">
                    <a href="{{ path('unit_new') }}">
                        <span class="glyphicon glyphicon-plus-sign"></span>
                        Create
                    </a>
                </div>
            </div>
        </div>
    </div>
{% endblock %}