Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @using System.Web.Http.ModelBinding.Binders
- @using System.Web.Mvc.Html
- @using JsbSolutionsMailer.Models
- @using Safety.Web.Utility
- @model JsbSolutionsMailer.Models.Utenti
- @{
- ViewBag.Title = "Edit";
- Layout = "~/Views/Shared/_Layout.cshtml";
- var imagePath = Model.PathPhoto;
- }
- <div class="page-header">
- <h1>
- Modifica utente <small>@Model.Username</small>
- </h1>
- </div>
- @using (Html.BeginForm("Edit", "Utente", FormMethod.Post))
- {
- @Html.AntiForgeryToken()
- <div class="block">
- <hr />
- @Html.HiddenFor(model => model.Id)
- @Html.HiddenFor(model => model.UtenteAttivo)
- @Html.HiddenFor(model => model.DataCreazione)
- @Html.HiddenFor(model => model.Password)
- <div class="container-fluid">
- <div class="row-fluid">
- <div class="col-lg-3">
- <span>Nome: </span>@Html.ValidationMessageFor(model => model.Nome, "", new {@style = "color: red"})
- <p>@Html.EditorFor(model => model.Nome, new {htmlAttributes = new {@class = "form-control"}})</p>
- <span>Cognome: </span>@Html.ValidationMessageFor(model => model.Cognome, "", new {@style = "color: red"})
- <p>@Html.EditorFor(model => model.Cognome, new {htmlAttributes = new {@class = "form-control"}})</p>
- <span>Ruolo: </span>@Html.ValidationMessageFor(model => model.Ruolo, "", new {@style = "color: red"})
- <p>@Html.EditorFor(model => model.Ruolo, new {htmlAttributes = new {@class = "form-control"}})</p>
- <span>Divisione: </span>@Html.ValidationMessageFor(model => model.Divisione, "", new {@style = "color: red"})
- <p>@Html.EditorFor(model => model.Divisione, new {htmlAttributes = new {@class = "form-control"}})</p>
- <span>Calendar: </span>@Html.ValidationMessageFor(model => model.Calendar, "", new {@style = "color: red"})
- <p>@Html.EditorFor(model => model.Calendar, new {htmlAttributes = new {@class = "form-control"}})</p>
- <span>Username: </span>@Html.ValidationMessageFor(model => model.Username, "", new {@style = "color: red"})
- <p>@Html.EditorFor(model => model.Username, new {htmlAttributes = new {@class = "form-control"}})</p>
- <span>Password: </span>@Html.ValidationMessageFor(model => model.Password, "", new {@style = "color: red"})
- <p>@Html.EditorFor(model => model.Password, new {htmlAttributes = new {@class = "form-control"}})</p>
- <span>Indirizzo mail: </span>@Html.ValidationMessageFor(model => model.Email, "", new {@style = "color: red"})
- <p>@Html.EditorFor(model => model.Email, new {htmlAttributes = new {@class = "form-control"}})</p>
- <span>Conferma indirizzo mail: </span>@Html.ValidationMessageFor(model => model.EmailConfirmed, "", new {@style = "color: red"})
- <p>@Html.EditorFor(model => model.EmailConfirmed, new {htmlAttributes = new {@class = "form-control"}})</p>
- <span>Attiva login per accesso area riservata: </span>@Html.ValidationMessageFor(model => model.LoginAttivo, "", new {@style = "color: red"})
- <p>@Html.CheckBoxFor(model => model.LoginAttivo, new {htmlAttributes = new {@class = "form-control"}})</p>
- <span>Telefono lavoro: </span>@Html.ValidationMessageFor(model => model.TelefonoLavoro, "", new {@style = "color: red"})
- <p>@Html.EditorFor(model => model.TelefonoLavoro, new {placeholder = "Telefono lavoro"})</p>
- <span>Telefono personale: </span>@Html.ValidationMessageFor(model => model.TelefonoPersonale, "", new {@style = "color: red"})
- <p>@Html.TextBoxFor(model => model.TelefonoPersonale)</p>
- </div>
- <div class="col-lg-9">
- <img src="@Url.Content(@Model.PathPhoto)" class=".img-responsive" alt=" smiley face">
- </div>
- </div>
- </div>
- <!-- <div class="block">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Salva utente" class="btn btn-default"/>
- <a href="@Url.Action("Index", "Utente", new {id = Model.Id})" class="btn btn-default">
- <span>Annulla</span>
- </a>
- </div>
- </div> -->
- <!-- <img src="~/Content/img/Micela.jpg" alt="Smiley face" height="42" width="42"> -->
- </div>
- }
- @section Scripts {
- @Scripts.Render("~/bundles/jqueryval")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement