{% extends 'TopxiaAdminBundle::layout.html.twig' %}

{% set menu = 'admin_setting_massage' %}

{% block main %}

<div class="page-header"><h1>CDN设置</h1></div>

{{ web_macro.flash_messages() }}

<form class="form-horizontal" id="cdn-form" method="post">
  
  <div class="form-group">
    <label class="col-md-2 control-label">状态</label>
    <div class="col-md-8 controls radios">
      {{ radios('enabled', {1:'启用', 0:'关闭'}, cdn.enabled) }}
    </div>
  </div>

  <div class="form-group">
    <label class="col-md-2 control-label">URL</label>
    <div class="col-md-8 controls">
      <input type="text" name="url" class="form-control" value="{{cdn.url}}">
    </div>
  </div>

  <div class="form-group">
    <div class="controls col-md-offset-2 col-md-8">
      <button type="submit" class="btn btn-primary">提交</button>
    </div>
  </div>

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

</form>

{% endblock %}