67 lines
3.0 KiB
Plaintext
67 lines
3.0 KiB
Plaintext
@model StockManMVC.Models.Operator
|
|
|
|
@{
|
|
ViewBag.Title = "Nuovo Operatore";
|
|
}
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<div class="panel panel-success">
|
|
<div class="panel-heading">
|
|
<strong>Crea nuovo Operatore</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.ID, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.ID, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.ID, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.CodExt, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@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.LastName, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.LastName, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.LastName, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.FirstName, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.FirstName, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.FirstName, "", 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("", "Operators")" 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")
|
|
}
|