Skip to content

Commit 054e6f2

Browse files
committed
[PRAC/cont] Add "output-table" structure
Initial organization of the clients data table. Worth noting: - reflections on the available variants of table designs in Bootstrap. core: B-3 / JS-BL
1 parent 2beee93 commit 054e6f2

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

core-courses/3-js-basic-level/practicum-js-basic-level/sb-crm-client/css/crm-search.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
justify-content: center;
4040
row-gap: 5px;
4141
margin-bottom: 20px;
42-
padding: 10px;
42+
padding: 10px 10px 12px 10px;
4343
min-height: auto;
4444
}
4545

core-courses/3-js-basic-level/practicum-js-basic-level/sb-crm-client/js/index.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@
4949
searchFormInputWrap.append(searchForm);
5050
crmSearch.append(searchLogoWrap, searchFormInputWrap);
5151

52+
// организация таблицы данных о клиентах (структура, заголовки колонок)
53+
const outputTitle = document.createElement('h2');
54+
const outputTable = document.createElement('table');
55+
const outputTableHead = document.createElement('thead');
56+
const outputTableBody = document.createElement('tbody');
57+
const oTableHeadTr = document.createElement('tr');
58+
const oTableHeadThId = document.createElement('th');
59+
const oTableHeadThFIO = document.createElement('th');
60+
const oTableHeadThCreationDT = document.createElement('th');
61+
const oTableHeadThChanges = document.createElement('th');
62+
const oTableHeadThContacts = document.createElement('th');
63+
const oTableHeadThActions = document.createElement('th');
64+
5265
// ** организация появления/скрытия поля для ввода данных/фильтрационного инпута (по нажатию на logo, на 320px)
5366
document
5467
.querySelector('.crm__search-logo-img')
@@ -65,7 +78,7 @@
6578
const targetParentNode = target.parentNode;
6679
const invalidFeed = targetParentNode.querySelector('.invalid-feedback');
6780

68-
// принудительное исключение пробелов (в начале строки)
81+
// принудительное исключение пробелов (в начале поля для ввода)
6982
target.value = target.value.replace(/^\s+/, '');
7083

7184
// только русские буквы (без цифр/символов), "один" дефис (для двойных фамилий) и без необоснованных пробелов

0 commit comments

Comments
 (0)