60 lines
2.5 KiB
Plaintext
60 lines
2.5 KiB
Plaintext
@model StockManMVC.Models.Operator
|
|
|
|
@{
|
|
ViewBag.Title = "Edit Operatore";
|
|
}
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
<strong>Modifica Operatore</strong>
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
<div class="form-horizontal">
|
|
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
|
@Html.HiddenFor(model => model.ID)
|
|
|
|
<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="Save" class="btn btn-primary form-control">Salva modifiche <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")
|
|
}
|