52 lines
2.2 KiB
HTML
52 lines
2.2 KiB
HTML
|
<?php Block::put('breadcrumb') ?>
|
||
|
<ul>
|
||
|
<li><a href="<?= Backend::url('graker/photoalbums/albums') ?>"><?= e(trans('graker.photoalbums::lang.plugin.albums')) ?></a></li>
|
||
|
<li><?= e(trans('graker.photoalbums::lang.plugin.upload_photos_title')) ?></li>
|
||
|
</ul>
|
||
|
<?php Block::endPut() ?>
|
||
|
|
||
|
<?php if (!$this->fatalError): ?>
|
||
|
<?= Form::open(['file' => TRUE, 'class' => 'layout',]) ?>
|
||
|
<div class="layout-row">
|
||
|
<div class="form-group">
|
||
|
<?= Form::label('album', e(trans('graker.photoalbums::lang.plugin.album_to_upload')) ) ?>
|
||
|
<?= Form::select('album', $this->getAlbumsList()) ?>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<div class="field-fileupload" data-url="<?= Backend::url('graker/photoalbums/upload/post_files') ?>">
|
||
|
<div class="btn btn-primary dz-message">
|
||
|
<?= e(trans('graker.photoalbums::lang.plugin.upload_photos')) ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<div id="filesContainer" class="dropzone-previews dropzone">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-buttons">
|
||
|
<div class="loading-indicator-container">
|
||
|
<button
|
||
|
type="submit"
|
||
|
data-request="onSave"
|
||
|
data-hotkey="ctrl+s, cmd+s"
|
||
|
data-load-indicator="<?= e(trans('graker.photoalbums::lang.plugin.saving_upload')) ?>"
|
||
|
class="btn btn-primary">
|
||
|
<?= e(trans('graker.photoalbums::lang.plugin.save_upload')) ?>
|
||
|
</button>
|
||
|
<span class="btn-text">
|
||
|
<?= e(trans('backend::lang.form.or')) ?> <a href="<?= Backend::url('graker/photoalbums/albums') ?>"><?= e(trans('backend::lang.form.cancel')) ?></a>
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<?= Form::close() ?>
|
||
|
|
||
|
<?php else: ?>
|
||
|
|
||
|
<p class="flash-message static error"><?= e($this->fatalError) ?></p>
|
||
|
<p><a href="<?= Backend::url('graker/photoalbums/albums') ?>" class="btn btn-default"><?= e(trans('graker.photoalbums::lang.errors.return_to_albums')) ?></a></p>
|
||
|
|
||
|
<?php endif ?>
|