diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2023-07-13 13:14:56 +0000 |
|---|---|---|
| committer | Rasmus Fuhse <fuhse@data-quest.de> | 2023-07-13 13:14:56 +0000 |
| commit | 74603117e50e764dfb0233d49cb99ffafaccac54 (patch) | |
| tree | 6dda9ee2c02a06a275d76aa05619eb6402176f18 /app/controllers/admin | |
| parent | 578284e2ee4d8c8f2901b26abcb3efd440b9ad7f (diff) | |
Resolve "Restrukturierung der Veranstaltungsverwaltung inklusive Mehr-Seite"
Closes #2440
Merge request studip/studip!1695
Diffstat (limited to 'app/controllers/admin')
| -rw-r--r-- | app/controllers/admin/plugin.php | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app/controllers/admin/plugin.php b/app/controllers/admin/plugin.php index 7a87d8f..ef63517 100644 --- a/app/controllers/admin/plugin.php +++ b/app/controllers/admin/plugin.php @@ -571,4 +571,49 @@ class Admin_PluginController extends AuthenticatedController } } + public function edit_description_action(Plugin $plugin) + { + $this->plugin = PluginManager::getInstance()->getPluginById($plugin->getId()); + $this->metadata = $this->plugin->getMetadata(); + $this->form = \Studip\Forms\Form::fromSORM($plugin, [ + 'legend' => _('Pluginbeschreibung'), + 'fields' => [ + 'description' => [ + 'label' => _('Beschreibung'), + 'type' => 'i18n_formatted' + ], + 'manifest_info_de' => [ + 'label' => _('Standardbeschreibung des Plugins'), + 'type' => 'info', + 'value' => $this->metadata['descriptionlong'] ?? $this->metadata['description'], + 'if' => "STUDIPFORM_SELECTEDLANGUAGES.description === 'de_DE'" + ], + 'manifest_info_en' => [ + 'label' => sprintf(_('Standardbeschreibung des Plugins (%s)'), _('Englisch')), + 'type' => 'info', + 'value' => $this->metadata['descriptionlong_en'] ?? $this->metadata['description_en'], + 'if' => "STUDIPFORM_SELECTEDLANGUAGES.description === 'en_GB'" + ], + 'decription_mode' => [ + 'label' => _('Modus der neuen Beschreibung'), + 'type' => 'select', + 'options' => [ + 'add' => _('Hinzufügen zur Standardbeschreibung'), + 'override_description' => _('Standardbeschreibung überschreiben'), + 'replace_all' => _('Beschreibungsfenster komplett ersetzen durch Beschreibung') + ] + ], + 'highlight_until' => [ + 'label' => _('In Veranstaltungen bewerben bis (oder leer lassen)'), + 'type' => 'datetimepicker' + ], + 'highlight_text' => [ + 'label' => _('Bewerbungs-Infotext') + ] + ] + ])->autoStore() + //->setDebugMode(true) + ->setURL(URLHelper::getURL('dispatch.php/admin/plugin/index')); + } + } |
