echo Url::toRoute(['artist/delete', 'id' => $artist->id], true); ?> '); }); }); </script> </div> <h1><?php echo XeditableWidget::widget(['type' => 'comname', 'model' => $artist, 'attribute' => 'original_name', 'addAttribute' => 'latin_name', 'displayValue' => $artist->getComname(), 'aClass' => 'artist-name']); ?> </h1> <div class="form-group"> <?php echo \app\components\TagsWidgetEditable::widget(['id' => 'artist-tags', 'owner' => $artist]); ?> </div> </div> <div class="col-md-4"> <?php echo \app\components\GalleryWidget::widget(['isNew' => false, 'images' => $artist->getPhotos()->addOrderBy('is_main DESC')->all(), 'ownerClass' => 'Photo', 'ownerId' => $artist->id]); ?> </div> <div class="col-md-8"> <p class="text-right"> <a href="<?php echo Url::toRoute(['create', 'artistId' => $artist->id]); ?>
<th>Type</th> <td><?php echo XeditableWidget::widget(['type' => 'select', 'model' => $model, 'attribute' => 'type', 'displayValue' => $model->getDisplayType(), 'source' => $model->getTypesMap()]); ?> </td> </tr> <tr> <th>Info</th> <td><?php echo XeditableWidget::widget(['type' => 'textarea', 'model' => $model, 'attribute' => 'info']); ?> </td> </tr> <tr> <th>Tags</th> <td> <?php echo \app\components\TagsWidgetEditable::widget(['id' => 'release-tags', 'owner' => $model]); ?> </td> </tr> </table> </div> <?php Modal::begin(['id' => 'track-modal', 'header' => '<h3>Update Track</h3>', 'closeButton' => []]); echo '<div class="loading"></div><div id="track-modal-content"></div>'; Modal::end(); ?> </div>