@model Web.Models.Zamestnanec.ZamestnanecModel

@{
  Layout = "~/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm()) {
  @Html.AntiForgeryToken()
  <hr />
  <div class="form-horizontal col-md-8">
    @Html.ValidationSummary(true, "", new { @class = "text-danger" })
    @Html.HiddenFor(model => model.Id)
    @Html.HiddenFor(model => model.DatumVytvoreni)
    @Html.HiddenFor(model => model.VytvorilId)

    <div class="form-group">
      @Html.LabelFor(model => model.Jmeno, htmlAttributes: new { @class = "control-label col-md-3" })
      <div class="col-md-9">
        @Html.EditorFor(model => model.Jmeno, new { htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(model => model.Jmeno, "", new { @class = "text-danger" })
      </div>
    </div>

    <div class="form-group">
      @Html.LabelFor(model => model.Prijmeni, htmlAttributes: new { @class = "control-label col-md-3" })
      <div class="col-md-9">
        @Html.EditorFor(model => model.Prijmeni, new { htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(model => model.Prijmeni, "", new { @class = "text-danger" })
      </div>
    </div>

    <div class="form-group">
      @Html.LabelFor(model => model.TypZamestnance, htmlAttributes: new { @class = "control-label col-md-3" })
      <div class="col-md-9">
        @Html.EnumDropDownListFor(model => model.TypZamestnance, "-- Vyber typ zaměstnance --", htmlAttributes: new { @class = "form-control" })
        @Html.ValidationMessageFor(model => model.TypZamestnance, "", new { @class = "text-danger" })
      </div>
    </div>

    <div class="form-group">
      @Html.LabelFor(model => model.Poznamka, htmlAttributes: new { @class = "control-label col-md-3" })
      <div class="col-md-9">
        @Html.TextAreaFor(model => model.Poznamka, htmlAttributes: new { @class = "form-control", rows = 5 })
        @Html.ValidationMessageFor(model => model.Poznamka, "", new { @class = "text-danger" })
      </div>
    </div>

    <div class="form-group">
      @Html.LabelFor(model => model.Email, htmlAttributes: new { @class = "control-label col-md-3" })
      <div class="col-md-9">
        @Html.EditorFor(model => model.Email, new { htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(model => model.Email, "", new { @class = "text-danger" })
      </div>
    </div>

    <div class="form-group">
      <div class="col-md-offset-2 col-md-10">
        <input type="submit" value="Uložit" class="btn btn-primary" />
      </div>
    </div>
    @Html.ActionLink("Zpět na Seznam zaměstnanců ", "Index")
  </div>

  <div class="col-md-4"></div>
}



