Files
2016-10-20 14:55:17 +02:00

109 lines
5.5 KiB
Plaintext

@model StockManMVC.Models.Item
@{
ViewBag.Title = "Create";
}
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="panel panel-success">
<div class="panel-heading">
<strong>Crea Nuovo Articolo</strong>
</div>
<div class="panel-body">
<div class="form-horizontal">
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
@Html.LabelFor(model => model.Descr, htmlAttributes: new { @class = "control-label col-md-2 col-lg-4" })
<div class="col-md-10 col-lg-8">
@Html.EditorFor(model => model.Descr, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Descr, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.CodInt, htmlAttributes: new { @class = "control-label col-md-2 col-lg-4" })
<div class="col-md-10 col-lg-8">
@Html.EditorFor(model => model.CodInt, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.CodInt, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ItemFamilyID, htmlAttributes: new { @class = "control-label col-md-2 col-lg-4" })
<div class="col-md-10 col-lg-8">
@Html.DropDownList("ItemFamilyID", null, htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.ItemFamilyID, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.CodExt, htmlAttributes: new { @class = "control-label col-md-2 col-lg-4" })
<div class="col-md-10 col-lg-8">
@Html.EditorFor(model => model.CodExt, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.CodExt, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.DescrExt, htmlAttributes: new { @class = "control-label col-md-2 col-lg-4" })
<div class="col-md-10 col-lg-8">
@Html.EditorFor(model => model.DescrExt, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.DescrExt, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.QtaMin, htmlAttributes: new { @class = "control-label col-md-2 col-lg-4" })
<div class="col-md-10 col-lg-8">
@Html.EditorFor(model => model.QtaMin, new { htmlAttributes = new { @class = "form-control", Value = "0" } })
@Html.ValidationMessageFor(model => model.QtaMin, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.QtaBatch, htmlAttributes: new { @class = "control-label col-md-2 col-lg-4" })
<div class="col-md-10 col-lg-8">
@Html.EditorFor(model => model.QtaBatch, new { htmlAttributes = new { @class = "form-control", Value = "1" } })
@Html.ValidationMessageFor(model => model.QtaBatch, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.CurrValue, htmlAttributes: new { @class = "control-label col-md-2 col-lg-4" })
<div class="col-md-10 col-lg-8">
@Html.EditorFor(model => model.CurrValue, new { htmlAttributes = new { @class = "form-control", Value = "0" } })
@Html.ValidationMessageFor(model => model.CurrValue, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.UM, htmlAttributes: new { @class = "control-label col-md-2 col-lg-4" })
<div class="col-md-10 col-lg-8">
@Html.EditorFor(model => model.UM, new { htmlAttributes = new { @class = "form-control", Value = "nr" } })
@Html.ValidationMessageFor(model => model.UM, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group no-color row">
<div class="col-sm-6">
<button type="submit" value="Create" class="btn btn-success form-control">Crea nuovo <i class="glyphicon glyphicon-ok-circle"></i></button>
</div>
<div class="col-sm-6">
<a href="@Url.Action("", "Items")" class="btn btn-info form-control">Annulla <i class="glyphicon glyphicon-retweet"></i></a>
</div>
</div>
</div>
</div>
</div>
}
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}