{% extends "../theme.html" %}

{% block content %}
<link href="{{static_url('pc/lib/layui/css/layui.css')}}" rel="stylesheet">
{%include 'inc/menu.html'%}
<div class="pannel">
    <h2 style="font-weight: bold;">农场介绍修改</h2>
    <form class="formset" action="/main/index" method="post" autocomplete="off" target="f1">
            {% module xsrf_form_html() %}
        <input type="hidden" name="function" id="function" value="msg"/>
        <iframe id="f1" name="f1" style="display:none;"></iframe>
        <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>
        <div class="form-group">
            <input type="submit" class="button big primary" value="修改确认">
        </div>
    </form>
</div>
{% end %}

{% block script %}
<script type="text/javascript" src="{{static_url('pc/lib/layui/layui.js')}}"></script>
<script>
layui.use('layedit', function(){
  var layedit = layui.layedit;
  layedit.build('update_info', {
    tool: [
  'strong' //加粗
  ,'italic' //斜体
  ,'underline' //下划线
  ,'del' //删除线
  
  ,'|' //分割线
  
  ,'left' //左对齐
  ,'center' //居中对齐
  ,'right' //右对齐
  ,'link' //超链接
  ,'unlink' //清除链接
  ,'face' //表情
]
  }); //建立编辑器
});
</script>
{% end %}