@model GreenTree.Nachtragsmanagement.Web.Models.Global.PopupModel

<div class="popupButtonPanel">
	@Html.DevExpress().Button(b =>
	{
		b.Name = Guid.NewGuid().ToString();
		b.Text = "Abbrechen";
		b.Width = new Unit(100, UnitType.Pixel);
		b.ControlStyle.CssClass += "devExFloatRight devExPopupPanelButton";
		b.UseSubmitBehavior = false;
		b.ClientSideEvents.Click = "function (s, e) { " + Model.PopupName + ".Hide(); }";
	}).GetHtml()
	@Html.DevExpress().Button(b =>
	{
		b.Name = Guid.NewGuid().ToString();
		b.Text = "Ok";
		b.Width = new Unit(100, UnitType.Pixel);
		b.ControlStyle.CssClass += "devExFloatRight devExPopupPanelButton";
		if (String.IsNullOrEmpty(Model.AcceptFunction)) 
		{
			b.UseSubmitBehavior = true;
		}
		else
		{
			b.UseSubmitBehavior = false;
			b.ClientSideEvents.Click = Model.AcceptFunction;
		}
	}).GetHtml()
</div>