@model TFC.Models.Exercice

@{
    ViewBag.Title = "Edit";
}

<h2>Editar ejercicio</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="seven columns" style="margin-left:120px; margin-right:auto; ">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Ejercicio</legend>

        @Html.HiddenFor(model => model.ExerciceID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MuscleGroup)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MuscleGroup)
            @Html.ValidationMessageFor(model => model.MuscleGroup)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VideoPath)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VideoPath)
            @Html.ValidationMessageFor(model => model.VideoPath)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tips)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tips)
            @Html.ValidationMessageFor(model => model.Tips)
        </div>

        <p>
            <input type="submit" value="Guardar" class="small button" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver", "Index")
</div>
    </div>