AdminGroup::GROUP_FLORIST, // 89
];
-// Ищем группу "Работники магазинов" по имени
-$workersGroup = AdminGroup::find()->where(['name' => AdminGroup::GROUP_STORE_WORKERS_NAME])->one();
-if ($workersGroup) {
- $specialGroups[] = $workersGroup->id;
-}
-
// Подключаем CSS и JS файлы
$this->registerCssFile('/css/grade/admin-update.css');
$this->registerJsFile('/js/grade/admin-update.js', ['position' => View::POS_END, 'depends' => [\yii\web\JqueryAsset::class]]);
?>
<div id="positionFieldSpecial" style="display: <?= $isSpecialGroup ? 'block' : 'none' ?>;">
- <?php PrintBlockHelper::printBlock('Ð\94олжноÑ\81Ñ\82Ñ\8c', $form->field($model, 'employee_position_id')->dropDownList(
+ <?php PrintBlockHelper::printBlock('Ð\93Ñ\80ейд', $form->field($model, 'employee_position_id')->dropDownList(
ArrayHelper::map($positions, 'id', 'name'), ['prompt' => 'Выберите должность', 'id' => 'employee-position-select', 'onchange' => 'checkGradeGroupMatch();']
)->label(false)) ?>
+ <div class="mb-2">
+ <?= Html::a('Список грейдов', ['/crud/employee-position'], ['target' => '_blank', 'class' => 'btn btn-link p-0']) ?>
+ </div>
+
<?php
// Определяем значение смены из AdminGroup->name
$shiftValue = null;
}
?>
<div id="shiftField" style="display: <?= $shiftValue !== null ? 'block' : 'none' ?>;">
- <?php PrintBlockHelper::printBlock('Смена', Html::textInput('shift_display', $shiftValue ?? '', [
+ <?php PrintBlockHelper::printBlock('Смена (согласно должности-группе)', Html::textInput('shift_display', $shiftValue ?? '', [
'class' => 'form-control shift-display-readonly',
'readonly' => true,
'id' => 'shift-display-input'
?>
<div class="row mb-3">
<div class="col-4">
- <label class="font-weight-bold">Смена:</label>
+ <label class="font-weight-bold">Смена (согласно должности-группе):</label>
<?= Html::textInput('shift_display', $shiftValue, [
'class' => 'form-control shift-display-readonly',
'readonly' => true