2025-06-16 18:28:08 +05:00

56 lines
2.7 KiB
HTML
Executable File
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.

<form id="addMagazion" action="/act/lk_edit_org">
<div class="row">
<input type="hidden" class="form-control" name="act" value="addMagazin">
<input type="hidden" class="form-control" name="org_id" value="{$smarty.get.id}">
<div class="col-md-6">
<label class="form-label">Регион</label>
<select class="form-control mt-2 mb-2" name="region_id" id="sel-parent-region">
{section name=customer loop=$region} {if $region[customer].id}
<option value="{$region[customer].id}" {if ($user_info["0"].region == $region[customer].id)} selected {/if}>{$region[customer].txt}</option>
{/if} {/section}
</select>
</div>
<div class="col-md-6">
<label class="form-label">Город</label>
<select class="form-control mt-2 mb-2" name="city_id" id="sel-children-city">
{section name=customer loop=$city} {if $city[customer].id}
<option value="{$city[customer].id}" data-chained="{$city[customer].region_id}" {if ($user_info['0'].city==$city[customer].id)} selected{/if}>{$city[customer].txt}</option>
{/if} {/section}
</select>
</div>
<div class="col-md-6">
<label class="form-label">Улица</label>
<input type="text" class="form-control" name="street" id="selStreet">
<p id="sitiesList" style="margin-top: 10px;"></p>
</div>
<div class="col-md-6">
<label class="form-label">Дом</label>
<input type="text" class="form-control" name="dom" id="dom">
</div>
<div class="col-md-6">
<label class="form-label">Название магазина</label>
<input type="text" class="form-control" name="txt">
</div>
<div class="col-md-6">
<div class="form-check form-switch" style="margin-top: 35px;">
<input class="form-check-input" type="checkbox" name="dostavka" id="flexSwitchCheckChecked" checked>
<label class="form-check-label" for="flexSwitchCheckChecked">Есть доставка</label>
</div>
</div>
<div class="col-3">
<input type="submit" class="btn btn-dark btn-ecomm mt-3" name="ok" value="Добавить">
</div>
</div>
</form>
<table class="table mt-3">
{section name=customer loop=$markets} {if $markets[customer].id}
<tr><td id="ml-{$markets[customer].id}"><a href="/lk-edit-market/{$markets[customer].id}">{$markets[customer].txt}</a></td><td>г. {$markets[customer].city} ул. {$markets[customer].street} д. {$markets[customer].dom}</td><td>Удалить</td></tr>
{/if} {/section}
</table>