mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-08-24 16:18:45 +08:00
模块添加按钮
This commit is contained in:
parent
37a6807851
commit
3657cb2add
@ -86,10 +86,15 @@ namespace OpenAuth.Mvc.Controllers
|
|||||||
foreach (var element in CurrentModule.Elements)
|
foreach (var element in CurrentModule.Elements)
|
||||||
{
|
{
|
||||||
sb.Append("<button "
|
sb.Append("<button "
|
||||||
+ " id='" + element.DomId + "' "
|
+ " id='" + element.DomId + "' "
|
||||||
+ " class='btn btn-sm " + element.Class + "' "
|
+ " class='btn btn-sm " + element.Class + "' "
|
||||||
+ " onclick='" + element.Script + "' " + element.Attr
|
+ " onclick='" + element.Script + "' " + element.Attr
|
||||||
+ ">" + element.Name + "</button>");
|
+ ">");
|
||||||
|
if (!string.IsNullOrEmpty(element.Icon))
|
||||||
|
{
|
||||||
|
sb.Append("<i class='ace-icon fa fa-" + element.Icon + "'></i>");
|
||||||
|
}
|
||||||
|
sb.Append(element.Name + "</button>");
|
||||||
}
|
}
|
||||||
ViewBag.Buttons = sb.ToString();
|
ViewBag.Buttons = sb.ToString();
|
||||||
return View();
|
return View();
|
||||||
|
Loading…
Reference in New Issue
Block a user