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:
@@ -132,7 +132,7 @@ UI::view('user/dns-editor.html.twig', [
|
|||||||
'action' => 'edit',
|
'action' => 'edit',
|
||||||
'id' => $domain_id
|
'id' => $domain_id
|
||||||
]),
|
]),
|
||||||
'label' => lng('panel.edit'),
|
'label' => lng('admin.domain_edit'),
|
||||||
'icon' => 'fa-solid fa-pen'
|
'icon' => 'fa-solid fa-pen'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ return [
|
|||||||
'description' => $domain,
|
'description' => $domain,
|
||||||
'icon' => 'fa-solid fa-globe',
|
'icon' => 'fa-solid fa-globe',
|
||||||
'self_overview' => ['section' => 'domains', 'page' => 'domaindnseditor'],
|
'self_overview' => ['section' => 'domains', 'page' => 'domaindnseditor'],
|
||||||
|
'default_sorting' => ['record' => 'asc'],
|
||||||
'columns' => [
|
'columns' => [
|
||||||
'record' => [
|
'record' => [
|
||||||
'label' => 'Record',
|
'label' => 'Record',
|
||||||
|
|||||||
@@ -96,6 +96,17 @@ if ($action == '' || $action == 'view') {
|
|||||||
'formdata' => $ssleditor_data['domain_ssleditor'],
|
'formdata' => $ssleditor_data['domain_ssleditor'],
|
||||||
'editid' => $id,
|
'editid' => $id,
|
||||||
'actions_links' => [
|
'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',
|
'class' => 'btn-outline-primary',
|
||||||
'href' => $linker->getLink(['section' => 'domains', 'page' => 'overview']),
|
'href' => $linker->getLink(['section' => 'domains', 'page' => 'overview']),
|
||||||
|
|||||||
Reference in New Issue
Block a user