tpl.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <style>
  2. #chooseicon {
  3. margin:10px;
  4. }
  5. #chooseicon ul {
  6. margin:5px 0 0 0;
  7. }
  8. #chooseicon ul li{
  9. width:41px;height:42px;
  10. line-height:42px;
  11. border:1px solid #efefef;
  12. padding:1px;
  13. margin:1px;
  14. text-align: center;
  15. font-size:18px;
  16. }
  17. #chooseicon ul li:hover{
  18. border:1px solid #2c3e50;
  19. cursor:pointer;
  20. }
  21. </style>
  22. <script id="chooseicontpl" type="text/html">
  23. <div id="chooseicon">
  24. <div>
  25. <form onsubmit="return false;">
  26. <div class="input-group input-groupp-md">
  27. <div class="input-group-addon">{:__('Search icon')}</div>
  28. <input class="js-icon-search form-control" type="text" placeholder="">
  29. </div>
  30. </form>
  31. </div>
  32. <div>
  33. <ul class="list-inline">
  34. <% for(var i=0; i<iconlist.length; i++){ %>
  35. <li data-font="<%=iconlist[i]%>" data-toggle="tooltip" title="<%=iconlist[i]%>">
  36. <i class="fa fa-<%=iconlist[i]%>"></i>
  37. </li>
  38. <% } %>
  39. </ul>
  40. </div>
  41. </div>
  42. </script>