* @license https://files.froxlor.org/misc/COPYING.txt GPLv2 */ use Froxlor\UI\Callbacks\Dns; use Froxlor\UI\Callbacks\Text; use Froxlor\UI\Listing; return [ 'dns_list' => [ 'title' => 'DNS Entries', 'icon' => 'fa-solid fa-globe', 'columns' => [ 'record' => [ 'label' => 'Record', 'field' => 'record' ], 'type' => [ 'label' => 'Type', 'field' => 'type' ], 'prio' => [ 'label' => 'Priority', 'field' => 'prio', 'callback' => [Dns::class, 'prio'], ], 'content' => [ 'label' => 'Content', 'field' => 'content', 'callback' => [Text::class, 'wordwrap'], ], 'ttl' => [ 'label' => 'TTL', 'field' => 'ttl' ] ], 'visible_columns' => Listing::getVisibleColumnsForListing('dns_list', [ 'record', 'type', 'prio', 'content', 'ttl' ]), 'actions' => [ 'delete' => [ 'icon' => 'fa fa-trash', 'title' => lng('panel.delete'), 'class' => 'text-danger', 'href' => [ 'section' => 'domains', 'page' => 'domaindnseditor', 'action' => 'delete', 'domain_id' => $domain_id, 'id' => ':id' ], ], ] ] ];