core/api/modules/set_img/index.html

60 lines
2.7 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{include file=$header_admin h1="Изменить магазин" title="Изменить магазин"}
<div class="alert alert-primary" role="alert">
Изменения сохраняются автоматически
</div>
<section class="container">
{assign var=json value=$info[0].json|uns}
<button type="button" class="btn btn-secondary" data-link="/magaz_list_admin/"><i class="fas fa-list mr-2"></i></i> Магазины</button>
<button type="button" class="btn btn-danger del" data-id="{$list[customer].id}"><i class="fas fa-trash mr-2"></i>Удалить</button>
<form action="" method="post" enctype='multipart/form-data' id="new_magazin_form">
<input type="hidden" name="act" value="nm">
<div class="mb-3 row">
<div class="col col-sm col-md-6 col-lg-6 col-xl-6 col-xxl-6">
<label class="form-label">Логотип магазина</label>
<input type="file" class="form-control" name="logo">
</div>
<div class="col col-sm col-md col-lg col-xl col-xxl">
<img src="/img/tc/magazin/{$json.logo}.jpg" style="width: 100%;">
</div>
</div>
<div class="mb-3 row">
<div class="col col-sm col-md-6 col-lg-6 col-xl-6 col-xxl-6">
<label class="form-label">Фото магазина</label>
<input type="file" class="form-control" name="file">
</div>
<div class="col col-sm col-md col-lg col-xl col-xxl">
<img src="/img/tc/magazin/{$json.img}.jpg" style="width: 100%;">
</div>
</div>
<div class="alert alert-secondary" role="alert">
Подготовьте изображение размером 2000 х 1333 JPG и загрузите
</div>
<div class="mb-3">
<label class="form-label">Название магазина</label>
<input type="text" name="txt" value='{$info[0].txt}' class="form-control fast-edit" data-type="string" data-name="txt" data-id="{$smarty.get.id}">
</div>
<div class="mb-3">
<label class="form-label">Категория</label>
<select class="form-control" name="parent">
<option>Пункт 1</option>
<option>Пункт 2</option>
</select>
</div>
<div class="mb-3">
<label class="form-label">Описание</label>
<textarea name="opis" class="form-control fast-edit" data-type="json" data-name="opis" data-id="{$smarty.get.id}">{$json.opis}</textarea>
</div>
</form>
</section>
{include file=$footer_admin}