mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-21 18:16:03 +02:00
Preparations for domain and registrar view; fixes
This commit is contained in:
parent
d262c6fbe9
commit
0c2468a860
6 changed files with 9 additions and 7 deletions
|
@ -83,7 +83,7 @@
|
|||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {{ is_current_url('domains') or is_current_url('domaincheck') or is_current_url('domaincreate') or is_current_url('transfers') ? 'class="nav-item dropdown active"' : 'class="nav-item dropdown"' }}>
|
||||
<li {{ is_current_url('domains') or is_current_url('domaincheck') or is_current_url('domaincreate') or is_current_url('transfers') or 'domain' in currentUri ? 'class="nav-item dropdown active"' : 'class="nav-item dropdown"' }}>
|
||||
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown" data-bs-auto-close="outside" role="button" aria-expanded="false">
|
||||
<span class="nav-link-icon d-md-none d-lg-inline-block"><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><path d="M19.5 7a9 9 0 0 0 -7.5 -4a8.991 8.991 0 0 0 -7.484 4"></path><path d="M11.5 3a16.989 16.989 0 0 0 -1.826 4"></path><path d="M12.5 3a16.989 16.989 0 0 1 1.828 4"></path><path d="M19.5 17a9 9 0 0 1 -7.5 4a8.991 8.991 0 0 1 -7.484 -4"></path><path d="M11.5 21a16.989 16.989 0 0 1 -1.826 -4"></path><path d="M12.5 21a16.989 16.989 0 0 0 1.828 -4"></path><path d="M2 10l1 4l1.5 -4l1.5 4l1 -4"></path> <path d="M17 10l1 4l1.5 -4l1.5 4l1 -4"></path><path d="M9.5 10l1 4l1.5 -4l1.5 4l1 -4"></path></svg>
|
||||
</span>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
document.addEventListener("DOMContentLoaded", function(){
|
||||
function contactLinkFormatter(cell){
|
||||
var value = cell.getValue();
|
||||
return `<a href="/contact/${value}" style="font-weight:bold;">${value}</a>`;
|
||||
return `<a href="/contact/view/${value}" style="font-weight:bold;">${value}</a>`;
|
||||
}
|
||||
|
||||
function actionsFormatter(cell, formatterParams, onRendered) {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
document.addEventListener("DOMContentLoaded", function(){
|
||||
function domainLinkFormatter(cell){
|
||||
var value = cell.getValue();
|
||||
return `<a href="/domain/${value}" style="font-weight:bold;">${value}</a>`;
|
||||
return `<a href="/domain/view/${value}" style="font-weight:bold;">${value}</a>`;
|
||||
}
|
||||
|
||||
function actionsFormatter(cell, formatterParams, onRendered) {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
document.addEventListener("DOMContentLoaded", function(){
|
||||
function hostLinkFormatter(cell){
|
||||
var value = cell.getValue();
|
||||
return `<a href="/host/${value}" style="font-weight:bold;">${value}</a>`;
|
||||
return `<a href="/host/view/${value}" style="font-weight:bold;">${value}</a>`;
|
||||
}
|
||||
|
||||
function actionsFormatter(cell, formatterParams, onRendered) {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
document.addEventListener("DOMContentLoaded", function(){
|
||||
function registrarLinkFormatter(cell){
|
||||
var value = cell.getValue();
|
||||
return `<a href="/registrar/${value}" style="font-weight:bold;">${value}</a>`;
|
||||
return `<a href="/registrar/view/${value}" style="font-weight:bold;">${value}</a>`;
|
||||
}
|
||||
|
||||
function actionsFormatter(cell, formatterParams, onRendered) {
|
||||
|
|
|
@ -45,18 +45,20 @@ $app->group('', function ($route) {
|
|||
$route->get('/domains', DomainsController::class .':view')->setName('domains');
|
||||
$route->map(['GET', 'POST'], '/domain/check', DomainsController::class . ':check')->setName('domaincheck');
|
||||
$route->map(['GET', 'POST'], '/domain/create', DomainsController::class . ':create')->setName('domaincreate');
|
||||
$route->get('/domain/view/{domain}', DomainsController::class . ':viewDomain')->setName('viewDomain');
|
||||
$route->map(['GET', 'POST'], '/transfers', DomainsController::class . ':transfers')->setName('transfers');
|
||||
|
||||
$route->get('/contacts', ContactsController::class .':view')->setName('contacts');
|
||||
$route->map(['GET', 'POST'], '/contact/create', ContactsController::class . ':create')->setName('contactcreate');
|
||||
$route->get('/contact/{contact}', ContactsController::class . ':viewContact')->setName('viewContact');
|
||||
$route->get('/contact/view/{contact}', ContactsController::class . ':viewContact')->setName('viewContact');
|
||||
|
||||
$route->get('/hosts', HostsController::class .':view')->setName('hosts');
|
||||
$route->map(['GET', 'POST'], '/host/create', HostsController::class . ':create')->setName('hostcreate');
|
||||
$route->get('/host/{host}', HostsController::class . ':viewHost')->setName('viewHost');
|
||||
$route->get('/host/view/{host}', HostsController::class . ':viewHost')->setName('viewHost');
|
||||
|
||||
$route->get('/registrars', RegistrarsController::class .':view')->setName('registrars');
|
||||
$route->map(['GET', 'POST'], '/registrar/create', RegistrarsController::class . ':create')->setName('registrarcreate');
|
||||
$route->get('/registrar/view/{registrar}', RegistrarsController::class . ':viewRegistrar')->setName('viewRegistrar');
|
||||
|
||||
$route->get('/users', UsersController::class .':view')->setName('users');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue