DmitrMakeev commited on
Commit
f484e1e
1 Parent(s): 3616eea

Update data_gc_tab.html

Browse files
Files changed (1) hide show
  1. data_gc_tab.html +19 -15
data_gc_tab.html CHANGED
@@ -272,21 +272,25 @@
272
  }, width:120},
273
  {title:"Город", field:"b_city", width:110},
274
  {title:"Email", field:"email", width:110},
275
- {title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
276
- var data = cell.getData();
277
- Swal.fire({
278
- title: 'Детали пользователя',
279
- html: `<strong>Имя:</strong> ${data.name}<br><strong>Реплики:</strong> ${data.b_mess}`,
280
- icon: 'success',
281
- confirmButtonText: 'Закрыть',
282
- confirmButtonColor: '#4CAF50',
283
- customClass: {
284
- confirmButton: 'button is-success',
285
- title: 'title-custom',
286
- content: 'content-custom'
287
- }
288
- });
289
- }},
 
 
 
 
290
  {title:"Куратор", field:"curator", formatter: linkFormatter},
291
  {title:"Статус покупки", field:"shop_st", formatter: function(cell, formatterParams, onRendered) {
292
  var status = cell.getValue();
 
272
  }, width:120},
273
  {title:"Город", field:"b_city", width:110},
274
  {title:"Email", field:"email", width:110},
275
+ {title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
276
+ var data = cell.getData();
277
+ Swal.fire({
278
+ title: 'Детали пользователя',
279
+ html: `
280
+ <strong>Имя:</strong> ${data.name}<br>
281
+ <strong>WhatsApp:</strong> <a href="https://web.whatsapp.com/send?phone=${data.phone}" target="_blank">${data.phone}</a><br>
282
+ <strong>Реплики:</strong> ${data.b_mess}
283
+ `,
284
+ icon: 'success',
285
+ confirmButtonText: 'Закрыть',
286
+ confirmButtonColor: '#4CAF50',
287
+ customClass: {
288
+ confirmButton: 'button is-success',
289
+ title: 'title-custom',
290
+ content: 'content-custom'
291
+ }
292
+ });
293
+ }},
294
  {title:"Куратор", field:"curator", formatter: linkFormatter},
295
  {title:"Статус покупки", field:"shop_st", formatter: function(cell, formatterParams, onRendered) {
296
  var status = cell.getValue();