Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yidashi committed Jul 11, 2016
1 parent dfd2661 commit d97875d
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 20 deletions.
15 changes: 15 additions & 0 deletions backend/helpers/Config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
/**
* Created by PhpStorm.
* User: yidashi
* Date: 16/7/11
* Time: 上午11:47
*/

namespace backend\helpers;


class Config
{

}
2 changes: 1 addition & 1 deletion backend/views/article/_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<?= $form->field($model, 'content')->widget(\yidashi\markdown\Markdown::className(), ['options' => ['style' => 'height:500px']]) ?>

<?= $form->field($model, 'cover')->widget(\yidashi\webuploader\Webuploader::className()) ?>
<?= $form->field($model, 'cover')->widget(\yidashi\webuploader\Webuploader::className(), ['options' => ['boxId' => 'cover']]) ?>

<?= $form->field($model, 'status')->radioList(\common\models\Article::getStatusList()) ?>

Expand Down
35 changes: 35 additions & 0 deletions backend/views/plugins/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
* author: yidashi
* Date: 2016/1/11
* Time: 18:01.
*/
use yii\helpers\Html;
use yii\widgets\ActiveForm;

$this->title = '网站设置';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="article-index">
<?php
$form = ActiveForm::begin();
echo \yii\grid\GridView::widget([
'dataProvider' => $dataProvider,
'layout' => '{items}',
'columns' => [
'desc',
[
'attribute' => 'value',
'value' => function($model, $key, $index) use ($form) {
return call_user_func_array([$form->field($model, "[$index]value")->label(false), $model->inputType['name']], $model->inputType['params']);
},
'format' => 'raw'
],
'name'
]
]);

echo Html::submitButton('提交', ['class' => 'btn btn-primary']);
ActiveForm::end();
?>
</div>
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dmstr/yii2-adminlte-asset": "*",
"yiisoft/yii2-composer": "2.0.4",
"yidashi/yii2-bootstrap-markdown": "2.0.1",
"yidashi/yii2-webuploader": "1.3.1",
"yidashi/yii2-webuploader": "1.3.2",
"yidashi/yii2-ueditor": "1.0.1",
"mihaildev/yii2-elfinder": "^1.0",
"qiniu/php-sdk": "^7.0",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion plugins/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions plugins/authclient/.env.example

This file was deleted.

7 changes: 7 additions & 0 deletions plugins/authclient/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
/**
* Created by PhpStorm.
* User: yidashi
* Date: 16/7/11
* Time: 上午11:29
*/
1 change: 0 additions & 1 deletion plugins/code/.env

This file was deleted.

2 changes: 0 additions & 2 deletions plugins/donation/.env

This file was deleted.

7 changes: 7 additions & 0 deletions plugins/donation/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
/**
* Created by PhpStorm.
* User: yidashi
* Date: 16/7/11
* Time: 下午1:49
*/

0 comments on commit d97875d

Please sign in to comment.