add default-sorting to dns-record tablelisting; add edit-domain button in ssl-editor

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-10-15 11:11:05 +02:00
parent 6953d0f883
commit f19f7ba936
3 changed files with 13 additions and 1 deletions

View File

@@ -132,7 +132,7 @@ UI::view('user/dns-editor.html.twig', [
'action' => 'edit',
'id' => $domain_id
]),
'label' => lng('panel.edit'),
'label' => lng('admin.domain_edit'),
'icon' => 'fa-solid fa-pen'
],
[

View File

@@ -33,6 +33,7 @@ return [
'description' => $domain,
'icon' => 'fa-solid fa-globe',
'self_overview' => ['section' => 'domains', 'page' => 'domaindnseditor'],
'default_sorting' => ['record' => 'asc'],
'columns' => [
'record' => [
'label' => 'Record',

View File

@@ -96,6 +96,17 @@ if ($action == '' || $action == 'view') {
'formdata' => $ssleditor_data['domain_ssleditor'],
'editid' => $id,
'actions_links' => [
[
'class' => 'btn-secondary',
'href' => $linker->getLink([
'section' => 'domains',
'page' => 'domains',
'action' => 'edit',
'id' => $id
]),
'label' => lng('admin.domain_edit'),
'icon' => 'fa-solid fa-pen'
],
[
'class' => 'btn-outline-primary',
'href' => $linker->getLink(['section' => 'domains', 'page' => 'overview']),