add company-manager role
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use asmoday74\ckeditor5\EditorClassic;
|
||||
use backend\modules\card\models\ResumeTemplate;
|
||||
use common\helpers\StatusHelper;
|
||||
use mihaildev\ckeditor\CKEditor;
|
||||
use mihaildev\elfinder\InputFile;
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\ActiveForm;
|
||||
@ -27,10 +27,11 @@ use yii\widgets\ActiveForm;
|
||||
]
|
||||
) ?>
|
||||
|
||||
<?= $form->field($model, 'template_body')->widget(EditorClassic::className(), [
|
||||
'clientOptions' => [
|
||||
'language' => 'ru',
|
||||
]
|
||||
<?= $form->field($model, 'template_body')->widget(CKEditor::className(),[
|
||||
'editorOptions' => [
|
||||
'preset' => 'full',
|
||||
'inline' => false,
|
||||
],
|
||||
]); ?>
|
||||
|
||||
<?= $form->field($model, 'header_text')->textInput(['maxlength' => true]) ?>
|
||||
|
@ -1,9 +1,8 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\grid\GridView;
|
||||
use yii\helpers\Html;
|
||||
use yii\helpers\Url;
|
||||
use yii\widgets\ListView;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $searchModel backend\modules\card\models\UserCardSearch */
|
||||
@ -84,7 +83,16 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
]),
|
||||
],
|
||||
|
||||
['class' => 'yii\grid\ActionColumn'],
|
||||
['class' => 'yii\grid\ActionColumn',
|
||||
'template' => '{view} {update} {permit} {delete}',
|
||||
'buttons' =>
|
||||
[
|
||||
'permit' => function ($url, $model) {
|
||||
return Html::a('<span class="glyphicon glyphicon-wrench"></span>', Url::to(['/permit/user/view', 'id' => $model->id_user]), [
|
||||
'title' => Yii::t('yii', 'Change user role')
|
||||
]); },
|
||||
]
|
||||
],
|
||||
],
|
||||
]);
|
||||
echo "<h3>Сумма зарплат: " . $searchModel->total . "</h3>";
|
||||
|
Reference in New Issue
Block a user