<div> <button id="delete-artist" class="close cross" aria-hidden="true" type="button" title="Delete this release">×</button> <script> $('#delete-artist').on('click', function(e) { bootbox.confirm('Are you sure you want to delete this artist?', function(result) { if (result) $.post('<?php 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>
<td><?php echo XeditableWidget::widget(['type' => 'rdate', 'model' => $model, 'attribute' => 'date']); ?> </td> </tr> <tr> <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