Fixed missing translation strings

This commit is contained in:
Pinga 2024-02-19 14:33:15 +02:00
parent 4bfdca752f
commit 26c983a0b2
15 changed files with 570 additions and 45 deletions

View file

@ -294,7 +294,7 @@ class SupportController extends Controller
'id' => $ticket_id
]
);
$this->container->get('flash')->addMessage('success', 'Ticket has been escalated successfully');
$this->container->get('flash')->addMessage('success', 'Ticket has been reopened successfully');
return $response->withHeader('Location', '/ticket/'.$ticket_id)->withStatus(302);
} else {
$this->container->get('flash')->addMessage('error', 'Incorrect action specified');

View file

@ -1347,3 +1347,108 @@ msgstr "Registry Currency"
msgid "Choose the currency for all transactions. This impacts billing and financial reports. Inform stakeholders of changes."
msgstr "Choose the currency for all transactions. This impacts billing and financial reports. Inform stakeholders of changes."
msgid "Contact Validation"
msgstr "Contact Validation"
msgid "Validate by Phone"
msgstr "Validate by Phone"
msgid "Validated by Phone"
msgstr "Validated by Phone"
msgid "Phone Validation"
msgstr "Phone Validation"
msgid "Validated by Email"
msgstr "Validated by Email"
msgid "Validate by Email"
msgstr "Validate by Email"
msgid "Email Validation"
msgstr "Email Validation"
msgid "Validate by Postal Mail"
msgstr "Validate by Postal Mail"
msgid "Validated by Postal Mail"
msgstr "Validated by Postal Mail"
msgid "Postal Mail Validation"
msgstr "Postal Mail Validation"
msgid "Pending Validation"
msgstr "Pending Validation"
msgid "Back to Contact Update"
msgstr "Back to Contact Update"
msgid "Validate Contact"
msgstr "Validate Contact"
msgid "Settings"
msgstr "Settings"
msgid "Manage Settings"
msgstr "Manage Settings"
msgid "Not signed"
msgstr "Not signed"
msgid "Signed"
msgstr "Signed"
msgid "These domain names are subject to special regulations or registration requirements. They might be available for registration but under specific conditions, such as proof of eligibility or additional documentation."
msgstr "These domain names are subject to special regulations or registration requirements. They might be available for registration but under specific conditions, such as proof of eligibility or additional documentation."
msgid "Enter each"
msgstr "Enter each"
msgid "name on a new line, without the extension. For instance, use \"example\" in place of \"example.com\"."
msgstr "name on a new line, without the extension. For instance, use \"example\" in place of \"example.com\"."
msgid "View Ticket"
msgstr "View Ticket"
msgid "Open"
msgstr "Open"
msgid "In Progress"
msgstr "In Progress"
msgid "Resolved"
msgstr "Resolved"
msgid "Low"
msgstr "Low"
msgid "Medium"
msgstr "Medium"
msgid "High"
msgstr "High"
msgid "Critical"
msgstr "Critical"
msgid "Close Ticket"
msgstr "Close Ticket"
msgid "Escalate Ticket"
msgstr "Escalate Ticket"
msgid "Reopen Ticket"
msgstr "Reopen Ticket"
msgid "Enter old password"
msgstr "Enter old password"
msgid "Enter new password"
msgstr "Enter new password"
msgid "Recent Domains"
msgstr "Recent Domains"
msgid "Recent Support Tickets"
msgstr "Recent Support Tickets"

View file

@ -1347,3 +1347,108 @@ msgstr "Devise du registre"
msgid "Choose the currency for all transactions. This impacts billing and financial reports. Inform stakeholders of changes."
msgstr "Choisissez la devise pour toutes les transactions. Cela a un impact sur la facturation et les rapports financiers. Informer les parties prenantes des changements."
msgid "Contact Validation"
msgstr "Validation de Contact"
msgid "Validate by Phone"
msgstr "Valider par Téléphone"
msgid "Validated by Phone"
msgstr "Validé par Téléphone"
msgid "Phone Validation"
msgstr "Validation Téléphonique"
msgid "Validated by Email"
msgstr "Validé par Email"
msgid "Validate by Email"
msgstr "Valider par Email"
msgid "Email Validation"
msgstr "Validation d'Email"
msgid "Validate by Postal Mail"
msgstr "Valider par Courrier Postal"
msgid "Validated by Postal Mail"
msgstr "Validé par Courrier Postal"
msgid "Postal Mail Validation"
msgstr "Validation par Courrier"
msgid "Pending Validation"
msgstr "Validation en Attente"
msgid "Back to Contact Update"
msgstr "Retour à la Mise à Jour des Contacts"
msgid "Validate Contact"
msgstr "Valider le Contact"
msgid "Settings"
msgstr "Paramètres"
msgid "Manage Settings"
msgstr "Gérer les Paramètres"
msgid "Not signed"
msgstr "Non signé"
msgid "Signed"
msgstr "Signé"
msgid "These domain names are subject to special regulations or registration requirements. They might be available for registration but under specific conditions, such as proof of eligibility or additional documentation."
msgstr "Ces noms de domaine sont soumis à des réglementations spéciales ou à des exigences d'enregistrement. Ils pourraient être disponibles à l'enregistrement mais sous certaines conditions, telles que la preuve d'éligibilité ou des documents supplémentaires."
msgid "Enter each"
msgstr "Entrez chaque"
msgid "name on a new line, without the extension. For instance, use \"example\" in place of \"example.com\"."
msgstr "nom sur une nouvelle ligne, sans l'extension. Par exemple, utilisez \"exemple\" au lieu de \"exemple.com\"."
msgid "View Ticket"
msgstr "Voir le Ticket"
msgid "Open"
msgstr "Ouvrir"
msgid "In Progress"
msgstr "En Cours"
msgid "Resolved"
msgstr "Résolu"
msgid "Low"
msgstr "Faible"
msgid "Medium"
msgstr "Moyen"
msgid "High"
msgstr "Élevé"
msgid "Critical"
msgstr "Critique"
msgid "Close Ticket"
msgstr "Fermer le Ticket"
msgid "Escalate Ticket"
msgstr "Escalader le Ticket"
msgid "Reopen Ticket"
msgstr "Rouvrir le Ticket"
msgid "Enter old password"
msgstr "Entrez l'ancien mot de passe"
msgid "Enter new password"
msgstr "Entrez le nouveau mot de passe"
msgid "Recent Domains"
msgstr "Domaines Récents"
msgid "Recent Support Tickets"
msgstr "Tickets de Support Récents"

View file

@ -1347,3 +1347,108 @@ msgstr "レジストリ通貨"
msgid "Choose the currency for all transactions. This impacts billing and financial reports. Inform stakeholders of changes."
msgstr "すべての取引の通貨を選択してください。これは請求書と財政報告に影響します。変更をステークホルダーに通知してください。"
msgid "Contact Validation"
msgstr "連絡先の検証"
msgid "Validate by Phone"
msgstr "電話による検証"
msgid "Validated by Phone"
msgstr "電話によって検証済み"
msgid "Phone Validation"
msgstr "電話検証"
msgid "Validated by Email"
msgstr "メールによって検証済み"
msgid "Validate by Email"
msgstr "メールによる検証"
msgid "Email Validation"
msgstr "メール検証"
msgid "Validate by Postal Mail"
msgstr "郵便による検証"
msgid "Validated by Postal Mail"
msgstr "郵便によって検証済み"
msgid "Postal Mail Validation"
msgstr "郵便検証"
msgid "Pending Validation"
msgstr "検証待ち"
msgid "Back to Contact Update"
msgstr "連絡先更新に戻る"
msgid "Validate Contact"
msgstr "連絡先を検証する"
msgid "Settings"
msgstr "設定"
msgid "Manage Settings"
msgstr "設定を管理する"
msgid "Not signed"
msgstr "未署名"
msgid "Signed"
msgstr "署名済み"
msgid "These domain names are subject to special regulations or registration requirements. They might be available for registration but under specific conditions, such as proof of eligibility or additional documentation."
msgstr "これらのドメイン名は、特別な規制または登録要件の対象となります。登録可能ですが、資格の証明や追加の文書など、特定の条件の下でのみです。"
msgid "Enter each"
msgstr "各項目を入力"
msgid "name on a new line, without the extension. For instance, use \"example\" in place of \"example.com\"."
msgstr "拡張子を除いた名前を新しい行に入力してください。たとえば、「example.com」の代わりに「example」を使用します。"
msgid "View Ticket"
msgstr "チケットを見る"
msgid "Open"
msgstr "開く"
msgid "In Progress"
msgstr "進行中"
msgid "Resolved"
msgstr "解決済み"
msgid "Low"
msgstr "低"
msgid "Medium"
msgstr "中"
msgid "High"
msgstr "高"
msgid "Critical"
msgstr "重大"
msgid "Close Ticket"
msgstr "チケットを閉じる"
msgid "Escalate Ticket"
msgstr "チケットをエスカレートする"
msgid "Reopen Ticket"
msgstr "チケットを再開する"
msgid "Enter old password"
msgstr "古いパスワードを入力"
msgid "Enter new password"
msgstr "新しいパスワードを入力"
msgid "Recent Domains"
msgstr "最近のドメイン"
msgid "Recent Support Tickets"
msgstr "最近のサポートチケット"

View file

@ -1347,3 +1347,108 @@ msgstr ""
msgid "Choose the currency for all transactions. This impacts billing and financial reports. Inform stakeholders of changes."
msgstr ""
msgid "Contact Validation"
msgstr ""
msgid "Validate by Phone"
msgstr ""
msgid "Validated by Phone"
msgstr ""
msgid "Phone Validation"
msgstr ""
msgid "Validated by Email"
msgstr ""
msgid "Validate by Email"
msgstr ""
msgid "Email Validation"
msgstr ""
msgid "Validate by Postal Mail"
msgstr ""
msgid "Validated by Postal Mail"
msgstr ""
msgid "Postal Mail Validation"
msgstr ""
msgid "Pending Validation"
msgstr ""
msgid "Back to Contact Update"
msgstr ""
msgid "Validate Contact"
msgstr ""
msgid "Settings"
msgstr ""
msgid "Manage Settings"
msgstr ""
msgid "Not signed"
msgstr ""
msgid "Signed"
msgstr ""
msgid "These domain names are subject to special regulations or registration requirements. They might be available for registration but under specific conditions, such as proof of eligibility or additional documentation."
msgstr ""
msgid "Enter each"
msgstr ""
msgid "name on a new line, without the extension. For instance, use \"example\" in place of \"example.com\"."
msgstr ""
msgid "View Ticket"
msgstr ""
msgid "Open"
msgstr ""
msgid "In Progress"
msgstr ""
msgid "Resolved"
msgstr ""
msgid "Low"
msgstr ""
msgid "Medium"
msgstr ""
msgid "High"
msgstr ""
msgid "Critical"
msgstr ""
msgid "Close Ticket"
msgstr ""
msgid "Escalate Ticket"
msgstr ""
msgid "Reopen Ticket"
msgstr ""
msgid "Enter old password"
msgstr ""
msgid "Enter new password"
msgstr ""
msgid "Recent Domains"
msgstr ""
msgid "Recent Support Tickets"
msgstr ""

View file

@ -1347,3 +1347,108 @@ msgstr "Валюта реєстру"
msgid "Choose the currency for all transactions. This impacts billing and financial reports. Inform stakeholders of changes."
msgstr "Виберіть валюту для всіх операцій. Це впливає на рахунки та фінансові звіти. Інформувати зацікавлених сторін про зміни."
msgid "Contact Validation"
msgstr "Перевірка контакту"
msgid "Validate by Phone"
msgstr "Перевірка телефоном"
msgid "Validated by Phone"
msgstr "Перевірено телефоном"
msgid "Phone Validation"
msgstr "Телефонна перевірка"
msgid "Validated by Email"
msgstr "Перевірено електронною поштою"
msgid "Validate by Email"
msgstr "Перевірка електронною поштою"
msgid "Email Validation"
msgstr "Перевірка електронної пошти"
msgid "Validate by Postal Mail"
msgstr "Перевірка поштою"
msgid "Validated by Postal Mail"
msgstr "Перевірено поштою"
msgid "Postal Mail Validation"
msgstr "Перевірка поштовою скринькою"
msgid "Pending Validation"
msgstr "Очікує на перевірку"
msgid "Back to Contact Update"
msgstr "Повернутися до оновлення контактів"
msgid "Validate Contact"
msgstr "Підтвердити контакт"
msgid "Settings"
msgstr "Налаштування"
msgid "Manage Settings"
msgstr "Керування налаштуваннями"
msgid "Not signed"
msgstr "Не підписано"
msgid "Signed"
msgstr "Підписано"
msgid "These domain names are subject to special regulations or registration requirements. They might be available for registration but under specific conditions, such as proof of eligibility or additional documentation."
msgstr "Ці доменні імена підлягають спеціальним правилам або вимогам реєстрації. Вони можуть бути доступні для реєстрації, але за певних умов, наприклад, надання доказів відповідності або додаткової документації."
msgid "Enter each"
msgstr "Введіть кожен"
msgid "name on a new line, without the extension. For instance, use \"example\" in place of \"example.com\"."
msgstr "введіть ім'я на новому рядку без розширення. Наприклад, використовуйте \"приклад\" замість \"example.com\"."
msgid "View Ticket"
msgstr "Переглянути квиток"
msgid "Open"
msgstr "Відкрити"
msgid "In Progress"
msgstr "В процесі"
msgid "Resolved"
msgstr "Вирішено"
msgid "Low"
msgstr "Низький"
msgid "Medium"
msgstr "Середній"
msgid "High"
msgstr "Високий"
msgid "Critical"
msgstr "Критичний"
msgid "Close Ticket"
msgstr "Закрити квиток"
msgid "Escalate Ticket"
msgstr "Ескалація квитка"
msgid "Reopen Ticket"
msgstr "Відновити квиток"
msgid "Enter old password"
msgstr "Введіть старий пароль"
msgid "Enter new password"
msgstr "Введіть новий пароль"
msgid "Recent Domains"
msgstr "Останні домени"
msgid "Recent Support Tickets"
msgstr "Останні запити підтримки"

View file

@ -165,13 +165,13 @@
<div class="mb-3">
<a href="/contact/validate/{{ contact.identifier }}" class="btn btn-outline-{% if contact_valid == 0 %}secondary{% elseif contact_valid == 1 %}success{% elseif contact_valid == 2 %}success{% elseif contact_valid == 3 %}info{% endif %} w-100" {% if contact_valid == 1 %}disabled{% elseif contact_valid == 2 %}disabled{% elseif contact_valid == 3 %}disabled{% endif %}>
{% if contact_valid == 0 %}
Contact Validation
{{ __('Contact Validation') }}
{% elseif contact_valid == 1 %}
Validated by Phone
{{ __('Validated by Phone') }}
{% elseif contact_valid == 2 %}
Validated by Email
{{ __('Validated by Email') }}
{% elseif contact_valid == 3 %}
Validated by Postal Mail
{{ __('Validated by Postal Mail') }}
{% endif %}
</a>
</div>

View file

@ -30,13 +30,13 @@
{% if validation_enabled is not null %}
<span class="status {% if contact_valid == 0 %}status-warning{% elseif contact_valid == 1 %}status-success{% elseif contact_valid == 2 %}status-success{% elseif contact_valid == 3 %}status-info{% endif %}" title="{% if contact_valid == 0 %}Pending Validation{% elseif contact_valid == 1 %}Validated by Phone{% elseif contact_valid == 2 %}Validated by Email{% elseif contact_valid == 3 %}Validated by Postal Mail{% endif %}">
{% if contact_valid == 0 %}
Pending Validation
{{ __('Pending Validation') }}
{% elseif contact_valid == 1 %}
Validated by Phone
{{ __('Validated by Phone') }}
{% elseif contact_valid == 2 %}
Validated by Email
{{ __('Validated by Email') }}
{% elseif contact_valid == 3 %}
Validated by Postal Mail
{{ __('Validated by Postal Mail') }}
{% endif %}
</span>
{% endif %}</h3>
@ -57,7 +57,7 @@
{% if verifyPhone == 'on' %}
{# The content you want to echo if verifyPhone is 'on' #}
<h4>
Phone Validation
{{ __('Phone Validation') }}
</h4>
<div>
<pre><code>{{ phoneDetails ? 'Phone format is valid' : 'Phone format is not valid' }}</code></pre>
@ -69,7 +69,7 @@
{% if verifyEmail == 'on' %}
{# The content you want to echo if verifyEmail is 'on' #}
<h4>
Email Validation
{{ __('Email Validation') }}
</h4>
<div>
<pre><code>{{ emailDetails == 1 ? 'Email format is valid' : 'Email format is not valid' }}</code></pre>
@ -81,7 +81,7 @@
{% if verifyPostal == 'on' %}
{# The content you want to echo if verifyPostal is 'on' #}
<h4>
Postal Mail Validation
{{ __('Postal Mail Validation') }}
</h4>
<div>
<pre><code>{{ postalDetails is empty ? 'Postal code format is not valid' : 'Postal code format is valid' }}</code></pre>

View file

@ -30,13 +30,13 @@
{% if validation_enabled is not null %}
<span class="status {% if contact_valid == 0 %}status-warning{% elseif contact_valid == 1 %}status-success{% elseif contact_valid == 2 %}status-success{% elseif contact_valid == 3 %}status-info{% endif %}" title="{% if contact_valid == 0 %}Pending Validation{% elseif contact_valid == 1 %}Validated by Phone{% elseif contact_valid == 2 %}Validated by Email{% elseif contact_valid == 3 %}Validated by Postal Mail{% endif %}">
{% if contact_valid == 0 %}
Pending Validation
{{ __('Pending Validation') }}
{% elseif contact_valid == 1 %}
Validated by Phone
{{ __('Validated by Phone') }}
{% elseif contact_valid == 2 %}
Validated by Email
{{ __('Validated by Email') }}
{% elseif contact_valid == 3 %}
Validated by Postal Mail
{{ __('Validated by Postal Mail') }}
{% endif %}
</span>
{% endif %}</h3>

View file

@ -167,7 +167,7 @@
</div>
{% endif %}
<div class="col-12 col-md-6 mt-5">
<h3 class="card-title">Recent Domains</h3>
<h3 class="card-title">{{ __('Recent Domains') }}</h3>
<div class="card">
<div class="table-responsive">
<table
@ -195,7 +195,7 @@
</div>
</div>
<div class="col-12 col-md-6 mt-5">
<h3 class="card-title">Recent Support Tickets</h3>
<h3 class="card-title">{{ __('Recent Support Tickets') }}</h3>
<div class="card">
<div class="table-responsive">
<table

View file

@ -67,14 +67,14 @@
<div class="row g-3">
<div class="col-md">
<div class="form-label required">{{ __('Old Password') }}</div>
<input type="password" class="form-control{{ errors.old_password ? ' is-invalid' : '' }}" name="old_password" placeholder="Enter old password" required>
<input type="password" class="form-control{{ errors.old_password ? ' is-invalid' : '' }}" name="old_password" placeholder="{{ __('Enter old password') }}" required>
{% if errors.old_password %}
<small class="form-hint">{{ errors.old_password | first }}</small>
{% endif %}
</div>
<div class="col-md">
<div class="form-label required">{{ __('New Password') }}</div>
<input type="password" class="form-control{{ errors.new_password ? ' is-invalid' : '' }}" name="new_password" placeholder="Enter new password" required>
<input type="password" class="form-control{{ errors.new_password ? ' is-invalid' : '' }}" name="new_password" placeholder="{{ __('Enter new password') }}" required>
{% if errors.new_password %}
<small class="form-hint">{{ errors.new_password | first }}</small>
{% endif %}

View file

@ -46,16 +46,16 @@
{% if ticket.status != 'Closed' %}
<button type="submit" name="action" value="close" class="btn btn-ghost-warning">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5.641 5.631a9 9 0 1 0 12.719 12.738m1.68 -2.318a9 9 0 0 0 -12.074 -12.098" /><path d="M12 17v.01" /><path d="M12 13.5a1.5 1.5 0 0 1 .394 -1.1m2.106 -1.9a2.6 2.6 0 0 0 -3.347 -3.361" /><path d="M3 3l18 18" /></svg>
Close Ticket
{{ __('Close Ticket') }}
</button>
<button type="submit" name="action" value="escalate" class="btn btn-outline-secondary">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19.5 7h-2.672a2 2 0 0 0 -1.414 .586l-8.414 8.414h-2.5a2.5 2.5 0 1 0 0 5h3.672a2 2 0 0 0 1.414 -.586l8.414 -8.414h1.5a2.5 2.5 0 1 0 0 -5z" /><path d="M6 10v-7" /><path d="M3 6l3 -3l3 3" /></svg>
Escalate Ticket
{{ __('Escalate Ticket') }}
</button>
{% else %}
<button type="submit" name="action" value="reopen" class="btn btn-outline-pink">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3" /><path d="M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3" /></svg>
Reopen Ticket
{{ __('Reopen Ticket') }}
</button>
{% endif %}
</div>
@ -70,15 +70,15 @@
<p><span>{{ __('Category') }}:</span> <span class="status status-indigo">{{ category }}</span></p>
<p><span>{{ __('Priority') }}:</span>
{% if ticket.priority == 'Low' %}
<span class="status status-teal">{{ ticket.priority }}</span>
<span class="status status-teal">{{ __('Low') }}</span>
{% elseif ticket.priority == 'Medium' %}
<span class="status status-blue">{{ ticket.priority }}</span>
<span class="status status-blue">{{ __('Medium') }}</span>
{% elseif ticket.priority == 'High' %}
<span class="status status-orange">{{ ticket.priority }}</span>
<span class="status status-orange">{{ __('High') }}</span>
{% elseif ticket.priority == 'Critical' %}
<span class="status status-red">{{ ticket.priority }}</span>
<span class="status status-red">{{ __('Critical') }}</span>
{% else %}
<span class="status status-cyan">{{ ticket.priority }}</span>
<span class="status status-cyan">{{ __('Unknown') }}</span>
{% endif %}</p>
<div class="card mt-4">

View file

@ -1,6 +1,6 @@
{% extends "layouts/app.twig" %}
{% block title %}{{ __('Managed Reserved Names') }}{% endblock %}
{% block title %}{{ __('Manage Reserved Names') }}{% endblock %}
{% block content %}
<div class="page-wrapper">
@ -14,7 +14,7 @@
{{ __('Overview') }}
</div>
<h2 class="page-title">
{{ __('Managed Reserved Names') }}
{{ __('Manage Reserved Names') }}
</h2>
</div>
</div>
@ -42,8 +42,8 @@
<textarea class="form-control" name="domains_{{ type }}" rows="4" placeholder="No {{ type|lower }} names. Enter new names, one per line" required></textarea>
{% endif %}
<small class="form-hint">
<strong>{{ type|capitalize }} Names:</strong> These domain names are subject to special regulations or registration requirements. They might be available for registration but under specific conditions, such as proof of eligibility or additional documentation.
<br><em>Enter each {{ type }} name on a new line, without the extension. For instance, use "example" in place of "example.com".</em>
<strong>{{ type|capitalize }} Names:</strong> {{ __('These domain names are subject to special regulations or registration requirements. They might be available for registration but under specific conditions, such as proof of eligibility or additional documentation. ') }}
<br><em>{{ __('Enter each') }} {{ type }} {{ __('name on a new line, without the extension. For instance, use "example" in place of "example.com".') }}</em>
</small>
</div>
</div>

View file

@ -14,7 +14,7 @@
function actionsFormatter(cell, formatterParams, onRendered) {
return `
<a class="btn btn-outline-info btn-icon" href="/ticket/${cell.getRow().getData().id}" title="View Ticket"><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="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6" /></svg></a>
<a class="btn btn-outline-info btn-icon" href="/ticket/${cell.getRow().getData().id}" title="{{ __('View Ticket') }}"><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="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6" /></svg></a>
`;
}
@ -28,13 +28,13 @@
switch (status) {
case 'Open':
return createBadge(status, 'success');
return createBadge("{{ __('Open') }}", 'success');
case 'In Progress':
return createBadge(status, 'warning');
return createBadge("{{ __('In Progress') }}", 'warning');
case 'Resolved':
return createBadge(status, 'info');
return createBadge("{{ __('Resolved') }}", 'info');
case 'Closed':
return createBadge(status, 'cyan');
return createBadge("{{ __('Closed') }}", 'cyan');
default:
return "";
}
@ -50,13 +50,13 @@
switch (priority) {
case 'Low':
return createBadge(priority, 'teal');
return createBadge("{{ __('Low') }}", 'teal');
case 'Medium':
return createBadge(priority, 'blue');
return createBadge("{{ __('Medium') }}", 'blue');
case 'High':
return createBadge(priority, 'orange');
return createBadge("{{ __('High') }}", 'orange');
case 'Critical':
return createBadge(priority, 'red');
return createBadge("{{ __('Critical') }}", 'red');
default:
return "";
}

View file

@ -19,12 +19,12 @@
// Return appropriate SVG icon and text based on the secure value
return secure === 1 ?
`<svg xmlns="http://www.w3.org/2000/svg" class="icon me-1 text-success" 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="M5 12l5 5l10 -10" /></svg> Signed` :
`<svg xmlns="http://www.w3.org/2000/svg" class="icon me-1 text-warning" 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="M18 6l-12 12" /><path d="M6 6l12 12" /></svg> Not signed`;
`<svg xmlns="http://www.w3.org/2000/svg" class="icon me-1 text-success" 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="M5 12l5 5l10 -10" /></svg> {{ __('Signed') }}` :
`<svg xmlns="http://www.w3.org/2000/svg" class="icon me-1 text-warning" 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="M18 6l-12 12" /><path d="M6 6l12 12" /></svg> {{ __('Not signed') }}`;
}
function actionsFormatter(cell, formatterParams, onRendered) {
return `<a class="btn btn-outline-info" href="/registry/tld/${cell.getRow().getData().tld_o}" title="Manage Settings"><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="M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2" /><path d="M14 8h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5m2 0v1.5m0 -9v1.5" /></svg> Settings</a>`;
return `<a class="btn btn-outline-info" href="/registry/tld/${cell.getRow().getData().tld_o}" title="{{ __('Manage Settings') }}"><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="M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2" /><path d="M14 8h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5m2 0v1.5m0 -9v1.5" /></svg> {{ __('Settings') }}</a>`;
}
// Mapping of database string values to script names