@@ -102,6 +102,9 @@ function page_profile_panel_input_suppliers_requests_init(wrap = 'profile_panel_
if ( data . suppliers !== undefined && data . suppliers !== null ) {
if ( data . suppliers !== undefined && data . suppliers !== null ) {
// Найдены данные поставщиков
// Найдены данные поставщиков
// Удаление данных в оболочке
wrap . innerHTML = null ;
for ( let html of page _profile _panel _input _suppliers _requests _generate ( data . suppliers ) ) {
for ( let html of page _profile _panel _input _suppliers _requests _generate ( data . suppliers ) ) {
// Перебор сгенерированных HTML-элементов
// Перебор сгенерированных HTML-элементов
@@ -136,12 +139,16 @@ function page_profile_panel_input_suppliers_requests_generate(suppliers) {
// Инициализация контейнера
// Инициализация контейнера
let container = document . createElement ( 'div' ) ;
let container = document . createElement ( 'div' ) ;
container . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_' + account . _key ) ;
container . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_' + account . _key ) ;
container . setAttribute ( 'class' , i < suppliers . length ? 'mb-3 px-3 py-1 row' : 'px-3 py-1 row ' ) ;
container . setAttribute ( 'class' , i < suppliers . length ? 'mb-3 px-3 py-1 row panel_supplier_request' : 'px-3 py-1 row panel_supplier_request ' ) ;
// Инициализация первой строки
let row _1 = document . createElement ( 'div' ) ;
row _1 . setAttribute ( 'class' , 'row px-0' ) ;
// Инициализация колонки с метаданными аккаунта
// Инициализация колонки с метаданными аккаунта
let block _metadata = document . createElement ( 'div' ) ;
let block _metadata = document . createElement ( 'div' ) ;
block _metadata . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_metadata_' + account . _key ) ;
block _metadata . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_metadata_' + account . _key ) ;
block _metadata . setAttribute ( 'class' , 'col-4 pl -0 d-flex flex-column' ) ;
block _metadata . setAttribute ( 'class' , 'col-4 pr -0 d-flex flex-column' ) ;
// Инициализация оболочки идентификатора аккаунта
// Инициализация оболочки идентификатора аккаунта
let wrap _id = document . createElement ( 'p' ) ;
let wrap _id = document . createElement ( 'p' ) ;
@@ -157,9 +164,13 @@ function page_profile_panel_input_suppliers_requests_generate(suppliers) {
value _id . setAttribute ( 'class' , 'ml-auto' ) ;
value _id . setAttribute ( 'class' , 'ml-auto' ) ;
value _id . innerText = account . _key ;
value _id . innerText = account . _key ;
// Инициализация разделителя для даты
let metadata _date _divider = document . createElement ( 'div' ) ;
metadata _date _divider . setAttribute ( 'class' , 'dropdown-divider mt-auto mx-2 mb-2' ) ;
// Инициализация оболочки времени регистрации
// Инициализация оболочки времени регистрации
let wrap _regs = document . createElement ( 'p' ) ;
let wrap _regs = document . createElement ( 'p' ) ;
wrap _regs . setAttribute ( 'class' , 'mt-auto mb-2 px-3 row' ) ;
wrap _regs . setAttribute ( 'class' , 'mt-1 mb-2 px-3 row' ) ;
// Инициализация ярлыка времени регистрации
// Инициализация ярлыка времени регистрации
let label _regs = document . createElement ( 'b' ) ;
let label _regs = document . createElement ( 'b' ) ;
@@ -173,7 +184,7 @@ function page_profile_panel_input_suppliers_requests_generate(suppliers) {
// Инициализация оболочки времени заявки
// Инициализация оболочки времени заявки
let wrap _supl = document . createElement ( 'p' ) ;
let wrap _supl = document . createElement ( 'p' ) ;
wrap _supl . setAttribute ( 'class' , 'mt-0 mb-2 px-3 row' ) ;
wrap _supl . setAttribute ( 'class' , 'mt-0 mb-3 px-3 row' ) ;
// Инициализация ярлыка времени заявки
// Инициализация ярлыка времени заявки
let label _supl = document . createElement ( 'b' ) ;
let label _supl = document . createElement ( 'b' ) ;
@@ -185,30 +196,52 @@ function page_profile_panel_input_suppliers_requests_generate(suppliers) {
value _supl . setAttribute ( 'class' , 'ml-auto' ) ;
value _supl . setAttribute ( 'class' , 'ml-auto' ) ;
value _supl . innerText = moment . unix ( account . date . supl ) . locale ( 'ru-ru' ) . format ( 'DD.MM.YYYY' ) ;
value _supl . innerText = moment . unix ( account . date . supl ) . locale ( 'ru-ru' ) . format ( 'DD.MM.YYYY' ) ;
// Инициализация кнопки сохран ения
// Инициализация кнопки подтвержд ения
let button _save = document . createElement ( 'a' ) ;
let button _accept = document . createElement ( 'a' ) ;
button _save . setAttribute ( 'class' , 'btn form-control button_blue' ) ;
button _accept . setAttribute ( 'class' , 'mb-2 btn form-control button_blue' ) ;
button _save . setAttribute ( 'type' , 'button' ) ;
button _accept . setAttribute ( 'type' , 'button' ) ;
button _save . setAttribute ( 'role' , 'button' ) ;
button _accept . setAttribute ( 'role' , 'button' ) ;
button _save . innerText = 'Сохран ить' ;
button _accept . innerText = 'Подтверд ить' ;
// Инициализация кнопки отклонения
let button _decline = document . createElement ( 'a' ) ;
button _decline . setAttribute ( 'class' , 'btn form-control button_red_softer' ) ;
button _decline . setAttribute ( 'type' , 'button' ) ;
button _decline . setAttribute ( 'role' , 'button' ) ;
button _decline . innerText = 'Отклонить' ;
// Инициализация колонки с основными данными аккаунта
// Инициализация колонки с основными данными аккаунта
let block _info = document . createElement ( 'div' ) ;
let block _info = document . createElement ( 'div' ) ;
block _info . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_' + account . _key ) ;
block _info . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_' + account . _key ) ;
block _info . setAttribute ( 'class' , 'col-4 d-flex flex-column' ) ;
block _info . setAttribute ( 'class' , 'col-4 pl-0 d-flex flex-column' ) ;
// Инициализация ярлыка "NAME"
// Инициализация ярлыка "NAME"
let label _name = document . createElement ( 'label' ) ;
let label _name = document . createElement ( 'label' ) ;
label _name . setAttribute ( 'class' , 'control-label' ) ;
label _name . setAttribute ( 'class' , 'control-label' ) ;
label _name . innerText = 'Имя ' ;
label _name . innerText = 'Контактное лицо ' ;
// Инициализация поля "NAME"
// Инициализация поля "NAME"
let input _name = document . createElement ( 'input' ) ;
let input _name = document . createElement ( 'input' ) ;
input _name . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_name_' + account . _key ) ;
input _name . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_name_' + account . _key ) ;
input _name . setAttribute ( 'class' , 'form-control button_clean mb-3' ) ;
input _name . setAttribute ( 'class' , 'form-control button_clean mb-3' ) ;
input _name . setAttribute ( 'type' , 'text' ) ;
input _name . setAttribute ( 'type' , 'text' ) ;
input _name . setAttribute ( 'placeholder' , 'Иванов Иван Иванович' ) ;
input _name . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_name_edit(' + account . _key + ', this);' ) ;
input _name . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_name_edit(' + account . _key + ', this);' ) ;
input _name . value = account . name ;
input _name . value = account . name ? ? '' ;
// Инициализация ярлыка "BOSS"
let label _boss = document . createElement ( 'label' ) ;
label _boss . setAttribute ( 'class' , 'control-label' ) ;
label _boss . innerText = 'Директор' ;
// Инициализация поля "BOSS"
let input _boss = document . createElement ( 'input' ) ;
input _boss . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_boss_' + account . _key ) ;
input _boss . setAttribute ( 'class' , 'form-control button_clean mb-3' ) ;
input _boss . setAttribute ( 'type' , 'text' ) ;
input _boss . setAttribute ( 'placeholder' , 'Иванов Иван Иванович' ) ;
input _boss . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_boss_edit(' + account . _key + ', this);' ) ;
input _boss . value = account . boss ? ? '' ;
// Инициализация ярлыка "SIMC" (телефон)
// Инициализация ярлыка "SIMC" (телефон)
let label _simc = document . createElement ( 'label' ) ;
let label _simc = document . createElement ( 'label' ) ;
@@ -221,7 +254,7 @@ function page_profile_panel_input_suppliers_requests_generate(suppliers) {
input _simc . setAttribute ( 'class' , 'form-control button_clean mb-3' ) ;
input _simc . setAttribute ( 'class' , 'form-control button_clean mb-3' ) ;
input _simc . setAttribute ( 'type' , 'number' ) ;
input _simc . setAttribute ( 'type' , 'number' ) ;
input _simc . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_simc_edit(' + account . _key + ', this);' ) ;
input _simc . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_simc_edit(' + account . _key + ', this);' ) ;
input _simc . value = account . simc ;
input _simc . value = account . simc ? ? '' ;
// Инициализация ярлыка "MAIL"
// Инициализация ярлыка "MAIL"
let label _mail = document . createElement ( 'label' ) ;
let label _mail = document . createElement ( 'label' ) ;
@@ -231,15 +264,15 @@ function page_profile_panel_input_suppliers_requests_generate(suppliers) {
// Инициализация поля "MAIL"
// Инициализация поля "MAIL"
let input _mail = document . createElement ( 'input' ) ;
let input _mail = document . createElement ( 'input' ) ;
input _mail . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_mail_' + account . _key ) ;
input _mail . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_mail_' + account . _key ) ;
input _mail . setAttribute ( 'class' , 'form-control button_clean' ) ;
input _mail . setAttribute ( 'class' , 'form-control button_clean mb-3 ' ) ;
input _mail . setAttribute ( 'type' , 'mail' ) ;
input _mail . setAttribute ( 'type' , 'mail' ) ;
input _mail . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_mail_edit(' + account . _key + ', this);' ) ;
input _mail . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_mail_edit(' + account . _key + ', this);' ) ;
input _mail . value = account . mail ;
input _mail . value = account . mail ? ? '' ;
// Инициализация колонки с вторичными данными аккаунта
// Инициализация колонки с вторичными данными аккаунта
let block _details = document . createElement ( 'div' ) ;
let block _details = document . createElement ( 'div' ) ;
block _details . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_details_' + account . _key ) ;
block _details . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_details_' + account . _key ) ;
block _details . setAttribute ( 'class' , 'col-4 pr-0 d-flex flex-column' ) ;
block _details . setAttribute ( 'class' , 'col-4 d-flex flex-column' ) ;
// Инициализация ярлыка "INDX"
// Инициализация ярлыка "INDX"
let label _indx = document . createElement ( 'label' ) ;
let label _indx = document . createElement ( 'label' ) ;
@@ -256,7 +289,7 @@ function page_profile_panel_input_suppliers_requests_generate(suppliers) {
input _indx . setAttribute ( 'class' , 'col form-control button_clean' ) ;
input _indx . setAttribute ( 'class' , 'col form-control button_clean' ) ;
input _indx . setAttribute ( 'type' , 'text' ) ;
input _indx . setAttribute ( 'type' , 'text' ) ;
input _indx . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_indx_edit(' + account . _key + ', this);' ) ;
input _indx . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_indx_edit(' + account . _key + ', this);' ) ;
input _indx . value = account . indx ;
input _indx . value = account . indx ? ? '' ;
// Инициализация кнопки "INDX"
// Инициализация кнопки "INDX"
let button _indx = document . createElement ( 'a' ) ;
let button _indx = document . createElement ( 'a' ) ;
@@ -280,7 +313,7 @@ function page_profile_panel_input_suppliers_requests_generate(suppliers) {
input _pswd . setAttribute ( 'class' , 'col form-control button_clean' ) ;
input _pswd . setAttribute ( 'class' , 'col form-control button_clean' ) ;
input _pswd . setAttribute ( 'type' , 'text' ) ;
input _pswd . setAttribute ( 'type' , 'text' ) ;
input _pswd . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_pswd_edit(' + account . _key + ', this);' ) ;
input _pswd . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_pswd_edit(' + account . _key + ', this);' ) ;
input _pswd . value = account . pswd ;
input _pswd . value = account . pswd ? ? '' ;
// Инициализация кнопки "PSWD"
// Инициализация кнопки "PSWD"
let button _pswd = document . createElement ( 'a' ) ;
let button _pswd = document . createElement ( 'a' ) ;
@@ -300,42 +333,206 @@ function page_profile_panel_input_suppliers_requests_generate(suppliers) {
button _file . setAttribute ( 'href' , '/' + account . _key + '/requests/supplier/' + account . date . supl + '/document' ) ;
button _file . setAttribute ( 'href' , '/' + account . _key + '/requests/supplier/' + account . date . supl + '/document' ) ;
button _file . innerHTML = 'Скачать' ;
button _file . innerHTML = 'Скачать' ;
// Компоновка элементов блока с основной информацией
// Инициализация ярлыка "TAXN"
wrap _id . appendChild ( label_id ) ;
let label _taxn = document . createElement ( ' label' ) ;
wrap _id . appendChild ( value _id ) ;
label _taxn . setAttribute ( 'class' , 'control-label' ) ;
block _metadata . appendChild ( wrap _id ) ;
label _taxn . innerText = 'ИНН' ;
wrap _regs . appendChild ( label _regs ) ;
wrap _regs . appendChild ( value _regs ) ;
// Инициализация поля "TAXN"
block _metadata . appendChild ( wrap _regs ) ;
let input _taxn = document . createElement ( 'input' ) ;
wrap _supl . appendChild ( label _supl) ;
input _taxn . setAttribute ( 'id' , 'profile_panel_input _supp liers_requests_block_info_taxn_' + account . _key ) ;
wrap _supl . appendChild ( value _supl ) ;
input _taxn . setAttribute ( 'class' , 'form-control button_clean mb-3' ) ;
block _metadata . appendChild ( wrap _supl ) ;
input _taxn . setAttribute ( 'type' , 'text' ) ;
block _metadata . appendChild ( button _save ) ;
input _taxn . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_taxn_edit(' + account . _key + ', this);' ) ;
input _taxn . value = account . taxn ? ? '' ;
// Инициализация ярлыка "CNTG"
let label _cntg = document . createElement ( 'label' ) ;
label _cntg . setAttribute ( 'class' , 'control-label' ) ;
label _cntg . innerText = 'КПП' ;
// Инициализация поля "CNTG"
let input _cntg = document . createElement ( 'input' ) ;
input _cntg . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_cntg_' + account . _key ) ;
input _cntg . setAttribute ( 'class' , 'form-control button_clean mb-3' ) ;
input _cntg . setAttribute ( 'type' , 'text' ) ;
input _cntg . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_cntg_edit(' + account . _key + ', this);' ) ;
input _cntg . value = account . cntg ? ? '' ;
// Инициализация ярлыка "FADD"
let label _fadd = document . createElement ( 'label' ) ;
label _fadd . setAttribute ( 'class' , 'control-label' ) ;
label _fadd . innerText = 'Фактический адрес' ;
// Инициализация поля "FADD"
let input _fadd = document . createElement ( 'input' ) ;
input _fadd . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_fadd_' + account . _key ) ;
input _fadd . setAttribute ( 'class' , 'form-control button_clean mb-3' ) ;
input _fadd . setAttribute ( 'type' , 'text' ) ;
input _fadd . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_fadd_edit(' + account . _key + ', this);' ) ;
input _fadd . value = account . fadd ? ? '' ;
// Инициализация ярлыка "LADD"
let label _ladd = document . createElement ( 'label' ) ;
label _ladd . setAttribute ( 'class' , 'control-label' ) ;
label _ladd . innerText = 'Юридический адрес' ;
// Инициализация поля "LADD"
let input _ladd = document . createElement ( 'input' ) ;
input _ladd . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_ladd_' + account . _key ) ;
input _ladd . setAttribute ( 'class' , 'form-control button_clean mb-3' ) ;
input _ladd . setAttribute ( 'type' , 'text' ) ;
input _ladd . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_ladd_edit(' + account . _key + ', this);' ) ;
input _ladd . value = account . ladd ? ? '' ;
// Инициализация ярлыка "CHCK"
let label _chck = document . createElement ( 'label' ) ;
label _chck . setAttribute ( 'class' , 'control-label' ) ;
label _chck . innerText = 'Расчетный адрес' ;
// Инициализация поля "CHCK"
let input _chck = document . createElement ( 'input' ) ;
input _chck . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_chck_' + account . _key ) ;
input _chck . setAttribute ( 'class' , 'form-control button_clean mb-3' ) ;
input _chck . setAttribute ( 'type' , 'text' ) ;
input _chck . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_chck_edit(' + account . _key + ', this);' ) ;
input _chck . value = account . chck ? ? '' ;
// Инициализация ярлыка "CMPN"
let label _cmpn = document . createElement ( 'label' ) ;
label _cmpn . setAttribute ( 'class' , 'control-label' ) ;
label _cmpn . innerText = 'Организация' ;
// Инициализация поля "CMPN"
let input _cmpn = document . createElement ( 'input' ) ;
input _cmpn . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_cmpn_' + account . _key ) ;
input _cmpn . setAttribute ( 'class' , 'form-control button_clean mb-3' ) ;
input _cmpn . setAttribute ( 'type' , 'text' ) ;
input _cmpn . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_cmpn_edit(' + account . _key + ', this);' ) ;
input _cmpn . value = account . cmpn ? ? '' ;
// Инициализация ярлыка "CNTC"
let label _cntc = document . createElement ( 'label' ) ;
label _cntc . setAttribute ( 'class' , 'control-label' ) ;
label _cntc . innerText = 'Контакты' ;
// Инициализация поля "CNTC"
let input _cntc = document . createElement ( 'textarea' ) ;
input _cntc . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_cntc_' + account . _key ) ;
input _cntc . setAttribute ( 'class' , 'form-control button_clean profile_panel_input_suppliers_requests_block_textarea' ) ;
input _cntc . setAttribute ( 'type' , 'text' ) ;
input _cntc . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_cntc_edit(' + account . _key + ', this);' ) ;
input _cntc . value = account . cntc ? ? '' ;
// Инициализация ярлыка "DESC"
let label _desc = document . createElement ( 'label' ) ;
label _desc . setAttribute ( 'class' , 'control-label' ) ;
label _desc . innerText = 'Описание' ;
// Инициализация поля "DESC"
let textarea _desc = document . createElement ( 'textarea' ) ;
textarea _desc . setAttribute ( 'id' , 'profile_panel_input_suppliers_requests_block_info_desc_' + account . _key ) ;
textarea _desc . setAttribute ( 'class' , 'form-control button_clean mb-3 profile_panel_input_suppliers_requests_block_textarea' ) ;
textarea _desc . setAttribute ( 'type' , 'text' ) ;
textarea _desc . setAttribute ( 'onchange' , 'return profile_panel_input_suppliers_requests_block_desc_edit(' + account . _key + ', this);' ) ;
textarea _desc . value = account . desc ? ? '' ;
// Инициализация разделителя для геолокации
let metadata _geolocation _divider = document . createElement ( 'div' ) ;
metadata _geolocation _divider . setAttribute ( 'class' , 'dropdown-divider mx-2 mb-2' ) ;
// Инициализация оболочки найденного по геолокации города
let wrap _city = document . createElement ( 'p' ) ;
wrap _city . setAttribute ( 'class' , 'mt-1 mb-2 px-3 row' ) ;
// Инициализация ярлыка найденного по геолокации города
let label _city = document . createElement ( 'b' ) ;
label _city . setAttribute ( 'class' , '' ) ;
label _city . innerText = 'Город:' ;
// Инициализация значения найденного по геолокации города
let value _city = document . createElement ( 'span' ) ;
value _city . setAttribute ( 'class' , 'ml-auto' ) ;
value _city . innerText = account . city ? ? 'Неизвестно' ;
// Компоновка элементов блока с основной информацией
// Компоновка элементов блока с основной информацией
block _info . appendChild ( label _name ) ;
block _info . appendChild ( label _name ) ;
block _info . appendChild ( input _name ) ;
block _info . appendChild ( input _name ) ;
block _info . appendChild ( label _simc ) ;
block _info . appendChild ( label _simc ) ;
block _info . appendChild ( input _simc ) ;
block _info . appendChild ( input _simc ) ;
block _info . appendChild ( label _mail ) ;
block _info . appendChild ( label _mail ) ;
block _info . appendChild ( input _mail ) ;
block _info . appendChild ( input _mail ) ;
// Компоновка элементов блока с вторичными данными
block _info . appendChild ( label _indx ) ;
block _details . appendChild ( label _indx ) ;
wrap _indx . appendChild ( input _indx ) ;
wrap _indx . appendChild ( input _indx ) ;
wrap _indx . appendChild ( button _indx ) ;
wrap _indx . appendChild ( button _indx ) ;
block _details . appendChild ( wrap _indx ) ;
block _info . appendChild ( wrap _indx ) ;
block _details . appendChild ( label _pswd ) ;
block _info . appendChild ( label _pswd ) ;
wrap _pswd . appendChild ( input _pswd ) ;
wrap _pswd . appendChild ( input _pswd ) ;
wrap _pswd . appendChild ( button _pswd ) ;
wrap _pswd . appendChild ( button _pswd ) ;
block _details . appendChild ( wrap _pswd ) ;
block _info . appendChild ( wrap _pswd ) ;
block _details . appendChild ( label _file ) ;
block _details . appendChild ( button _file ) ;
block _info . appendChild ( label _desc ) ;
block _info . appendChild ( textarea _desc ) ;
block _info . appendChild ( label _file ) ;
block _info . appendChild ( button _file ) ;
// Компоновка элементов блока с вторичными данными
block _details . appendChild ( label _boss ) ;
block _details . appendChild ( input _boss ) ;
block _details . appendChild ( label _cmpn ) ;
block _details . appendChild ( input _cmpn ) ;
block _details . appendChild ( label _taxn ) ;
block _details . appendChild ( input _taxn ) ;
block _details . appendChild ( label _cntg ) ;
block _details . appendChild ( input _cntg ) ;
block _details . appendChild ( label _fadd ) ;
block _details . appendChild ( input _fadd ) ;
block _details . appendChild ( label _ladd ) ;
block _details . appendChild ( input _ladd ) ;
block _details . appendChild ( label _chck ) ;
block _details . appendChild ( input _chck ) ;
block _details . appendChild ( label _cntc ) ;
block _details . appendChild ( input _cntc ) ;
// Компоновка элементов блока с технической информацией
wrap _id . appendChild ( label _id ) ;
wrap _id . appendChild ( value _id ) ;
block _metadata . appendChild ( wrap _id ) ;
block _metadata . appendChild ( metadata _geolocation _divider ) ;
wrap _city . appendChild ( label _city ) ;
wrap _city . appendChild ( value _city ) ;
block _metadata . appendChild ( wrap _city ) ;
block _metadata . appendChild ( metadata _date _divider ) ;
wrap _regs . appendChild ( label _regs ) ;
wrap _regs . appendChild ( value _regs ) ;
block _metadata . appendChild ( wrap _regs ) ;
wrap _supl . appendChild ( label _supl ) ;
wrap _supl . appendChild ( value _supl ) ;
block _metadata . appendChild ( wrap _supl ) ;
block _metadata . appendChild ( button _accept ) ;
block _metadata . appendChild ( button _decline ) ;
// Компоновка всех колонок
// Компоновка всех колонок
container . appendChild ( block _metadata ) ;
container . appendChild ( block _info ) ;
container . appendChild ( block _info ) ;
container . appendChild ( block _details ) ;
container . appendChild ( block _details ) ;
container . appendChild ( block _metadata ) ;
html . add ( container ) ;
html . add ( container ) ;