mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-15 16:58:42 +00:00
style fixes, bug fixes
This commit is contained in:
parent
8558bd4d5d
commit
754d512c3e
|
|
@ -25,7 +25,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="portlet">
|
<div class="portlet">
|
||||||
<div class="portlet-head"><?= $this->getHtml('Types'); ?><i class="fa fa-download floatRight download btn"></i></div>
|
<div class="portlet-head"><?= $this->getHtml('Types'); ?><i class="lni lni-download download btn end-xs"></i></div>
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
<table id="typeList" class="default sticky">
|
<table id="typeList" class="default sticky">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
||||||
|
|
@ -1123,6 +1123,13 @@ final class ApiController extends Controller
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!\is_file($media->getAbsolutePath())) {
|
||||||
|
$this->fillJsonResponse($request, $response, NotificationLevel::ERROR, 'Media', 'Media could not be exported. Please try again.', []);
|
||||||
|
$response->header->status = RequestStatusCode::R_500;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->setMediaResponseHeader($media, $request, $response);
|
$this->setMediaResponseHeader($media, $request, $response);
|
||||||
$view = $this->createView($media, $request, $response);
|
$view = $this->createView($media, $request, $response);
|
||||||
$view->setData('path', __DIR__ . '/../../../');
|
$view->setData('path', __DIR__ . '/../../../');
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ $next = empty($this->media)
|
||||||
: '{%}?{?}&mpivot=' . \end($this->media)->id . '&mptype=n';
|
: '{%}?{?}&mpivot=' . \end($this->media)->id . '&mptype=n';
|
||||||
?>
|
?>
|
||||||
<div class="portlet">
|
<div class="portlet">
|
||||||
<div class="portlet-head"><?= $this->getHtml('Media', 'Media'); ?><i class="fa fa-download floatRight download btn"></i></div>
|
<div class="portlet-head"><?= $this->getHtml('Media', 'Media'); ?><i class="lni lni-download download btn end-xs"></i></div>
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
<table class="default">
|
<table class="default">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user