mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Tooltips
This commit is contained in:
parent
f7f66d4c11
commit
83bb86de06
9 changed files with 61 additions and 87 deletions
|
@ -41,13 +41,14 @@ namespace Ombi.UI.Helpers
|
|||
return helper.Raw(htmlString);
|
||||
}
|
||||
|
||||
public static IHtmlString Checkbox(this HtmlHelpers helper, bool check, string name, string display)
|
||||
public static IHtmlString Checkbox(this HtmlHelpers helper, bool check, string name, string display, string tooltipText = null)
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
|
||||
sb.AppendLine("<div class=\"form-group\">");
|
||||
sb.AppendLine("<div class=\"checkbox\">");
|
||||
sb.AppendFormat("<input type=\"checkbox\" id=\"{0}\" name=\"{0}\" {2}><label for=\"{0}\">{1}</label>", name, display, check ? "checked=\"checked\"" : string.Empty);
|
||||
sb.AppendFormat("<input type=\"checkbox\" id=\"{0}\" name=\"{0}\" {2}><label for=\"{0}\">{1} {3}</label>", name, display, check ? "checked=\"checked\"" : string.Empty,
|
||||
string.IsNullOrEmpty(tooltipText) ? string.Empty : helper.ToolTip(tooltipText).ToHtmlString());
|
||||
sb.AppendLine("</div>");
|
||||
sb.AppendLine("</div>");
|
||||
return helper.Raw(sb.ToString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue