title = 'Галерея Фото'; $this->params[ 'breadcrumbs' ][] = $this->title; ?>
title ?>
Дата создания: date_add ?>
field($gallery, 'name') ->textInput([ 'class' => 'custom-input-2' ]) ?>
$gallery, 'field' => 'cover', 'size' => [ [ 'width' => 210, 'height' => 150, ], ], 'remover' => true, 'multi' => false, 'gallery' => $gallery->cover, 'name' => 'Загрузить главное фото', ]); ?>
getActiveValidators('cover') as $validator) { $client .= $validator->clientValidateAttribute($gallery, 'cover', $this); } $js = " $('#".$form->id."').yiiActiveForm( 'add', { container : '.admin-avatar', error : '.help-block', id : 'gallery-cover', input : '#gallery-cover', name : 'Gallery[cover]', validate: function(attribute, value, messages, deferred) { ".$client." } } ); "; $this->registerJs($js, $this::POS_LOAD); ?>
isNewRecord ? Yii::t('app', 'add') : 'Обновить', [ 'class' => 'input-blocks-wrapper button' ]) ?>
isNewRecord) { echo Html::a(Yii::t('app', 'delete'), [ 'accounts/gallery-delete', 'id' => $gallery->gallery_id, ], [ 'title' => Yii::t('app', 'delete'), 'aria-label' => Yii::t('app', 'delete'), 'data-confirm' => Yii::t('app', 'delete_confirm'), 'data-method' => 'post', 'data-pjax' => 0, ]); } ?>
request->referrer) ? \Yii::$app->request->referrer : [ 'accounts/gallery' ]) ?>
end(); ?>