模块添加按钮

This commit is contained in:
yubaolee 2017-02-08 09:15:49 +08:00
parent 37a6807851
commit 3657cb2add

View File

@ -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();