core/api/modules/page_edit/index.html

85 lines
3.6 KiB
HTML

{if $smarty.session.dostup=='a' || $smarty.session.dostup=='e'}
{include file=$header_admin title="Создать страницу" h1="Новая страница" settings_mod="1"}
{else}
{include file=$header title="Создать страницу" h1="Новая страница"}
{/if}
<h1 class="title text-center">
<!-- i class="fa fa-cog" style="font-size: 25pt;" title="Настройки" data-toggle="modal" data-target="#mod_settings"></i -->
</h1>
<!-- form id="form__upload_main_img" action="" method="post" style="display: none;">
<input type="file" name="main_img" id="input__main_img">
<input type="hidden" name="act" value="upload_main_img">
<input type="hidden" name="id" value="{$smarty.const.ID}">
<input type="hidden" name="mod" value="{$smarty.const.MOD}">
</form -->
<div class="ibox">
<div class="ibox-head">
<div class="ibox-title">Редактирование страницы: {$page[0].title|substr:15}</div>
<ul class="nav nav-tabs tabs-line pull-right">
<li class="nav-item">
<a class="nav-link active" href="#tab-8-1" data-toggle="tab"><i class="fa fa-taxi"></i>Редактор</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#tab-8-2" data-toggle="tab"><i class="fa fa-bus"></i> Картинки</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#tab-8-4" data-toggle="tab"><i class="fa fa-plane"></i> Опции</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#tab-8-3" data-toggle="tab"><i class="fa fa-plane"></i> Настройки модуля</a>
</li>
</ul>
</div>
<div class="ibox-body">
<div class="tab-content">
<div class="tab-pane fade show active" id="tab-8-1">
{include file=$editor}
</div>
<div class="tab-pane" id="tab-8-2">
<div id="drop-area" class="container mt-2">
<form class="my-form">
<p>Загрузите фотографии</p>
<input type="file" id="fileElem" multiple accept="image/*" onchange="handleFiles(this.files)">
<label class="button" for="fileElem">Выбрать файлы</label>
</form>
<progress id="progress-bar" max=100 value=0></progress>
<div id="gallery"></div>
</div>
<div class="row">
{section name=customer loop=$img} {if $img[customer].id}
<div class="col-md-4">
<img src="/api/img/gray/gif/gray.gif" class="lazy" data-original="/img/users/{$smarty.session.user_id}/{$img[customer].rnd_name}.jpg" style="width: 100%;">
</div>
{/if} {/section}
</div>
</div>
<div class="tab-pane fade" id="tab-8-3">
</div>
<div class="tab-pane fade" id="tab-8-4">
</div>
</div>
<br>
</div>
</div>
{if $smarty.session.dostup=='a' || $smarty.session.dostup=='e'} {include file=$footer_admin} {else} {include file=$footer} {/if}