mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-02 15:51:49 +02:00
More changes for custom registrar currency
This commit is contained in:
parent
98dd2950e0
commit
4d953d5ac1
4 changed files with 16 additions and 16 deletions
|
@ -92,7 +92,7 @@
|
|||
<div class="col-md-4">
|
||||
<div class="mb-3">
|
||||
<label for="accountBalance" class="form-label">{{ __('Account Balance') }}</label>
|
||||
<div class="form-control-plaintext">{{ currency }} {{ registrar.accountBalance }}</div>
|
||||
<div class="form-control-plaintext">{{ registrar.currency }} {{ registrar.accountBalance }}</div>
|
||||
<small class="text-muted">{{ __('Current balance in the registrar\'s account.') }}</small>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
|
|
@ -92,12 +92,12 @@
|
|||
<div class="col-md-4">
|
||||
<div class="mb-3">
|
||||
<label for="accountBalance" class="form-label">{{ __('Account Balance') }}</label>
|
||||
<div class="form-control-plaintext">{{ currency }} {{ registrar.accountBalance }}</div>
|
||||
<div class="form-control-plaintext">{{ registrar.currency }} {{ registrar.accountBalance }}</div>
|
||||
<small class="text-muted">{{ __('Current balance in the registrar\'s account.') }}</small>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="creditLimit" class="form-label">{{ __('Credit Limit') }}</label>
|
||||
<div class="form-control-plaintext">{{ currency }} {{ registrar.creditLimit }}</div>
|
||||
<div class="form-control-plaintext">{{ registrar.currency }} {{ registrar.creditLimit }}</div>
|
||||
<small class="text-muted">{{ __('Maximum credit limit for the registrar.') }}</small>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -106,7 +106,7 @@
|
|||
<div class="col-md-4">
|
||||
<div class="mb-3">
|
||||
<label for="creditThreshold" class="form-label">{{ __('Credit Threshold') }}</label>
|
||||
<div class="form-control-plaintext">{{ currency }} {{ registrar.creditThreshold }}</div>
|
||||
<div class="form-control-plaintext">{{ registrar.currency }} {{ registrar.creditThreshold }}</div>
|
||||
<small class="text-muted">{{ __('Credit threshold triggering alerts or actions.') }}</small>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
|
@ -120,7 +120,7 @@
|
|||
<div class="col-md-4">
|
||||
<div class="mb-3">
|
||||
<label for="companyNumber" class="form-label">{{ __('Company Number') }}</label>
|
||||
<div class="form-control-plaintext">{{ registrar.companyNumber }}</div>
|
||||
<div class="form-control-plaintext">{{ registrar.companyNumber|default('N/A') }}</div>
|
||||
<small class="text-muted">{{ __('Official registration number provided by the relevant authority.') }}</small>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
|
|
|
@ -87,15 +87,15 @@
|
|||
</div>
|
||||
<div class="datagrid-item">
|
||||
<div class="datagrid-title">{{ __('Account Balance') }}</div>
|
||||
<div class="datagrid-content">{{ currency }} {{ registrar.accountBalance }}</div>
|
||||
<div class="datagrid-content">{{ registrar.currency }} {{ registrar.accountBalance }}</div>
|
||||
</div>
|
||||
<div class="datagrid-item">
|
||||
<div class="datagrid-title">{{ __('Credit Limit') }}</div>
|
||||
<div class="datagrid-content">{{ currency }} {{ registrar.creditLimit }}</div>
|
||||
<div class="datagrid-content">{{ registrar.currency }} {{ registrar.creditLimit }}</div>
|
||||
</div>
|
||||
<div class="datagrid-item">
|
||||
<div class="datagrid-title">{{ __('Credit Threshold') }}</div>
|
||||
<div class="datagrid-content">{{ currency }} {{ registrar.creditThreshold }}</div>
|
||||
<div class="datagrid-content">{{ registrar.currency }} {{ registrar.creditThreshold }}</div>
|
||||
</div>
|
||||
<div class="datagrid-item">
|
||||
<div class="datagrid-title">{{ __('Threshold Type') }}</div>
|
||||
|
|
|
@ -25,9 +25,7 @@
|
|||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
currency = "{{ currency }} ";
|
||||
|
||||
|
||||
var searchTerm = ""; // global variable to hold the search term
|
||||
|
||||
function updateSearchTerm(term) {
|
||||
|
@ -92,11 +90,13 @@
|
|||
{title:"{{ __('Name') }}", field:"name", width:200, resizable:false, headerSort:true, formatter: registrarLinkFormatter, responsive:0},
|
||||
{title:"IANA ID", field:"iana_id", width:300, resizable:false, headerSort:true, responsive:2},
|
||||
{title:"{{ __('Email') }}", field:"email", width:300, resizable:false, headerSort:true, responsive:2},
|
||||
{title:"{{ __('Balance') }}", field:"accountBalance", width:300, resizable:false, headerSort:true, responsive:2, formatter:"money", formatterParams:{
|
||||
decimal:".",
|
||||
thousand:" ",
|
||||
symbol:currency,
|
||||
negativeSign:true,
|
||||
{title:"{{ __('Balance') }}", field:"accountBalance", width:300, resizable:false, headerSort:true, responsive:2, formatter:"money", formatterParams:function(cell){
|
||||
return {
|
||||
decimal: ".",
|
||||
thousand: " ",
|
||||
symbol: (cell.getRow().getData().currency || "$") + " ", // Ensures space after currency symbol
|
||||
negativeSign: true
|
||||
};
|
||||
}},
|
||||
{title: "{{ __('Actions') }}", formatter: actionsFormatter, responsive:0, headerSort: false, download:false, hozAlign: "center", cellClick:function(e, cell){ e.stopPropagation(); }},
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue