core/skin/inc/mod/lk-adresa-dostavki/index.html

87 lines
3.5 KiB
HTML
Raw Permalink Normal View History

2022-12-11 13:55:49 +05:00
{include file=$header meta='<meta name="robots" content="noindex,nofollow">' title="Личный кабинет"}
<!--start breadcrumb-->
<section class="py-3 border-bottom border-top d-none d-md-flex bg-light">
<div class="container">
<div class="page-breadcrumb d-flex align-items-center">
<h3 class="breadcrumb-title pe-3">Личный кабинет</h3>
<div class="ms-auto">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0 p-0">
<li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i> Старт</a></li>
<li class="breadcrumb-item active" aria-current="page">Адреса доставки</li>
</ol>
</nav>
</div>
</div>
</div>
</section>
<!--end breadcrumb-->
<!--start shop cart-->
<section class="py-4">
<div class="container">
<h3 class="d-none">Account</h3>
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-lg-4">
{include file=$mnulk}
</div>
<div class="col-lg-8">
<div class="card shadow-none mb-0">
<div class="card-body">
<form class="row g-3" id="formAddAdres">
<h3>Адреса доставки</h3>
<input type="hidden" name="act" value="addAdres">
<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-12">
<input type="submit" class="btn btn-dark btn-ecomm" value="Сохранить">
</div>
</form>
<table class="table mt-3" id="adresList">
<tr><td><b>Город</b></td><td><b>Улица</b></td><td><b>Дом</b></td><td></td></tr>
{section name=customer loop=$adresa} {if $adresa[customer].id}
<tr id="{$adresa[customer].id}"><td>{$adresa[customer].city}</td><td>{$adresa[customer].street}</td><td>{$adresa[customer].dom}</td><td><a href="{$adresa[customer].id}" class="delAdres">Удалить</a></td></tr>
{/if} {/section}
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!--end shop cart-->
{include file=$footer plugins="<script src='/api/jquery/plugins/jquery_chained/jquery.chained.min.js'></script>"}