mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-08-23 22:11:35 +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)
|
||||
{
|
||||
sb.Append("<button "
|
||||
+ " id='" + element.DomId + "' "
|
||||
+ " class='btn btn-sm " + element.Class + "' "
|
||||
+ " onclick='" + element.Script + "' " + element.Attr
|
||||
+ ">" + element.Name + "</button>");
|
||||
+ " id='" + element.DomId + "' "
|
||||
+ " class='btn btn-sm " + element.Class + "' "
|
||||
+ " onclick='" + element.Script + "' " + element.Attr
|
||||
+ ">");
|
||||
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();
|
||||
return View();
|
||||
|
Loading…
Reference in New Issue
Block a user