mirror of
https://github.com/getnamingo/registry.git
synced 2025-06-25 05:40:44 +02:00
Fixed #67
This commit is contained in:
parent
cd027d62ae
commit
783bc7706c
16 changed files with 118 additions and 118 deletions
|
@ -124,9 +124,9 @@
|
||||||
if (e.target.closest('.delete-btn')) {
|
if (e.target.closest('.delete-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: "Are you sure you want to delete this application?",
|
title: "{{ __('Are you sure you want to delete this application?') }}",
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: "Confirm"
|
confirmButtonText: "{{ __('Confirm') }}"
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
||||||
|
@ -137,7 +137,7 @@
|
||||||
}},
|
}},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -94,17 +94,17 @@
|
||||||
resizableColumns:false,
|
resizableColumns:false,
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Identifier", field:"identifier", width:250, headerSort:false, formatter: contactLinkFormatter, responsive:0},
|
{title:"{{ __('Identifier') }}", field:"identifier", width:250, headerSort:false, formatter: contactLinkFormatter, responsive:0},
|
||||||
{title:"Email", field:"email", width:300, minWidth:200, headerSort:false, responsive:2},
|
{title:"{{ __('Email') }}", field:"email", width:300, minWidth:200, headerSort:false, responsive:2},
|
||||||
{title:"Phone", field:"voice", width:300, minWidth:200, headerSort:false, responsive:2},
|
{title:"{{ __('Phone') }}", field:"voice", width:300, minWidth:200, headerSort:false, responsive:2},
|
||||||
{title:"Status", field:"contact_status", width:200, minWidth:100, formatter: statusFormatter, headerSort:false, download:false, responsive:2},
|
{title:"{{ __('Status') }}", field:"contact_status", width:200, minWidth:100, formatter: statusFormatter, headerSort:false, download:false, responsive:2},
|
||||||
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
{title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
||||||
if (e.target.closest('.delete-btn')) {
|
if (e.target.closest('.delete-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: "Are you sure you want to delete this contact?",
|
title: "{{ __('Are you sure you want to delete this contact?') }}",
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: "Confirm"
|
confirmButtonText: "{{ __('Confirm') }}"
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
||||||
|
@ -115,7 +115,7 @@
|
||||||
}},
|
}},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -112,18 +112,18 @@
|
||||||
resizableColumns:false,
|
resizableColumns:false,
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Name", field:"name", width:200, headerSort:false, formatter: domainLinkFormatter, responsive:0},
|
{title:"{{ __('Name') }}", field:"name", width:200, headerSort:false, formatter: domainLinkFormatter, responsive:0},
|
||||||
{title:"Registrant", width:200, field:"registrant.identifier", headerSort:false, responsive:2},
|
{title:"{{ __('Registrant') }}", width:200, field:"registrant.identifier", headerSort:false, responsive:2},
|
||||||
{title:"Creation Date", width:250, minWidth:150, field:"crdate", headerSort:false, responsive:2},
|
{title:"{{ __('Creation Date') }}", width:250, minWidth:150, field:"crdate", headerSort:false, responsive:2},
|
||||||
{title:"Expiration Date", width:250, minWidth:150, field:"exdate", headerSort:false, responsive:2},
|
{title:"{{ __('Expiration Date') }}", width:250, minWidth:150, field:"exdate", headerSort:false, responsive:2},
|
||||||
{title:"Status", width:150, field:"domain_status", formatter: statusFormatter, headerSort:false, download:false, responsive:2},
|
{title:"{{ __('Status') }}", width:150, field:"domain_status", formatter: statusFormatter, headerSort:false, download:false, responsive:2},
|
||||||
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
{title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
||||||
if (e.target.closest('.delete-btn')) {
|
if (e.target.closest('.delete-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: "Are you sure you want to delete this domain?",
|
title: "{{ __('Are you sure you want to delete this domain?') }}",
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: "Confirm"
|
confirmButtonText: "{{ __('Confirm') }}"
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
||||||
|
@ -133,9 +133,9 @@
|
||||||
} else if (e.target.closest('.restore-btn')) {
|
} else if (e.target.closest('.restore-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: "Are you sure you want to restore this domain?",
|
title: "{{ __('Are you sure you want to restore this domain?') }}",
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: "Confirm"
|
confirmButtonText: "{{ __('Confirm') }}"
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
let restoreUrl = e.target.closest('.restore-btn').getAttribute('data-restore-url');
|
let restoreUrl = e.target.closest('.restore-btn').getAttribute('data-restore-url');
|
||||||
|
@ -145,9 +145,9 @@
|
||||||
} else if (e.target.closest('.report-btn')) {
|
} else if (e.target.closest('.report-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: "Are you sure you want to submit restore report for this domain?",
|
title: "{{ __('Are you sure you want to submit restore report for this domain?') }}",
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: "Confirm"
|
confirmButtonText: "{{ __('Confirm') }}"
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
let reportUrl = e.target.closest('.report-btn').getAttribute('data-report-url');
|
let reportUrl = e.target.closest('.report-btn').getAttribute('data-report-url');
|
||||||
|
@ -158,7 +158,7 @@
|
||||||
}},
|
}},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -93,16 +93,16 @@
|
||||||
resizableColumns:false,
|
resizableColumns:false,
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Name", field:"name", width:300, headerSort:false, formatter: hostLinkFormatter, responsive:0},
|
{title:"{{ __('Name') }}", field:"name", width:300, headerSort:false, formatter: hostLinkFormatter, responsive:0},
|
||||||
{title:"Creation Date", field:"crdate", width:300, minWidth:200, headerSort:false, responsive:2},
|
{title:"{{ __('Creation Date') }}", field:"crdate", width:300, minWidth:200, headerSort:false, responsive:2},
|
||||||
{title:"Status", field:"host_status", width:300, minWidth:200, formatter: statusFormatter, headerSort:false, download:false, responsive:2},
|
{title:"{{ __('Status') }}", field:"host_status", width:300, minWidth:200, formatter: statusFormatter, headerSort:false, download:false, responsive:2},
|
||||||
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
{title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
||||||
if (e.target.closest('.delete-btn')) {
|
if (e.target.closest('.delete-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: "Are you sure you want to delete this host?",
|
title: "{{ __('Are you sure you want to delete this host?') }}",
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: "Confirm"
|
confirmButtonText: "{{ __('Confirm') }}"
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
}},
|
}},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -37,19 +37,19 @@
|
||||||
],
|
],
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Number", field:"invoice_number", width:200, headerSort:true, formatter: invoiceLinkFormatter, responsive:0},
|
{title:"{{ __('Number') }}", field:"invoice_number", width:200, headerSort:true, formatter: invoiceLinkFormatter, responsive:0},
|
||||||
{title:"Registrar", field:"registrar_id.name", width:300, headerSort:true, responsive:0},
|
{title:"{{ __('Registrar') }}", field:"registrar_id.name", width:300, headerSort:true, responsive:0},
|
||||||
{title:"Date", field:"issue_date", width:300, headerSort:true, responsive:0},
|
{title:"{{ __('Date') }}", field:"issue_date", width:300, headerSort:true, responsive:0},
|
||||||
{title:"Amount", field:"total_amount", width:200, headerSort:true, responsive:0, formatter:"money", formatterParams:{
|
{title:"{{ __('Amount') }}", field:"total_amount", width:200, headerSort:true, responsive:0, formatter:"money", formatterParams:{
|
||||||
decimal:".",
|
decimal:".",
|
||||||
thousand:" ",
|
thousand:" ",
|
||||||
symbol:currency,
|
symbol:currency,
|
||||||
negativeSign:true,
|
negativeSign:true,
|
||||||
}},
|
}},
|
||||||
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }},
|
{title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -24,12 +24,12 @@
|
||||||
],
|
],
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Registrar", field:"registrar_id.name", headerSort:true, responsive:0},
|
{title:"{{ __('Registrar') }}", field:"registrar_id.name", headerSort:true, responsive:0},
|
||||||
{title:"Date", field:"date", headerSort:true, responsive:0},
|
{title:"{{ __('Date') }}", field:"date", headerSort:true, responsive:0},
|
||||||
{title:"Log", field:"log", headerSort:true, responsive:2},
|
{title:"{{ __('Log') }}", field:"log", headerSort:true, responsive:2},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -24,18 +24,18 @@
|
||||||
],
|
],
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Date", field:"cldate", headerSort:true, responsive:0},
|
{title:"{{ __('Date') }}", field:"cldate", headerSort:true, responsive:0},
|
||||||
{title:"Registrar", field:"registrar_id", headerSort:true, responsive:2},
|
{title:"{{ __('Registrar') }}", field:"registrar_id", headerSort:true, responsive:2},
|
||||||
{title:"Command", field:"cmd", headerSort:true, responsive:0},
|
{title:"{{ __('Command') }}", field:"cmd", headerSort:true, responsive:0},
|
||||||
{title:"Object Type", field:"obj_type", headerSort:true, responsive:0},
|
{title:"{{ __('Object Type') }}", field:"obj_type", headerSort:true, responsive:0},
|
||||||
{title:"Object", field:"obj_id", headerSort:true, responsive:2},
|
{title:"{{ __('Object') }}", field:"obj_id", headerSort:true, responsive:2},
|
||||||
{title:"Result", field:"code", headerSort:true, responsive:2},
|
{title:"{{ __('Result') }}", field:"code", headerSort:true, responsive:2},
|
||||||
{title:"Message", field:"msg", headerSort:true, responsive:2, download:false},
|
{title:"{{ __('Message') }}", field:"msg", headerSort:true, responsive:2, download:false},
|
||||||
{title:"clTRID", field:"clTRID", headerSort:true, responsive:2, download:false},
|
{title:"{{ __('clTRID') }}", field:"clTRID", headerSort:true, responsive:2, download:false},
|
||||||
{title:"Milliseconds", field:"svmicrosecond", headerSort:false, download:false, responsive:2},
|
{title:"{{ __('Milliseconds') }}", field:"svmicrosecond", headerSort:false, download:false, responsive:2},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -26,10 +26,10 @@
|
||||||
],
|
],
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Registrar", field:"registrar_id.name", headerSort:true, responsive:0},
|
{title:"{{ __('Registrar') }}", field:"registrar_id.name", headerSort:true, responsive:0},
|
||||||
{title:"Date", field:"date", headerSort:true, responsive:2},
|
{title:"{{ __('Date') }}", field:"date", headerSort:true, responsive:2},
|
||||||
{title:"Description", field:"description", headerSort:true, responsive:2},
|
{title:"{{ __('Description') }}", field:"description", headerSort:true, responsive:2},
|
||||||
{title:"Amount", field:"amount", headerSort:true, download:false, responsive:0, formatter:"money", formatterParams:{
|
{title:"{{ __('Amount') }}", field:"amount", headerSort:true, download:false, responsive:0, formatter:"money", formatterParams:{
|
||||||
decimal:".",
|
decimal:".",
|
||||||
thousand:" ",
|
thousand:" ",
|
||||||
symbol:currency,
|
symbol:currency,
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
}},
|
}},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -24,14 +24,14 @@
|
||||||
],
|
],
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Registrar", field:"registrar_id.name", headerSort:true, responsive:2},
|
{title:"{{ __('Registrar') }}", field:"registrar_id.name", headerSort:true, responsive:2},
|
||||||
{title:"Date", field:"qdate", headerSort:true, responsive:0},
|
{title:"{{ __('Date') }}", field:"qdate", headerSort:true, responsive:0},
|
||||||
{title:"Message", field:"msg", headerSort:true, responsive:0},
|
{title:"{{ __('Message') }}", field:"msg", headerSort:true, responsive:0},
|
||||||
{title:"Message Type", field:"msg_type", headerSort:true, responsive:0},
|
{title:"{{ __('Message Type') }}", field:"msg_type", headerSort:true, responsive:0},
|
||||||
{title:"Object", field:"obj_name_or_id", headerSort:true, responsive:2},
|
{title:"{{ __('Object') }}", field:"obj_name_or_id", headerSort:true, responsive:2},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -41,19 +41,19 @@
|
||||||
resizableColumns:false,
|
resizableColumns:false,
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Name", field:"name", width:200, headerSort:true, formatter: registrarLinkFormatter, responsive:0},
|
{title:"{{ __('Name') }}", field:"name", width:200, headerSort:true, formatter: registrarLinkFormatter, responsive:0},
|
||||||
{title:"IANA ID", field:"iana_id", width:300, headerSort:true, responsive:2},
|
{title:"IANA ID", field:"iana_id", width:300, headerSort:true, responsive:2},
|
||||||
{title:"Email", field:"email", width:300, headerSort:true, responsive:2},
|
{title:"{{ __('Email') }}", field:"email", width:300, headerSort:true, responsive:2},
|
||||||
{title:"Balance", field:"accountBalance", width:300, headerSort:false, download:false, responsive:2, formatter:"money", formatterParams:{
|
{title:"{{ __('Balance') }}", field:"accountBalance", width:300, headerSort:false, download:false, responsive:2, formatter:"money", formatterParams:{
|
||||||
decimal:".",
|
decimal:".",
|
||||||
thousand:" ",
|
thousand:" ",
|
||||||
symbol:currency,
|
symbol:currency,
|
||||||
negativeSign:true,
|
negativeSign:true,
|
||||||
}},
|
}},
|
||||||
{title: "Actions", formatter: actionsFormatter, responsive:0, headerSort: false, download:false, hozAlign: "center", cellClick:function(e, cell){ e.stopPropagation(); }},
|
{title: "{{ __('Actions') }}", formatter: actionsFormatter, responsive:0, headerSort: false, download:false, hozAlign: "center", cellClick:function(e, cell){ e.stopPropagation(); }},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -24,16 +24,16 @@
|
||||||
],
|
],
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Date", field:"date", headerSort:true, responsive:0},
|
{title:"{{ __('Date') }}", field:"date", headerSort:true, responsive:0},
|
||||||
{title:"Total Domains", field:"total_domains", headerSort:true, responsive:0},
|
{title:"{{ __('Total Domains') }}", field:"total_domains", headerSort:true, responsive:0},
|
||||||
{title:"Created Domains", field:"created_domains", headerSort:true, responsive:2},
|
{title:"{{ __('Created Domains') }}", field:"created_domains", headerSort:true, responsive:2},
|
||||||
{title:"Renewed Domains", field:"renewed_domains", headerSort:true, responsive:2},
|
{title:"{{ __('Renewed Domains') }}", field:"renewed_domains", headerSort:true, responsive:2},
|
||||||
{title:"Transferred Domains", field:"transfered_domains", headerSort:true, responsive:2},
|
{title:"{{ __('Transferred Domains') }}", field:"transfered_domains", headerSort:true, responsive:2},
|
||||||
{title:"Deleted Domains", field:"deleted_domains", headerSort:true, responsive:2},
|
{title:"{{ __('Deleted Domains') }}", field:"deleted_domains", headerSort:true, responsive:2},
|
||||||
{title:"Restored Domains", field:"restored_domains", headerSort:true, responsive:2, download:false}
|
{title:"{{ __('Restored Domains') }}", field:"restored_domains", headerSort:true, responsive:2, download:false}
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -76,14 +76,14 @@
|
||||||
resizableColumns:false,
|
resizableColumns:false,
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Subject", field:"subject", width:350, minWidth:100, headerSort:true, formatter: ticketLinkFormatter, responsive:0},
|
{title:"{{ __('Subject') }}", field:"subject", width:350, minWidth:100, headerSort:true, formatter: ticketLinkFormatter, responsive:0},
|
||||||
{title:"Category", field:"category_id.name", width:250, minWidth:80, headerSort:true, responsive:0},
|
{title:"{{ __('Category') }}", field:"category_id.name", width:250, minWidth:80, headerSort:true, responsive:0},
|
||||||
{title:"Status", field:"status", headerSort:true, width:250, minWidth:100, formatter: statusFormatter, responsive:2},
|
{title:"{{ __('Status') }}", field:"status", headerSort:true, width:250, minWidth:100, formatter: statusFormatter, responsive:2},
|
||||||
{title:"Priority", field:"priority", headerSort:true, width:250, minWidth:100, formatter: priorityFormatter, responsive:2},
|
{title:"{{ __('Priority') }}", field:"priority", headerSort:true, width:250, minWidth:100, formatter: priorityFormatter, responsive:2},
|
||||||
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }},
|
{title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -67,12 +67,12 @@
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"TLD", field:"tld", width:350, minWidth:50, headerSort:true, resizable:false, formatter: tldLinkFormatter, responsive:0},
|
{title:"TLD", field:"tld", width:350, minWidth:50, headerSort:true, resizable:false, formatter: tldLinkFormatter, responsive:0},
|
||||||
{ title: "Script", field: "idn_table", width:250, minWidth:80, headerSort:true, resizable:false, formatter: scriptNameFormatter, responsive:2},
|
{ title: "{{ __('Script') }}", field: "idn_table", width:250, minWidth:80, headerSort:true, resizable:false, formatter: scriptNameFormatter, responsive:2},
|
||||||
{title:"DNSSEC", field:"secure", width:250, minWidth:80, headerSort:true, resizable:false, formatter: secureFormatter, responsive:2},
|
{title:"DNSSEC", field:"secure", width:250, minWidth:80, headerSort:true, resizable:false, formatter: secureFormatter, responsive:2},
|
||||||
{title: "Actions", formatter: actionsFormatter, headerSort: false, resizable:false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }},
|
{title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, resizable:false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -25,14 +25,14 @@
|
||||||
],
|
],
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Registrar", field:"registrar_id.name", headerSort:true, responsive:0},
|
{title:"{{ __('Registrar') }}", field:"registrar_id.name", headerSort:true, responsive:0},
|
||||||
{title:"Date", field:"date", headerSort:true, responsive:2},
|
{title:"{{ __('Date') }}", field:"date", headerSort:true, responsive:2},
|
||||||
{title:"Command", field:"command", headerSort:true, responsive:2},
|
{title:"{{ __('Command') }}", field:"command", headerSort:true, responsive:2},
|
||||||
{title:"Domain", field:"domain_name", headerSort:false, download:false, responsive:0},
|
{title:"{{ __('Domain') }}", field:"domain_name", headerSort:false, download:false, responsive:0},
|
||||||
{title:"Length", field:"length_in_months", headerSort:true, responsive:2},
|
{title:"{{ __('Length') }}", field:"length_in_months", headerSort:true, responsive:2},
|
||||||
{title:"From", field:"fromS", headerSort:true, responsive:2},
|
{title:"{{ __('From') }}", field:"fromS", headerSort:true, responsive:2},
|
||||||
{title:"To", field:"toS", headerSort:true, responsive:2},
|
{title:"{{ __('To') }}", field:"toS", headerSort:true, responsive:2},
|
||||||
{title:"Amount", field:"amount", headerSort:false, download:false, responsive:2, formatter:"money", formatterParams:{
|
{title:"{{ __('Amount') }}", field:"amount", headerSort:false, download:false, responsive:2, formatter:"money", formatterParams:{
|
||||||
decimal:".",
|
decimal:".",
|
||||||
thousand:" ",
|
thousand:" ",
|
||||||
symbol:currency,
|
symbol:currency,
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
}},
|
}},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -21,16 +21,16 @@
|
||||||
var clidValue = document.getElementById('clid').value;
|
var clidValue = document.getElementById('clid').value;
|
||||||
|
|
||||||
if (hasPendingStatus && clidValue === '0') {
|
if (hasPendingStatus && clidValue === '0') {
|
||||||
actionButtons += `<a class="btn btn-success btn-icon approve-btn" id="approve-btn" href="javascript:void(0);" data-approve-url="transfer/approve/${cell.getRow().getData().name}" title="Approve Transfer"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 11l3 3l8 -8" /><path d="M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9" /></svg></a> `;
|
actionButtons += `<a class="btn btn-success btn-icon approve-btn" id="approve-btn" href="javascript:void(0);" data-approve-url="transfer/approve/${cell.getRow().getData().name}" title="{{ __('Approve Transfer') }}"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 11l3 3l8 -8" /><path d="M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9" /></svg></a> `;
|
||||||
actionButtons += `<a class="btn btn-dark btn-icon cancel-btn" id="cancel-btn" href="javascript:void(0);" data-cancel-url="transfer/cancel/${cell.getRow().getData().name}" title="Cancel Transfer"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M10 10l4 4m0 -4l-4 4" /></svg></a> `;
|
actionButtons += `<a class="btn btn-dark btn-icon cancel-btn" id="cancel-btn" href="javascript:void(0);" data-cancel-url="transfer/cancel/${cell.getRow().getData().name}" title="{{ __('Cancel Transfer') }}"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M10 10l4 4m0 -4l-4 4" /></svg></a> `;
|
||||||
actionButtons += `<a class="btn btn-danger btn-icon reject-btn" id="reject-btn" href="javascript:void(0);" data-reject-url="transfer/reject/${cell.getRow().getData().name}" title="Reject Transfer"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M5.7 5.7l12.6 12.6" /></svg></a>`;
|
actionButtons += `<a class="btn btn-danger btn-icon reject-btn" id="reject-btn" href="javascript:void(0);" data-reject-url="transfer/reject/${cell.getRow().getData().name}" title="{{ __('Reject Transfer') }}"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M5.7 5.7l12.6 12.6" /></svg></a>`;
|
||||||
} else if (clidValue === rowData.reid) {
|
} else if (clidValue === rowData.reid) {
|
||||||
actionButtons += `<a class="btn btn-dark btn-icon cancel-btn" id="cancel-btn" href="javascript:void(0);" data-cancel-url="transfer/cancel/${cell.getRow().getData().name}" title="Cancel Transfer"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M10 10l4 4m0 -4l-4 4" /></svg></a> `;
|
actionButtons += `<a class="btn btn-dark btn-icon cancel-btn" id="cancel-btn" href="javascript:void(0);" data-cancel-url="transfer/cancel/${cell.getRow().getData().name}" title="{{ __('Cancel Transfer') }}"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M10 10l4 4m0 -4l-4 4" /></svg></a> `;
|
||||||
} else if (clidValue === rowData.acid) {
|
} else if (clidValue === rowData.acid) {
|
||||||
actionButtons += `<a class="btn btn-success btn-icon approve-btn" id="approve-btn" href="javascript:void(0);" data-approve-url="transfer/approve/${cell.getRow().getData().name}" title="Approve Transfer"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 11l3 3l8 -8" /><path d="M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9" /></svg></a> `;
|
actionButtons += `<a class="btn btn-success btn-icon approve-btn" id="approve-btn" href="javascript:void(0);" data-approve-url="transfer/approve/${cell.getRow().getData().name}" title="{{ __('Approve Transfer') }}"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 11l3 3l8 -8" /><path d="M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9" /></svg></a> `;
|
||||||
actionButtons += `<a class="btn btn-danger btn-icon reject-btn" id="reject-btn" href="javascript:void(0);" data-reject-url="transfer/reject/${cell.getRow().getData().name}" title="Reject Transfer"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M5.7 5.7l12.6 12.6" /></svg></a>`;
|
actionButtons += `<a class="btn btn-danger btn-icon reject-btn" id="reject-btn" href="javascript:void(0);" data-reject-url="transfer/reject/${cell.getRow().getData().name}" title="{{ __('Reject Transfer') }}"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M5.7 5.7l12.6 12.6" /></svg></a>`;
|
||||||
} else {
|
} else {
|
||||||
actionButtons += `<strong class="text-success"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M9 12l2 2l4 -4" /></svg> Completed</strong>`;
|
actionButtons += `<strong class="text-success"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M9 12l2 2l4 -4" /></svg> {{ __('Completed') }}</strong>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return actionButtons;
|
return actionButtons;
|
||||||
|
@ -78,17 +78,17 @@
|
||||||
resizableColumns:false,
|
resizableColumns:false,
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Name", field:"name", width:300, minWidth:200, formatter: domainLinkFormatter, headerSort:true, responsive:0},
|
{title:"{{ __('Name') }}", field:"name", width:300, minWidth:200, formatter: domainLinkFormatter, headerSort:true, responsive:0},
|
||||||
{title:"Initiated Date", field:"redate", width:250, minWidth:150, headerSort:true, responsive:2},
|
{title:"{{ __('Initiated Date') }}", field:"redate", width:250, minWidth:150, headerSort:true, responsive:2},
|
||||||
{title:"Expiry Date", field:"acdate", width:250, minWidth:150, headerSort:true, responsive:2},
|
{title:"{{ __('Expiry Date') }}", field:"acdate", width:250, minWidth:150, headerSort:true, responsive:2},
|
||||||
{title:"Status", field:"trstatus", width:200, minWidth:150, headerSort:false, download:false, formatter: statusFormatter, responsive:0},
|
{title:"{{ __('Status') }}", field:"trstatus", width:200, minWidth:150, headerSort:false, download:false, formatter: statusFormatter, responsive:0},
|
||||||
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
{title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
||||||
if (e.target.closest('.approve-btn')) {
|
if (e.target.closest('.approve-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: "Are you sure you want to approve this transfer?",
|
title: "{{ __('Are you sure you want to approve this transfer?') }}",
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: "Confirm"
|
confirmButtonText: "{{ __('Confirm') }}"
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
let approveUrl = e.target.closest('.approve-btn').getAttribute('data-approve-url');
|
let approveUrl = e.target.closest('.approve-btn').getAttribute('data-approve-url');
|
||||||
|
@ -98,9 +98,9 @@
|
||||||
} else if (e.target.closest('.cancel-btn')) {
|
} else if (e.target.closest('.cancel-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: "Are you sure you want to cancel this transfer?",
|
title: "{{ __('Are you sure you want to cancel this transfer?') }}",
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: "Confirm"
|
confirmButtonText: "{{ __('Confirm') }}"
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
let cancelUrl = e.target.closest('.cancel-btn').getAttribute('data-cancel-url');
|
let cancelUrl = e.target.closest('.cancel-btn').getAttribute('data-cancel-url');
|
||||||
|
@ -110,9 +110,9 @@
|
||||||
} else if (e.target.closest('.reject-btn')) {
|
} else if (e.target.closest('.reject-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: "Are you sure you want to reject this transfer?",
|
title: "{{ __('Are you sure you want to reject this transfer?') }}",
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: "Confirm"
|
confirmButtonText: "{{ __('Confirm') }}"
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
let rejectUrl = e.target.closest('.reject-btn').getAttribute('data-reject-url');
|
let rejectUrl = e.target.closest('.reject-btn').getAttribute('data-reject-url');
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
}},
|
}},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
|
@ -65,14 +65,14 @@
|
||||||
resizableColumns:false,
|
resizableColumns:false,
|
||||||
columns:[
|
columns:[
|
||||||
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
|
||||||
{title:"Name", field:"username", width:200, headerSort:true, formatter: userLinkFormatter, responsive:0},
|
{title:"{{ __('Name') }}", field:"username", width:200, headerSort:true, formatter: userLinkFormatter, responsive:0},
|
||||||
{title:"Email", field:"email", width:300, headerSort:true, responsive:2},
|
{title:"{{ __('Email') }}", field:"email", width:300, headerSort:true, responsive:2},
|
||||||
{title:"Roles", field:"roles_mask", width:200, headerSort:true, formatter: roleLabelFormatter, responsive:2},
|
{title:"{{ __('Roles') }}", field:"roles_mask", width:200, headerSort:true, formatter: roleLabelFormatter, responsive:2},
|
||||||
{title:"Verified", field:"verified", width:200, headerSort:true, formatter: verifiedFormatter, responsive:2},
|
{title:"{{ __('Verified') }}", field:"verified", width:200, headerSort:true, formatter: verifiedFormatter, responsive:2},
|
||||||
{title:"Status", field:"status", width:200, headerSort:true, formatter: statusBadgeFormatter, responsive:2},
|
{title:"{{ __('Status') }}", field:"status", width:200, headerSort:true, formatter: statusBadgeFormatter, responsive:2},
|
||||||
],
|
],
|
||||||
placeholder:function(){
|
placeholder:function(){
|
||||||
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
|
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var searchInput = document.getElementById("search-input");
|
var searchInput = document.getElementById("search-input");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue