mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-26 15:58:41 +00:00
63 lines
2.4 KiB
PHP
63 lines
2.4 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package Modules\Media
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
use Modules\Media\Models\PathSettings;
|
|
use phpOMS\Uri\UriFactory;
|
|
|
|
/**
|
|
* @todo Orange-Management/Modules#58
|
|
* Implement drag/drop upload
|
|
*/
|
|
|
|
/**
|
|
* @var \phpOMS\Views\View $this
|
|
*/
|
|
?>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="box">
|
|
<a class="button" href="<?= UriFactory::build('{/prefix}media/list?path={?path}'); ?>">Back</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<form method="PUT" id="media-uploader" action="<?= UriFactory::build('{/api}media'); ?>">
|
|
<div class="portlet">
|
|
<div class="portlet-head"><?= $this->getHtml('Upload') ?></div>
|
|
<div class="portlet-body">
|
|
<table class="layout wf-100">
|
|
<tr><td><label for="iPath"><?= $this->getHtml('Path') ?></label>
|
|
<tr><td><input type="text" id="iPath" name="virtualPath" value="<?= $this->request->getUri()->getQuery('path') ?? ''; ?>" disabled>
|
|
<tr><td><label><?= $this->getHtml('Settings') ?></label>
|
|
<tr><td><input type="checkbox" id="iAddCollection" name="addcollection" checked><label for="iAddCollection"><?= $this->getHtml('AddToCollection') ?></label>
|
|
<tr><td><label for="iPathSettings"><?= $this->getHtml('PathSettings') ?></label>
|
|
<tr><td>
|
|
<select id="iPathSettings" name="pathsettings">
|
|
<option value="<?= PathSettings::FILE_PATH ?>" selected><?= $this->getHtml('FilePath') ?>
|
|
<option value="<?= PathSettings::RANDOM_PATH ?>"><?= $this->getHtml('RandomPath') ?>
|
|
</select>
|
|
<tr><td><label for="iFiles"><?= $this->getHtml('Files') ?></label>
|
|
<tr><td><input type="file" id="iFiles" name="files" multiple>
|
|
</table>
|
|
</div>
|
|
<div class="portlet-foot">
|
|
<input type="submit" id="iMediaCreate" name="mediaCreateButton" value="<?= $this->getHtml('Create', '0', '0'); ?>">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|