From 8de58aa39d61e338c40e09873825f755251c107a Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 17 Dec 2023 06:41:19 +0000 Subject: [PATCH] open channel settings when empty --- src/Module/Settings/Channels.php | 1 + view/theme/frio/templates/settings/channels.tpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Module/Settings/Channels.php b/src/Module/Settings/Channels.php index 557283fef3..5e45b2cbb4 100644 --- a/src/Module/Settings/Channels.php +++ b/src/Module/Settings/Channels.php @@ -152,6 +152,7 @@ class Channels extends BaseSettings $t = Renderer::getMarkupTemplate('settings/channels.tpl'); return Renderer::replaceMacros($t, [ + 'open' => count($channels) == 0, 'label' => ["new_label", $this->t('Label'), '', $this->t('Short name for the channel. It is displayed on the channels widget.'), $this->t('Required')], 'description' => ["new_description", $this->t("Description"), '', $this->t('This should describe the content of the channel in a few word.')], 'access_key' => ["new_access_key", $this->t("Access Key"), '', $this->t('When you want to access this channel via an access key, you can define it here. Pay attention to not use an already used one.')], diff --git a/view/theme/frio/templates/settings/channels.tpl b/view/theme/frio/templates/settings/channels.tpl index be11966842..7ed2b1cc5d 100644 --- a/view/theme/frio/templates/settings/channels.tpl +++ b/view/theme/frio/templates/settings/channels.tpl @@ -5,12 +5,12 @@
-
+
{{include file="field_input.tpl" field=$label}} {{include file="field_input.tpl" field=$description}}