widget_setting.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <include file="theme/functions"/>
  2. <include file="public@header"/>
  3. <style>
  4. .form-control-widget-title {
  5. border: none;
  6. padding: 0;
  7. margin: 0;
  8. font-size: inherit;
  9. line-height: inherit;
  10. background: transparent;
  11. }
  12. .form-control-widget-title:focus {
  13. outline: none;
  14. background: #fff;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <div class="wrap">
  20. <form method="post" class="js-ajax-form"
  21. action="{:url('Theme/widgetSettingPost')}">
  22. <div class="panel panel-default">
  23. <div class="panel-heading">
  24. <input class="form-control-widget-title" type="text" value="{$widget.title}"
  25. name="widget[title]">
  26. <label class="checkbox-inline pull-right">
  27. <php>$display_checked=empty($widget['display'])?'':'checked';</php>
  28. <input type="checkbox"
  29. name="widget[display]"
  30. value="1"
  31. {$display_checked}>
  32. 显示
  33. </label>
  34. </div>
  35. <div class="panel-body">
  36. <div>
  37. <!-- Nav tabs -->
  38. <ul class="nav nav-tabs" role="tablist">
  39. <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">属性</a></li>
  40. <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">样式</a></li>
  41. </ul>
  42. <!-- Tab panes -->
  43. <div class="tab-content">
  44. <div role="tabpanel" class="tab-pane active" id="home">
  45. <br>
  46. {:_parse_vars($widget['vars'],'widget[vars]',2)}
  47. </div>
  48. <div role="tabpanel" class="tab-pane" id="profile">
  49. <br>
  50. {:_parse_vars($widget['css'],'widget[css]',2)}
  51. </div>
  52. </div>
  53. </div>
  54. <div class="form-group" style="display: none;">
  55. <input type="hidden" name="file_id" value="{$file_id}"/>
  56. <input type="hidden" name="widget_id" value="{$widget_id}"/>
  57. <input type="hidden" name="block_name" value="{$block_name}"/>
  58. <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0" id="submit-btn">保存</button>
  59. </div>
  60. </div>
  61. </div>
  62. </form>
  63. </div>
  64. <include file="theme/scripts"/>
  65. </body>
  66. </html>