index.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {% extends "../theme.html" %}
  2. {% block content %}
  3. <link href="{{static_url('pc/lib/layui/css/layui.css')}}" rel="stylesheet">
  4. {%include 'inc/menu.html'%}
  5. <div class="pannel">
  6. <h2 style="font-weight: bold;">农场介绍修改</h2>
  7. <form class="formset" action="/main/index" method="post" autocomplete="off" target="f1">
  8. {% module xsrf_form_html() %}
  9. <input type="hidden" name="function" id="function" value="msg"/>
  10. <iframe id="f1" name="f1" style="display:none;"></iframe>
  11. <textarea name="update_info" id="update_info" placeholder="请输入农场介绍" style="display: none;width: 100%;height: 300px;padding:10px;box-sizing: border-box;">{{data['setting']['farmInfo']['info']}}</textarea>
  12. <div class="form-group">
  13. <input type="submit" class="button big primary" value="修改确认">
  14. </div>
  15. </form>
  16. </div>
  17. {% end %}
  18. {% block script %}
  19. <script type="text/javascript" src="{{static_url('pc/lib/layui/layui.js')}}"></script>
  20. <script>
  21. layui.use('layedit', function(){
  22. var layedit = layui.layedit;
  23. layedit.build('update_info', {
  24. tool: [
  25. 'strong' //加粗
  26. ,'italic' //斜体
  27. ,'underline' //下划线
  28. ,'del' //删除线
  29. ,'|' //分割线
  30. ,'left' //左对齐
  31. ,'center' //居中对齐
  32. ,'right' //右对齐
  33. ,'link' //超链接
  34. ,'unlink' //清除链接
  35. ,'face' //表情
  36. ]
  37. }); //建立编辑器
  38. });
  39. </script>
  40. {% end %}