public HtmlTag SubmitOrCancel(string submitText)
        {
            var submit = ViewConventionExtensions.SubmitButton(submitText)
                         .AddClass("positive");
            var cancel = ViewConventionExtensions.Button(SaveOrCancelConvention.DefaultCancelText)
                         .Attr("onclick", "$.ajaxFormsExtensions.AjaxForm.Cancel();");

            return(Tags.Div.AddClass("saveOrCancel").Nest(submit, cancel));
        }
        public HtmlTag SubmitOrCancel(string submitText)
        {
            var sumbit = ViewConventionExtensions.SubmitButton(submitText)
                         .AddClass("positive");
            var or     = Tags.Span.Text(" or ");
            var cancel = Tags.Link
                         .OnClick("$.ajaxFormsExtensions.AjaxForm.Cancel();")
                         .Text("cancel");

            return(Tags.Div.AddClass("saveOrCancel").Nest(sumbit, or, cancel));
        }
예제 #3
0
        public HtmlTag Filter(string formSelector)
        {
            var filter = ViewConventionExtensions.SubmitButton(DefaultFilterText);

            return(Tags.Div.AddClass("filterButton").Nest(filter));
        }