Files
Disco/Disco.Web/App_Code/AjaxHelpers.cshtml
T
Gary Sharp ab553a05cb Update: FontAwesome Pass 2
Removal of bitmap icons, replacing with vector based icons from
FontAwesome. Includes other UI style changes.
2013-12-25 17:49:30 +11:00

29 lines
1019 B
Plaintext

@* Generator: WebPagesHelper *@
@using Disco.BI.Extensions;
@using Disco.Web;
@using Disco.Services.Web;
@helper AjaxLoader(string id = null)
{
Html.GetPageHelper().BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons");
<i @(id != null ? new HtmlString(string.Format("id=\"{0}_loading\"", id)) : new HtmlString(string.Empty)) class="ajaxLoading" title="Loading..."></i><i @(id != null ? new HtmlString(string.Format("id=\"{0}_ok\"", id)) : null) class="fa fa-check fa-lg hidden ajaxOk" title="Ok"></i>
}
@helper AjaxSave()
{
<i class="fa fa-check-square fa-lg hidden ajaxSave" title="Save Changes"></i>
}
@helper AjaxRemove()
{
<i class="fa fa-times-circle fa-lg hidden ajaxRemove" title="Remove"></i>
}
@helper JsonDate(DateTime? date)
{
if (date.HasValue)
{
var d = date.Value;
@(new HtmlString(string.Format("new Date({0}, {1}, {2}, {3}, {4}, {5})", d.Year, d.Month - 1, d.Day, d.Hour, d.Minute, d.Second)))
}
else
{
@(new HtmlString("null"))
}
}