{{ form_start(form) }}

<table class="table table-sm table-striped">
    <thead>
    <tr>
        <th>{{ form.judgehosts.vars.prototype.hostname.vars.label }}</th>
        <th>{{ form.judgehosts.vars.prototype.enabled.vars.label }}</th>
        <th>{{ form.judgehosts.vars.prototype.hidden.vars.label }}</th>
    </tr>
    </thead>
    <tbody data-collection-holder>
    {% for judgehost in form.judgehosts %}
        <tr>
            <td style="width: 20%">
                {{ form_widget(judgehost.hostname) }}
            </td>
            <td style="width: 10%">
                {{ form_widget(judgehost.enabled) }}
                {{ form_errors(judgehost.enabled) }}
            </td>
            <td style="width: 10%">
                {{ form_widget(judgehost.hidden) }}
                {{ form_errors(judgehost.hidden) }}
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>

{{ form_widget(form.save) }}

{{ form_end(form) }}
