/** * @inheritdoc */ public function attributeLabels() { return ['id' => '', 'size' => Module::t("entity", "size"), 'name_on_server' => Module::t("entity", "name_on_server"), 'real_name' => Module::t("entity", "real_name"), 'url' => Module::t("entity", "file_url"), 'system_key' => Module::t("entity", "system_key")]; }
print $model->getAttribute("url"); ?> </a></td> <td><?php print $model->getAttribute("real_name"); ?> </td> <td> <?php if (empty($model->getAttribute("system_key"))) { ?> <a class="btn btn-mini btn-warning confirmable" type="button" data-confirm="<?php print Module::t("admin", "confirm_delete_entity"); ?> " href="<?php echo \Yii::$app->urlManager->createUrl(['/file/admin/delete/' . $id]); ?> " ><i class="glyphicon glyphicon-trash"></i></a> <?php } ?> </td> </tr> <?php }
public function exportMenu() { return ['admin' => [['label' => Module::t('admin', "Files"), 'url' => ['/file/admin']]]]; }