echo $form->field($albumTranslation, 'title', ['inputOptions' => ['class' => 'form-control']]); ?> </div> <div class="col-md-12"> <?php echo $form->field($album, 'show')->checkbox(['class' => 'i-checks']); ?> </div> </div> </div> <div class="col-md-4"> <?php if (!empty($album->image_name)) { ?> <?php echo Html::img(GalleryAlbum::getImageSrc($album->image_name, 'thumb'), ['class' => 'img-thumbnail']); ?> <?php } ?> <?php echo $form->field($album, 'image_file')->fileInput(); ?> </div> </div> <?php echo Html::submitButton(Yii::t('blcms-gallery/backend/album', 'Save Album'), ['class' => 'btn btn-primary pull-right']); ?> </div> </div> </div>
?> </th> <th><?php echo Yii::t('blcms-gallery/backend/main', 'Delete'); ?> </th> </tr> </thead> <tbody> <?php foreach ($albums as $album) { ?> <tr> <td> <?php echo Html::img(GalleryAlbum::getImageSrc($album->image_name, 'thumb'), ['height' => '50']); ?> </td> <td> <?php echo $album->translation->title; ?> </td> <td> <?php if (count($languages) > 1) { ?> <?php $translations = ArrayHelper::index($album->translations, 'language_id'); ?> <?php