DmitrMakeev commited on
Commit
3ac90bd
·
verified ·
1 Parent(s): 87f3a94

Update data_gc_tab.html

Browse files
Files changed (1) hide show
  1. data_gc_tab.html +5 -2
data_gc_tab.html CHANGED
@@ -107,8 +107,11 @@
107
  {title:"Имя", field:"name"},
108
  {title:"Телефон", field:"phone"},
109
  {title:"Email", field:"email"},
110
- {title:"VK ID", field:"vk_id"},
111
- {title:"Chat ID", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
 
 
 
112
  var chatId = cell.getValue();
113
  if (chatId.startsWith('@')) {
114
  chatId = chatId.substring(1); // Удаление символа @ в начале
 
107
  {title:"Имя", field:"name"},
108
  {title:"Телефон", field:"phone"},
109
  {title:"Email", field:"email"},
110
+ {title:"Ссылка на VK", field:"vk_id, formatter: function(cell, formatterParams, onRendered) {
111
+ var phone = cell.getValue();
112
+ return `<a href="https://vk.comvk.me/id${vk_id}" target="_blank">${phone}</a>`;
113
+ }},
114
+ {title:"Ссылка на Tg", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
115
  var chatId = cell.getValue();
116
  if (chatId.startsWith('@')) {
117
  chatId = chatId.substring(1); // Удаление символа @ в начале