@model GreenTree.Nachtragsmanagement.Web.Models.Admin.User.UserDataModel
@Html.DevExpress().PopupControl(s => { s.Name = "devPopupControlEditUser"; if (Model.Id == -1) s.HeaderText = "Neuen Benutzer erstellen"; else s.HeaderText = Model.Lastname + ", " + Model.Forename + " bearbeiten"; s.Modal = false; s.Width = new Unit(350, UnitType.Pixel); s.CloseAction = CloseAction.CloseButton; s.ShowOnPageLoad = true; s.PopupHorizontalAlign = PopupHorizontalAlign.WindowCenter; s.PopupVerticalAlign = PopupVerticalAlign.WindowCenter; s.AllowDragging = false; s.AllowResize = false; s.ShowFooter = false; s.SetContent(() => { using (Html.BeginForm("EditUser", "Admin", FormMethod.Post)) { ViewContext.Writer.Write("
"); ViewContext.Writer.Write(""); ViewContext.Writer.Write("
Personalnummer
"); Html.DevExpress().TextBoxFor(m => m.CustomerNumber, t => { t.Width = new Unit(100, UnitType.Percentage); }).Render(); ViewContext.Writer.Write("
Vorname
"); Html.DevExpress().TextBoxFor(m => m.Forename, t => { t.Width = new Unit(100, UnitType.Percentage); }).Render(); ViewContext.Writer.Write("
Nachname
"); Html.DevExpress().TextBoxFor(m => m.Lastname, t => { t.Width = new Unit(100, UnitType.Percentage); }).Render(); ViewContext.Writer.Write("
Mail-Adresse
"); Html.DevExpress().TextBoxFor(m => m.MailAddress, t => { t.Width = new Unit(100, UnitType.Percentage); }).Render(); ViewContext.Writer.Write("
"); Html.RenderPartial( "~/Views/Shared/_PopupButtonPanel.cshtml", new GreenTree.Nachtragsmanagement.Web.Models.Global.PopupModel { PopupName = "devPopupControlEditUser", AcceptFunctionName = "" }); } }); s.Styles.Content.Paddings.Padding = new Unit(0); }).GetHtml()