Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.66 KB | None | 0 0
  1. @using System.Web.Http.ModelBinding.Binders
  2. @using System.Web.Mvc.Html
  3. @using JsbSolutionsMailer.Models
  4. @using Safety.Web.Utility
  5. @model JsbSolutionsMailer.Models.Utenti
  6.  
  7.  
  8. @{
  9.     ViewBag.Title = "Edit";
  10.     Layout = "~/Views/Shared/_Layout.cshtml";
  11.     var imagePath = Model.PathPhoto;
  12. }
  13.  
  14. <div class="page-header">
  15.     <h1>
  16.         Modifica utente <small>@Model.Username</small>
  17.     </h1>
  18. </div>
  19.  
  20.  
  21. @using (Html.BeginForm("Edit", "Utente", FormMethod.Post))
  22. {
  23.     @Html.AntiForgeryToken()
  24.  
  25.     <div class="block">
  26.  
  27.         <hr />
  28.         @Html.HiddenFor(model => model.Id)
  29.         @Html.HiddenFor(model => model.UtenteAttivo)
  30.         @Html.HiddenFor(model => model.DataCreazione)
  31.         @Html.HiddenFor(model => model.Password)
  32.  
  33.         <div class="container-fluid">
  34.             <div class="row-fluid">
  35.  
  36.                 <div class="col-lg-3">
  37.                     <span>Nome: </span>@Html.ValidationMessageFor(model => model.Nome, "", new {@style = "color: red"})
  38.                     <p>@Html.EditorFor(model => model.Nome, new {htmlAttributes = new {@class = "form-control"}})</p>
  39.  
  40.                     <span>Cognome: </span>@Html.ValidationMessageFor(model => model.Cognome, "", new {@style = "color: red"})
  41.                     <p>@Html.EditorFor(model => model.Cognome, new {htmlAttributes = new {@class = "form-control"}})</p>
  42.  
  43.                     <span>Ruolo: </span>@Html.ValidationMessageFor(model => model.Ruolo, "", new {@style = "color: red"})
  44.                     <p>@Html.EditorFor(model => model.Ruolo, new {htmlAttributes = new {@class = "form-control"}})</p>
  45.  
  46.                     <span>Divisione: </span>@Html.ValidationMessageFor(model => model.Divisione, "", new {@style = "color: red"})
  47.                     <p>@Html.EditorFor(model => model.Divisione, new {htmlAttributes = new {@class = "form-control"}})</p>
  48.  
  49.                     <span>Calendar: </span>@Html.ValidationMessageFor(model => model.Calendar, "", new {@style = "color: red"})
  50.                     <p>@Html.EditorFor(model => model.Calendar, new {htmlAttributes = new {@class = "form-control"}})</p>
  51.  
  52.                     <span>Username: </span>@Html.ValidationMessageFor(model => model.Username, "", new {@style = "color: red"})
  53.                     <p>@Html.EditorFor(model => model.Username, new {htmlAttributes = new {@class = "form-control"}})</p>
  54.  
  55.                     <span>Password: </span>@Html.ValidationMessageFor(model => model.Password, "", new {@style = "color: red"})
  56.                     <p>@Html.EditorFor(model => model.Password, new {htmlAttributes = new {@class = "form-control"}})</p>
  57.  
  58.                     <span>Indirizzo mail: </span>@Html.ValidationMessageFor(model => model.Email, "", new {@style = "color: red"})
  59.                     <p>@Html.EditorFor(model => model.Email, new {htmlAttributes = new {@class = "form-control"}})</p>
  60.  
  61.                     <span>Conferma indirizzo mail: </span>@Html.ValidationMessageFor(model => model.EmailConfirmed, "", new {@style = "color: red"})
  62.                     <p>@Html.EditorFor(model => model.EmailConfirmed, new {htmlAttributes = new {@class = "form-control"}})</p>
  63.  
  64.                     <span>Attiva login per accesso area riservata: </span>@Html.ValidationMessageFor(model => model.LoginAttivo, "", new {@style = "color: red"})
  65.                     <p>@Html.CheckBoxFor(model => model.LoginAttivo, new {htmlAttributes = new {@class = "form-control"}})</p>
  66.  
  67.                     <span>Telefono lavoro: </span>@Html.ValidationMessageFor(model => model.TelefonoLavoro, "", new {@style = "color: red"})
  68.                     <p>@Html.EditorFor(model => model.TelefonoLavoro, new {placeholder = "Telefono lavoro"})</p>
  69.  
  70.                     <span>Telefono personale: </span>@Html.ValidationMessageFor(model => model.TelefonoPersonale, "", new {@style = "color: red"})
  71.                     <p>@Html.TextBoxFor(model => model.TelefonoPersonale)</p>
  72.  
  73.                 </div>
  74.  
  75.                 <div class="col-lg-9">
  76.                     <img src="@Url.Content(@Model.PathPhoto)" class=".img-responsive" alt=" smiley face">
  77.                 </div>
  78.             </div>
  79.  
  80.         </div>
  81.  
  82.  
  83.  
  84.  
  85.  
  86.         <!-- <div class="block">
  87.            <div class="col-md-offset-2 col-md-10">
  88.  
  89.                <input type="submit" value="Salva utente" class="btn btn-default"/>
  90.  
  91.                <a href="@Url.Action("Index", "Utente", new {id = Model.Id})" class="btn btn-default">
  92.                    <span>Annulla</span>
  93.                </a>
  94.            </div>
  95.        </div> -->
  96.         <!-- <img src="~/Content/img/Micela.jpg" alt="Smiley face" height="42" width="42"> -->
  97.  
  98.  
  99.  
  100.     </div>
  101.    
  102. }
  103.  
  104. @section Scripts {
  105.     @Scripts.Render("~/bundles/jqueryval")
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement