Skip to content

Commit

Permalink
0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sokolby committed May 19, 2017
1 parent ba8ee12 commit e736f91
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Module extends \yii\base\Module
/**
* @var string Module version
*/
protected $version = "0.9";
protected $version = "0.9.1";

/**
* @var string Alias for module
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Yii 2 Admin

Yii 2 Admin - User authentication module and admin dashboard

## New version released 05/18/2017 v.0.9
## New version released 05/19/2017 v.0.9.1

Based on https://github.com/amnah/yii2-user

Expand Down
1 change: 1 addition & 0 deletions models/Points.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function rules()
public function attributeLabels()
{
return [
'id' => Yii::t('user', 'ID бонусного счёта'),
'user_id' => Yii::t('user', 'Пользователь'),
'amount' => Yii::t('user', 'Баланс'),
'last_update' => Yii::t('user', 'Обновлены'),
Expand Down
4 changes: 2 additions & 2 deletions models/forms/LoginForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function validateUser()
} else {
$attribute = $this->module->loginEmail ? "Email" : "Username";
}
$this->addError("email", Yii::t("user", "$attribute not found"));
$this->addError("email", Yii::t("user", "$attribute не найден"));

// do we need to check $user->userAuths ???
}
Expand Down Expand Up @@ -150,7 +150,7 @@ public function attributeLabels()

return [
"email" => Yii::t("user", $attribute),
"password" => Yii::t("user", "Password"),
"password" => Yii::t("user", "пароль"),
"rememberMe" => Yii::t("user", "Remember Me"),
];
}
Expand Down
18 changes: 17 additions & 1 deletion views/receipt/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,27 @@
}
],
'date',
'img',
'data',
'img',
[
'attribute' => 'img',
'format'=>'raw',
'value' => function ($model) {
$out = "";
$imgs = json_decode($model->img);
foreach ($imgs as $img){
$out = "<a href='/user_receipt/".$model->user_id."/".$img."' target='_blank'><img src='/user_receipt/".$model->user_id."/".$img."' width='300'/></a></br>";
}
return $out;


}
],
'status',
'notes',
'api_sent',
'api_response',
'api_check_response',
],
]) ?>

Expand Down

0 comments on commit e736f91

Please sign in to comment.