@using GreenTree.Nachtragsmanagement.Web.Models.Global;

<div class="updateContainer">

	@Html.DevExpress().PopupControl(s =>
{
	s.Name = "devPopupControlNoUpdate";
	s.HeaderText = "Kein Update verfügbar";
	s.Modal = true;
	s.Width = new Unit(350, UnitType.Pixel);
	s.CloseAction = CloseAction.CloseButton;
	s.PopupHorizontalAlign = PopupHorizontalAlign.WindowCenter;
	s.PopupVerticalAlign = PopupVerticalAlign.WindowCenter;
	s.AllowDragging = false;
	s.AllowResize = false;
	s.ShowFooter = false;
	s.ShowOnPageLoad = true;
	s.SetContent(() =>
	{
		ViewContext.Writer.Write(
			"<div class='dialogText' style='padding: 12px'>" +
				"<h2 style='text-align: center'>Es ist kein Update verfügbar!</h2>" +
			"</div>");
		Html.RenderPartial(
			"~/Views/Shared/_PopupButtonPanelOption.cshtml",
			new GreenTree.Nachtragsmanagement.Web.Models.Global.OptionDialogModel
			{
				OptionItems = new List<GreenTree.Nachtragsmanagement.Web.Models.Global.OptionDialogItemModel>
				{
					new GreenTree.Nachtragsmanagement.Web.Models.Global.OptionDialogItemModel
					{
						Name = "NoUpdateAccept",
						Text = "Ok",
						Function = "function (s, e) { devPopupControlNoUpdate.Hide(); }"
					}
				}
			}
		);
	});
	s.Styles.Content.Paddings.Padding = new Unit(0);
	s.Styles.ModalBackground.Opacity = 0;
}).GetHtml()

</div>