<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\components\CHelper;
use backend\assets\AppAsset; 
$this->registerCssFile('@web/css/form.css');
AppAsset::register($this); 
$this->title = '系统设置';
$this->params['breadcrumbs'][] = ['label' => '七牛云存储', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<ul class="nav nav-tabs c-nav">
  <li role="presentation" class="active"><a>七牛云存储</a></li>
</ul>
    
<div class="sys-form">
    <form method="post" action="<?php echo Yii::$app->urlManager->createUrl(['qiniu/index']);?>" class="form-horizontal" enctype='multipart/form-data'>
    <input type="hidden" name="_csrf-backend" value="<?=Yii::$app->request->getCsrfToken() ?>">
    <div class="form-group">
        <label class="col-sm-2 control-label">是否开启</label>
        <div class="col-sm-3">
            <label class="radio-inline"><input type="radio" name="qiniu_open" value="1" <?php if($list['qiniu_open']['value']==1){?>checked<?php }?>>开启</label>
            <label class="radio-inline"><input type="radio" name="qiniu_open" value="0" <?php if($list['qiniu_open']['value']==0){?>checked<?php }?>>关闭</label>
        </div>
    </div>
	<div class="form-group">
        <label class="col-sm-2 control-label">存储空间名</label>
        <div class="col-sm-3">
            <input type="text" name="qiniu_bucket" class="form-control" value="<?php echo $list['qiniu_bucket']['value']?>">
        </div>
    </div>
	<div class="form-group">
        <label class="col-sm-2 control-label">accessKey</label>
        <div class="col-sm-4">
            <input type="text" name="qiniu_accessKey" class="form-control" value="<?php echo $list['qiniu_accessKey']['value']?>">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">secretKey</label>
        <div class="col-sm-4">
            <input type="text" name="qiniu_secretKey" class="form-control" value="<?php echo $list['qiniu_secretKey']['value']?>">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">外链域名</label>
        <div class="col-sm-3">
            <input type="text" name="qiniu_domain" class="form-control" value="<?php echo $list['qiniu_domain']['value']?>">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label"></label>
        <div class="col-sm-6">
        	<input type="submit" name="" value="保存" class="btn btn-primary">
        </div>
    </div>

    </form>

</div>
