@using GreenTree.Nachtragsmanagement.Web.Models.Global; @model GreenTree.Nachtragsmanagement.Web.Models.Admin.AppInfo.AppUpdateDataModel
@Html.DevExpress().PopupControl(s => { s.Name = "devPopupControlDoUpdate"; s.HeaderText = "Update durchführen"; s.Modal = true; s.Width = new Unit(450, UnitType.Pixel); s.CloseAction = CloseAction.CloseButton; s.PopupHorizontalAlign = PopupHorizontalAlign.WindowCenter; s.PopupVerticalAlign = PopupVerticalAlign.TopSides; s.PopupVerticalOffset = 50; s.AllowDragging = false; s.AllowResize = false; s.ShowFooter = false; s.ShowOnPageLoad = true; s.SetContent(() => { ViewContext.Writer.Write( "
" + "

Es ist ein Update verfügbar (v" + Model.UpdateVersion + ")

" + "Beschreibung:
" + "
" + Model.UpdateDescription + "
" + "

Sind Sie sicher, dass Sie das Update durchführen möchten? " + "Der Vorgang kann einige Zeit in Anspruch nehmen.

" + "Die Anwendung wird anschließend neu gestartet!

" + "
"); Html.RenderPartial( "~/Views/Shared/_PopupButtonPanel.cshtml", new GreenTree.Nachtragsmanagement.Web.Models.Global.PopupModel { PopupName = "devPopupControlDoUpdate", AcceptFunction = "function (s, e) { update(); }" } ); }); s.Styles.Content.Paddings.Padding = new Unit(0); s.Styles.ModalBackground.Opacity = 0; }).GetHtml()