@model Web.Models.Karta.KartaObjednatModel
@{
  Layout = "~/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm("Objednat", "Karta", FormMethod.Post, new { enctype = "multipart/form-data" })) { 
  @Html.AntiForgeryToken()
  <hr />
  <div class="form-horizontal col-sm-8">
    @Html.HiddenFor(model => model.UzivatelId)
    
      @Html.ValidationSummary(true, "", new { @class = "text-danger" })
      <h2>Objednávka pro skladovou kartu </h2>
      <div class="form-group">
        @Html.LabelFor(model => model.VybranySubjektId, htmlAttributes: new { @class = "control-label col-md-3" })
        <div class="col-md-9">
          @Html.DropDownListFor(model => model.VybranySubjektId, Model.VybranySubjekt, htmlAttributes: new { @class = "form-control" })
          @Html.ValidationMessageFor(model => model.VybranySubjektId, "", new { @class = "text-danger" })
        </div>
      </div>

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

    <div class="form-group">
      <div class="col-md-offset-2 col-md-10">
        <input type="file" name="fileUploader" />
        
        <input type="submit" value="Objednat" class="btn btn-default"/>
      </div>
    </div>

    @Html.ActionLink("Zpět na Seznam karet ", "Index")

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