diff --git a/frontend/views/accounts/participant-edit.php b/frontend/views/accounts/participant-edit.php index d5824b9..05ca1eb 100644 --- a/frontend/views/accounts/participant-edit.php +++ b/frontend/views/accounts/participant-edit.php @@ -1,6 +1,7 @@
Добавить фотографию в личный альбом данного проекта:
status == 1 && !empty($model->gallery)) { - echo $form->field($model->portfolioGallery, 'caption')->textInput(); - echo Html::tag('div', ImageUploader::widget([ - 'model' => $model->gallery, - 'field' => 'photo', - 'size' => [ - [ - 'width' => 152, - 'height' => 108, - ], - ], - 'multi' => true, - 'gallery' => $model->gallery->photo, - 'name' => 'Загрузить фото галереи', - ]), [ 'class' => 'admin-gallery-photos-load-wr style' ]); - } else { - echo Html::tag('p', 'Для добавления фотографий Вы должны подтвердить свое участие'); - } + if($model->status == 1 && !empty( $model->gallery )) { + echo $form->field($model->portfolioGallery, 'caption') + ->widget(CKEditor::className(), [ 'editorOptions' => [ 'preset' => 'basic' ] ]); + echo Html::tag('div', ImageUploader::widget([ + 'model' => $model->gallery, + 'field' => 'photo', + 'size' => [ + [ + 'width' => 152, + 'height' => 108, + ], + ], + 'multi' => true, + 'gallery' => $model->gallery->photo, + 'name' => 'Загрузить фото галереи', + ]), [ 'class' => 'admin-gallery-photos-load-wr style' ]); + } else { + echo Html::tag('p', 'Для добавления фотографий Вы должны подтвердить свое участие'); + } ?>