130 lines
5.0 KiB
HTML
130 lines
5.0 KiB
HTML
{include file=$header_admin meta='<meta name="robots" content="noindex,nofollow">' title="Личный кабинет" h1='Мои организации'}
|
||
|
||
<h1>Мои организации</h1>
|
||
|
||
<div class="row">
|
||
|
||
|
||
<div class="col-lg-4">
|
||
|
||
<div class="col-lg-12">
|
||
<div class="ibox p-3">
|
||
<h3>Добавьте организацию</h3>
|
||
<div class="col-md-12">
|
||
<label class="form-label">ИНН</label>
|
||
<input class="form-control mt-2 mb-2" name="parent" placeholder="ИНН" id="input-inn" maxlength="12">
|
||
<div class="alert alert-light hidden" role="alert" id="divShortInfo">
|
||
<p><span id="orgName"></span></p>
|
||
|
||
<div class="btn-group" role="group" aria-label="Простой пример">
|
||
<button type="button" class="btn btn-dark" id="btnAddOrg" data-id="">Добавить к себе</button>
|
||
<a type="button" class="btn btn-dark" href="#modalNewOrg" data-toggle="modal">Создать новую</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-lg-12">
|
||
<div class="ibox p-3">
|
||
<h3>Мои организации</h3>
|
||
<table class="table">
|
||
{section name=customer loop=$listMyOrgs} {if $listMyOrgs[customer].id}
|
||
<tr><td><a href="{$listMyOrgs[customer].org_id}" class="editorg">{$listMyOrgs[customer].txt}</a></td></tr>
|
||
{/if} {/section}
|
||
</table>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-lg-12">
|
||
<div class="ibox p-3">
|
||
<h3>На проверке</h3>
|
||
<table class="table">
|
||
{section name=customer loop=$listMyOrgsCheck} {if $listMyOrgsCheck[customer].id}
|
||
<tr><td><a href="/lk_edit_org/{$listMyOrgsCheck[customer].org_id}">{$listMyOrgsCheck[customer].txt}</a></td></tr>
|
||
{/if} {/section}
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="col-lg-8">
|
||
<div class="ibox">
|
||
<div class="ibox-head">
|
||
<div class="ibox-title">Данные организации</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>
|
||
</ul>
|
||
</div>
|
||
<div class="ibox-body">
|
||
<div class="tab-content">
|
||
<div class="tab-pane fade show active" id="tab-8-1">
|
||
<form id="formEditOrg">
|
||
<input class="form-control mb-2" id="txt" placeholder="Наименование организации">
|
||
<input class="form-control mb-2" id="inn" placeholder="ИНН">
|
||
<input class="form-control mb-2" id="kpp" placeholder="КПП">
|
||
<input class="form-control mb-2" id="ogrn" placeholder="ОГРН">
|
||
<input class="form-control mb-2" id="ur_adres" placeholder="Юридический адрес">
|
||
<input class="form-control mb-2" id="fact_adres" placeholder="Фактический адрес">
|
||
|
||
|
||
|
||
</form>
|
||
</div>
|
||
<div class="tab-pane" id="tab-8-2">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
{*
|
||
Модальное окно с формой создания организации
|
||
*}
|
||
|
||
<div class="modal fade" id="modalNewOrg" tabindex="-1" role="dialog" aria-hidden="true">
|
||
<div class="modal-dialog modal-dialog-centered modal-xl" role="document">
|
||
<div class="modal-content">
|
||
<div class="modal-body">
|
||
<div class="container-fluid">
|
||
<div class="row">
|
||
<div class="col text-right">
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
<span aria-hidden="true"> <i class="fa fa-times"></i></span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
|
||
<form id="formNewOrg" action="/act/lk-my-orgs">
|
||
<input class="hidden" name="act" value="neworg">
|
||
<input class="form-control mb-2" placeholder="ИНН" maxlength="12" name="inn">
|
||
<input class="form-control mb-2" placeholder="КПП" maxlength="9" name="kpp">
|
||
<input class="form-control mb-2" placeholder="Наименование" name="txt">
|
||
<input type="submit" class="btn btn-dark mb-2" id="btnAddOrg" data-id="" name="createOrg" value="Создать">
|
||
<div class="alert alert-light hidden" role="alert" id="resultAddOrg">
|
||
<p>Готово! Обновите страницу =)</p>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{include file=$footer_admin plugins="<script src='/api/jquery/plugins/jquery_chained/jquery.chained.min.js'></script>"} |