DmitrMakeev commited on
Commit
a8f86dd
1 Parent(s): fba775c

Update data_gc_tab.html

Browse files
Files changed (1) hide show
  1. data_gc_tab.html +10 -12
data_gc_tab.html CHANGED
@@ -1,5 +1,3 @@
1
-
2
-
3
  <!DOCTYPE html>
4
  <html lang="en">
5
  <head>
@@ -107,11 +105,11 @@
107
  pagination: "local", // enable local pagination
108
  paginationSize: 50, // number of rows per page
109
  columns: [
110
- {title:"Номер в списке", field:"id", width:50},
111
- {title:"Имя", field:"name", width:100},
112
- {title:"Телефон", field:"phone", width:100},
113
- {title:"Email", field:"email", width:150},
114
- {title:"Куратор", field:"curator", width:100},
115
  {title:"Статус покупки", field:"shop_statys_full", formatter: function(cell, formatterParams, onRendered) {
116
  var status = cell.getValue();
117
  var color;
@@ -129,26 +127,26 @@
129
  color = 'gray';
130
  }
131
  return `<div style="width: 20px; height: 20px; background-color: ${color};"></div>`;
132
- }, width:120},
133
  {title:"Ссылка на пользователя в GC", field:"ad_url", formatter: function(cell, formatterParams, onRendered) {
134
  var ad_url = cell.getValue();
135
  return `<a href="${ad_url}" target="_blank">${ad_url}</a>`;
136
- }, width:50},
137
  {title:"Ссылка на VK", field:"vk_id", formatter: function(cell, formatterParams, onRendered) {
138
  var vk_id = cell.getValue();
139
  return `<a href="https://vk.com/id${vk_id}" target="_blank">${vk_id}</a>`;
140
- }, width:50},
141
  {title:"Ссылка на Tg", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
142
  var chatId = cell.getValue();
143
  if (chatId.startsWith('@')) {
144
  chatId = chatId.substring(1); // Удаление символа @ в начале
145
  }
146
  return `<a href="https://t.me/${chatId}" target="_blank">${chatId}</a>`;
147
- }, width:50},
148
  {title:"Ссылка на WhatsApp", field:"phone", formatter: function(cell, formatterParams, onRendered) {
149
  var phone = cell.getValue();
150
  return `<a href="https://web.whatsapp.com/send?phone=${phone}" target="_blank">${phone}</a>`;
151
- }, width:50},
152
  {title:"Статус WhatsApp", field:"ws_statys"},
153
  {title:"Стутус подписки", field:"ws_stop"},
154
  {title:"Вебинары", field:"web_statys", formatter:"star", formatterParams:{stars:6}, hozAlign:"center", width:120},
 
 
 
1
  <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
 
105
  pagination: "local", // enable local pagination
106
  paginationSize: 50, // number of rows per page
107
  columns: [
108
+ {title:"Номер в списке", field:"id"},
109
+ {title:"Имя", field:"name"},
110
+ {title:"Телефон", field:"phone"},
111
+ {title:"Email", field:"email"},
112
+ {title:"Куратор", field:"curator"},
113
  {title:"Статус покупки", field:"shop_statys_full", formatter: function(cell, formatterParams, onRendered) {
114
  var status = cell.getValue();
115
  var color;
 
127
  color = 'gray';
128
  }
129
  return `<div style="width: 20px; height: 20px; background-color: ${color};"></div>`;
130
+ }},
131
  {title:"Ссылка на пользователя в GC", field:"ad_url", formatter: function(cell, formatterParams, onRendered) {
132
  var ad_url = cell.getValue();
133
  return `<a href="${ad_url}" target="_blank">${ad_url}</a>`;
134
+ }},
135
  {title:"Ссылка на VK", field:"vk_id", formatter: function(cell, formatterParams, onRendered) {
136
  var vk_id = cell.getValue();
137
  return `<a href="https://vk.com/id${vk_id}" target="_blank">${vk_id}</a>`;
138
+ }},
139
  {title:"Ссылка на Tg", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
140
  var chatId = cell.getValue();
141
  if (chatId.startsWith('@')) {
142
  chatId = chatId.substring(1); // Удаление символа @ в начале
143
  }
144
  return `<a href="https://t.me/${chatId}" target="_blank">${chatId}</a>`;
145
+ }},
146
  {title:"Ссылка на WhatsApp", field:"phone", formatter: function(cell, formatterParams, onRendered) {
147
  var phone = cell.getValue();
148
  return `<a href="https://web.whatsapp.com/send?phone=${phone}" target="_blank">${phone}</a>`;
149
+ }},
150
  {title:"Статус WhatsApp", field:"ws_statys"},
151
  {title:"Стутус подписки", field:"ws_stop"},
152
  {title:"Вебинары", field:"web_statys", formatter:"star", formatterParams:{stars:6}, hozAlign:"center", width:120},