Initial commit. In user-questionnaire add checkAnswers and calculateScore

This commit is contained in:
iIronside 2021-10-22 16:55:08 +03:00
parent bfeb8d08c7
commit 2882b8767c
164 changed files with 898 additions and 320 deletions

View File

@ -59,11 +59,17 @@ return [
'achievements' => [
'class' => 'backend\modules\achievements\Achievements',
],
'test' => [
'class' => 'backend\modules\test\Test',
],
'questionnaire' => [
'class' => 'backend\modules\questionnaire\Questionnaire',
],
],
'components' => [
'request' => [
'csrfParam' => '_csrf-backend',
'baseUrl' => '/secure',
'baseUrl' => '', // /secure
],
'user' => [
'identityClass' => 'common\models\User',

View File

0
backend/modules/accesses/views/accesses/all.php Normal file → Executable file
View File

0
backend/modules/calendar/Calendar.php Normal file → Executable file
View File

View File

View File

0
backend/modules/calendar/views/ajax/_gridView.php Normal file → Executable file
View File

0
backend/modules/calendar/views/calendar/index.php Normal file → Executable file
View File

0
backend/modules/calendar/views/calendar/table.php Normal file → Executable file
View File

0
backend/modules/card/views/user-card/password.php Normal file → Executable file
View File

0
backend/modules/holiday/views/holiday/calendar.php Normal file → Executable file
View File

0
backend/modules/interview/Interview.php Normal file → Executable file
View File

View File

View File

0
backend/modules/interview/models/InterviewRequest.php Normal file → Executable file
View File

View File

0
backend/modules/interview/views/default/index.php Normal file → Executable file
View File

0
backend/modules/interview/views/interview/_form.php Normal file → Executable file
View File

0
backend/modules/interview/views/interview/_search.php Normal file → Executable file
View File

0
backend/modules/interview/views/interview/create.php Normal file → Executable file
View File

0
backend/modules/interview/views/interview/index.php Normal file → Executable file
View File

0
backend/modules/interview/views/interview/update.php Normal file → Executable file
View File

0
backend/modules/interview/views/interview/view.php Normal file → Executable file
View File

0
backend/modules/options/Options.php Normal file → Executable file
View File

View File

View File

0
backend/modules/options/models/Options.php Normal file → Executable file
View File

0
backend/modules/options/models/OptionsSearch.php Normal file → Executable file
View File

0
backend/modules/options/views/default/index.php Normal file → Executable file
View File

0
backend/modules/options/views/options/_form.php Normal file → Executable file
View File

0
backend/modules/options/views/options/_search.php Normal file → Executable file
View File

0
backend/modules/options/views/options/create.php Normal file → Executable file
View File

0
backend/modules/options/views/options/index.php Normal file → Executable file
View File

0
backend/modules/options/views/options/update.php Normal file → Executable file
View File

0
backend/modules/options/views/options/view.php Normal file → Executable file
View File

0
backend/modules/reports/Reports.php Normal file → Executable file
View File

0
backend/modules/reports/controllers/AjaxController.php Normal file → Executable file
View File

View File

View File

0
backend/modules/reports/models/Month.php Normal file → Executable file
View File

0
backend/modules/reports/models/ReportsSearch.php Normal file → Executable file
View File

0
backend/modules/reports/models/ReportsTaskSearch.php Normal file → Executable file
View File

View File

View File

0
backend/modules/reports/views/default/index.php Normal file → Executable file
View File

View File

0
backend/modules/reports/views/reports/_form.php Normal file → Executable file
View File

0
backend/modules/reports/views/reports/_search.php Normal file → Executable file
View File

0
backend/modules/reports/views/reports/_user.php Normal file → Executable file
View File

View File

0
backend/modules/reports/views/reports/create.php Normal file → Executable file
View File

0
backend/modules/reports/views/reports/group.php Normal file → Executable file
View File

0
backend/modules/reports/views/reports/index.php Normal file → Executable file
View File

0
backend/modules/reports/views/reports/list.php Normal file → Executable file
View File

View File

0
backend/modules/reports/views/reports/update.php Normal file → Executable file
View File

0
backend/modules/reports/views/reports/view.php Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

0
backend/modules/settings/views/skill-category/view.php Normal file → Executable file
View File

View File

View File

@ -46,7 +46,7 @@
],
'visible' => Yii::$app->user->can('confidential_information')
],
['label' => 'Баланс', 'icon' => 'dollar', 'url' => ['/balan ce/balance'], 'active' => \Yii::$app->controller->id == 'balance', 'visible' => Yii::$app->user->can('confidential_information')],
['label' => 'Баланс', 'icon' => 'dollar', 'url' => ['/balance/balance'], 'active' => \Yii::$app->controller->id == 'balance', 'visible' => Yii::$app->user->can('confidential_information')],
['label' => 'Отпуска', 'icon' => 'plane', 'url' => ['/holiday/holiday'], 'active' => \Yii::$app->controller->id == 'holiday', 'visible' => Yii::$app->user->can('confidential_information')],
['label' => 'Достижения', 'icon' => 'trophy', 'url' => ['/achievements/achievements'], 'active' => \Yii::$app->controller->id == 'achievements', 'visible' => Yii::$app->user->can('confidential_information')],
['label' => 'Доступы', 'icon' => 'key', 'url' => ['/accesses/accesses'], 'active' => \Yii::$app->controller->id == 'accesses', 'visible' => Yii::$app->user->can('confidential_information')],
@ -62,6 +62,20 @@
'visible' => Yii::$app->user->can('confidential_information'),
'badge' => '<span class="badge badge-info right">4</span>'
],
[
'label' => 'Анкеты', 'icon' => 'gears', 'url' => '#',
'items' => [
['label' => 'Категории анкет', 'icon' => 'file-text-o', 'url' => ['/questionnaire/questionnaire-category'], 'active' => \Yii::$app->controller->id == 'questionnaire-category'],
['label' => 'Список анкет', 'icon' => 'file-text-o', 'url' => ['/questionnaire/questionnaire'], 'active' => \Yii::$app->controller->id == 'questionnaire'],
['label' => 'Типы вопросов', 'icon' => 'file-text-o', 'url' => ['/questionnaire/question-type'], 'active' => \Yii::$app->controller->id == 'question-type'],
['label' => 'Вопросы', 'icon' => 'file-text-o', 'url' => ['/questionnaire/question'], 'active' => \Yii::$app->controller->id == 'question'],
['label' => 'Ответы', 'icon' => 'file-text-o', 'url' => ['/questionnaire/answer'], 'active' => \Yii::$app->controller->id == 'answer'],
['label' => 'Анкеты пользователей', 'icon' => 'file-text-o', 'url' => ['/questionnaire/user-questionnaire'], 'active' => \Yii::$app->controller->id == 'user-questionnaire'],
['label' => 'Ответы пользователей', 'icon' => 'file-text-o', 'url' => ['/questionnaire/user-response'], 'active' => \Yii::$app->controller->id == 'user-response'],
],
// 'visible' => Yii::$app->user->can('confidential_information')
],
/*['label' => 'Gii', 'icon' => 'file-code-o', 'url' => ['/gii']],
['label' => 'Debug', 'icon' => 'dashboard', 'url' => ['/debug']],

0
backend/web/css/calendar.css Normal file → Executable file
View File

0
backend/web/js/site.js Normal file → Executable file
View File

0
backend/widgets/AppAsset.php Normal file → Executable file
View File

0
backend/widgets/Calendar.php Normal file → Executable file
View File

0
backend/widgets/Calendar/assets/css/style.css Normal file → Executable file
View File

0
backend/widgets/Calendar/assets/js/script.js Normal file → Executable file
View File

View File

0
backend/widgets/Calendar/assets/js/src/DateHelper.js Normal file → Executable file
View File

0
common/behaviors/GsCors.php Normal file → Executable file
View File

0
common/behaviors/LogBehavior.php Normal file → Executable file
View File

0
common/models/Achievement.php Normal file → Executable file
View File

0
common/models/AchievementUserCard.php Normal file → Executable file
View File

0
common/models/AuthAssignment.php Normal file → Executable file
View File

0
common/models/ChangeHistory.php Normal file → Executable file
View File

0
common/models/InterviewRequest.php Normal file → Executable file
View File

0
common/models/Options.php Normal file → Executable file
View File

0
common/models/Reports.php Normal file → Executable file
View File

0
common/models/ReportsTask.php Normal file → Executable file
View File

0
common/models/SkillCategory.php Normal file → Executable file
View File

View File

@ -33,7 +33,10 @@
"edofre/yii2-fullcalendar-scheduler": "V1.1.12",
"asmoday74/yii2-ckeditor5": "*",
"kavalar/telegram_bot": "^0.2.0",
"kavalar/yii2-telegram-bot": "^0.1.0"
"kavalar/yii2-telegram-bot": "^0.1.0",
"ramsey/uuid": "^4.2",
"kartik-v/yii2-widget-depdrop": "dev-master",
"2amigos/yii2-transliterator-helper": "*"
},
"require-dev": {
"yiisoft/yii2-debug": "~2.0.0",

1189
composer.lock generated

File diff suppressed because it is too large Load Diff

0
console/controllers/RbacController.php Normal file → Executable file
View File

0
console/controllers/SqlController.php Normal file → Executable file
View File

View File

View File

View File

View File

Some files were not shown because too many files have changed in this diff Show More