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

{% block title %}授权码设置 - {{ parent() }}{% endblock %}

{% set submenu = 'key' %}

{% set script_controller = 'setting/cloud-key' %}

{% block maincontent %}

<div class="page-header"><h1>授权码设置</h1></div>

{{ web_macro.flash_messages() }}

<form class="form-horizontal" id="cloud-setting-form" method="post" novalidate>

  <div class="form-group">
    <label class="col-md-3 control-label">AccessKey</label>
    <div class="col-md-6">
      <p class="form-control-static">{{ setting('storage.cloud_access_key') }}</p>
    </div>
  </div>

  <div class="form-group">
    <label class="col-md-3 control-label">SecretKey</label>
    <div class="col-md-6">
      <p class="form-control-static">
        {{ setting('storage.cloud_secret_key') }}
      </p>
    </div>
  </div>

  <div class="form-group">
    <div class="col-md-6 col-md-offset-3">
      <a href="{{ path('admin_setting_cloud_key_update') }}" class="btn btn-sm btn-default">设置新的授权码</a>
      </div>
  </div>

  <div class="form-group" id="loading-text">
    <div class="col-md-6 col-md-offset-3">
      <p class="text-warning"><strong>正在读取授权信息，请稍等...</strong></p>
    </div>
  </div>

  <div id="key-license-info" data-url="{{ path('admin_setting_cloud_key_info') }}">
    
  </div>

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

{% endblock %}