@model IEnumerable<TFC.Models.Exercice>

@{
    ViewBag.Title = "Ejercicio";
}

<h2>Ejercicios</h2>

<p>
    @Html.ActionLink("Nuevo ejercicio", "Create", new { }, new {@class="small button" })
</p>
<table style="margin-left:auto; margin-right:auto; margin-top:30px;">
    <tr>
        <th>
            Nombre
        </th>
        <th>
            Grupo muscular
        </th>

        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MuscleGroup)
        </td>

        <td>
            @Html.ActionLink("Editar", "Edit", new { id=item.ExerciceID }) |
            @Html.ActionLink("Detalle", "Details", new { id=item.ExerciceID }) |
            @Html.ActionLink("Eliminar", "Delete", new { id=item.ExerciceID })
        </td>
    </tr>
}

</table>
