{% extends 'admin/layout.html.twig' %}

{% set menu = 'admin_article_setting' %}
{% set script_controller = 'article/setting' %}

{% block main %}


{{ web_macro.flash_messages() }}

  <form class="form-horizontal" id="article-form" method="post">
    
    <div class="form-group">
      <div class="col-md-2 control-label">
        <label for="name">{{'频道名称'|trans}}</label>
      </div>
      <div class="col-md-8 controls">
        <input type="text" id="name" name="name" class="form-control" value="{{ articleSetting.name }}">
      </div>
    </div>

    <div class="form-group">
      <div class="col-md-2 control-label">
        <label for="pageNums">{{'列表每页资讯数'|trans}}</label> 
      </div>
      <div class="col-md-8 controls">
        <input type="text" id="pageNums" name="pageNums" class="form-control" value="{{ articleSetting.pageNums }}">
      </div>
    </div>

    <div class="form-group">
      <div class="col-md-2 control-label"></div>
      <div class="controls col-md-8">
        <button type="submit" class="btn btn-primary">{{'提交'|trans}}</button>  
      </div>
    </div>

    <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
  </form>

{% endblock %}