From c5227f1ee4c44009ce2e239ff3a9ca95aeb48c0b Mon Sep 17 00:00:00 2001 From: akosse Date: Fri, 24 Jan 2020 17:38:25 +0300 Subject: [PATCH] frontend user-card view --- .../controllers/AccessesController.php | 5 ++++ .../modules/card/views/user-card/_form.php | 3 --- .../modules/card/views/user-card/view.php | 23 ------------------- 3 files changed, 5 insertions(+), 26 deletions(-) diff --git a/backend/modules/accesses/controllers/AccessesController.php b/backend/modules/accesses/controllers/AccessesController.php index 54a59db..63f10bb 100755 --- a/backend/modules/accesses/controllers/AccessesController.php +++ b/backend/modules/accesses/controllers/AccessesController.php @@ -112,6 +112,11 @@ class AccessesController extends Controller return $this->redirect(['index']); } + public function actionCustomDelete($id) + { + + } + /** * Finds the Accesses model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. diff --git a/frontend/modules/card/views/user-card/_form.php b/frontend/modules/card/views/user-card/_form.php index e510d86..4cc1194 100755 --- a/frontend/modules/card/views/user-card/_form.php +++ b/frontend/modules/card/views/user-card/_form.php @@ -33,9 +33,6 @@ use yii\helpers\ArrayHelper; [ 'data' => ArrayHelper::map(Skill::find()->all(), 'id', 'name'), 'options' => ['placeholder' => '...', 'class' => 'form-control', 'multiple' => true], - 'pluginOptions' => [ - 'allowClear' => true - ], ] )->label('Навыки'); ?> diff --git a/frontend/modules/card/views/user-card/view.php b/frontend/modules/card/views/user-card/view.php index ee26b36..bc8d557 100755 --- a/frontend/modules/card/views/user-card/view.php +++ b/frontend/modules/card/views/user-card/view.php @@ -21,34 +21,11 @@ $this->title = 'Профиль'; 'attributes' => [ ['label' => 'ФИО', 'attribute' => 'fio',], ['label' => 'Email', 'attribute' => 'email',], - [ - 'attribute' => 'gender', - 'value' => $model->gendersText, - ], ['label' => 'Дата рождения', 'attribute' => 'dob',], - [ - 'attribute' => 'status', - 'value' => $model->status0->name, - ], [ 'attribute' => 'position_id', 'value' => (isset($model->position->name)) ? $model->position->name : 'Без должности', ], - [ - 'attribute' => 'Фото', - 'format' => 'raw', - 'value' => function ($model) { - return Html::tag('img', null, ['src' => $model->photo, 'width' => '100px']); - } - ], - [ - 'attribute' => 'Резюме', - 'format' => 'raw', - 'value' => function ($model) { - return Html::a('Скачать', $model->resume, ['target' => '_blank']); - } - ], - ['label' => 'Добвлен', 'attribute' => 'created_at',], ], ]); ?>