core/api/modules/lk-my-orgs/index.html

144 lines
5.1 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 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" id="table-org-list">
{section name=customer loop=$listMyOrgs} {if $listMyOrgs[customer].id}
<tr><td id="org-list-{$listMyOrgs[customer].org_id}"><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>
<li class="nav-item">
<a class="nav-link" href="#tab-8-4" 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">
{include file=$inc_org_edit}
</div>
<div class="tab-pane" id="tab-8-2">
<!-- Документы -->
</div>
<div class="tab-pane" id="tab-8-4">
<a class="btn btn-dark" href="#modalNewSklad" data-toggle="modal">Создать</a>
<!-- склады -->
<table class="table" id="sklad_list">
</table>
</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>
</div>
{include file=$modal_new_sklad}
{include file=$footer_admin plugins="<script src='/api/jquery/plugins/jquery_chained/jquery.chained.min.js'></script>"}