title = '分享ID ' . $model->share_id; $this->params['breadcrumbs'][] = ['label' => '文件分享管理', 'url' => ['share-manage']]; $this->params['breadcrumbs'][] = $this->title; YiiAsset::register($this); JqueryAsset::register($this); ?>

title) ?>

status != 0): ?> 'btn btn-primary', 'id' => 'copy-link-button']) ?> $model->share_id, 'access_code' => $model->access_code], ['class' => 'btn btn-primary', 'target' => '_blank']) ?> $model->share_id], [ 'class' => 'btn btn-danger', 'data' => [ 'confirm' => '确定要取消分享?', 'method' => 'post', ], ]) ?> 'btn btn-primary disabled', 'id' => 'copy-link-button', 'aria-disabled' => 'true']) ?> 'btn btn-primary disabled', 'target' => '_blank', 'aria-disabled' => 'true']) ?> 'btn btn-danger disabled', 'aria-disabled' => 'true' ]) ?>

$model, 'attributes' => [ 'share_id', 'sharer_id', 'file_relative_path', 'access_code', 'creation_date', [ 'attribute' => 'status', 'label' => '分享状态', 'value' => function ($model) { return $model->status == 1 ? '有效' : '失效'; }, ], [ 'attribute' => 'dl_count', ], ], ]) ?>
registerJsFile('@web/js/share_view.js', ['depends' => [JqueryAsset::class], 'position' => View::POS_END]); ?>