Verified Commit 056da464 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚜 fix(plugins) Move complex plugins configurations to their own tabs

issue #5930
parent 5d456e64
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2017-2018 FusionDirectory
Copyright (C) 2017-2019 FusionDirectory
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -23,11 +24,11 @@ class invitationsConfig extends simplePlugin
static function plInfo (): array
{
return [
'plShortName' => _('Invitations configuration'),
'plShortName' => _('Invitations'),
'plTitle' => _('Invitations configuration'),
'plDescription' => _('FusionDirectory invitations plugin configuration'),
'plObjectClass' => ['fdInvitationsPluginConf'],
'plCategory' => ['configuration'],
'plObjectType' => ['smallConfig'],
'plObjectType' => ['configuration'],
'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo())
];
......@@ -37,7 +38,7 @@ class invitationsConfig extends simplePlugin
{
return [
'main' => [
'name' => _('Invitations'),
'name' => _('LDAP'),
'attrs' => [
new StringAttribute(
_('Invitations RDN'), _('Branch in which invitations will be stored'),
......@@ -49,16 +50,16 @@ class invitationsConfig extends simplePlugin
'fdRegistrationRDN', TRUE,
'ou=registrations'
),
]
],
'default' => [
'name' => _('Emails'),
'attrs' => [
new StringAttribute(
_('Email expeditor'), _('The email address used to send invitation emails. Be careful to select an address that your server can send from without being flagged as spam.'),
'fdInvitationFromEmailAddress', TRUE,
'no-reply@example.com'
),
]
],
'default' => [
'name' => _('Invitations'),
'attrs' => [
new TextAreaAttribute(
_('Default email content'), _('Default content of the email sent invitations'),
'fdInvitationDefaultEmailContent', TRUE,
......
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2015-2017 FusionDirectory
Copyright (C) 2015-2019 FusionDirectory
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -23,10 +24,11 @@ class posixConfig extends simplePlugin
static function plInfo (): array
{
return [
'plShortName' => _('POSIX configuration'),
'plShortName' => _('POSIX'),
'plTitle' => _('POSIX configuration'),
'plDescription' => _('FusionDirectory POSIX plugin configuration'),
'plCategory' => ['configuration'],
'plObjectType' => ['smallConfig'],
'plPriority' => 2,
'plObjectType' => ['configuration'],
'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo())
];
......@@ -36,7 +38,7 @@ class posixConfig extends simplePlugin
{
return [
'main' => [
'name' => _('Posix'),
'name' => _('POSIX'),
'class' => ['critical'],
'attrs' => [
new StringAttribute(
......
......@@ -24,11 +24,11 @@ class sinapsConfig extends simplePlugin
static function plInfo (): array
{
return [
'plShortName' => _('SINAPS configuration'),
'plShortName' => _('SINAPS'),
'plTitle' => _('SINAPS configuration'),
'plDescription' => _('FusionDirectory SINAPS plugin configuration'),
'plObjectClass' => ['fdSinapsPluginConf'],
'plCategory' => ['configuration'],
'plObjectType' => ['smallConfig'],
'plObjectType' => ['configuration'],
'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo())
];
......@@ -40,7 +40,7 @@ class sinapsConfig extends simplePlugin
return [
'main' => [
'name' => _('Sinaps'),
'name' => _('SINAPS'),
'attrs' => [
new BooleanAttribute(
_('Enable SINAPS integration'), _('Whether to enable the SINAPS integration'),
......@@ -98,7 +98,7 @@ class sinapsConfig extends simplePlugin
]
],
'acquisition' => [
'name' => _('Sinaps Acquisition'),
'name' => _('Acquisition'),
'attrs' => [
new StringAttribute(
_('Acquisition URL'), _('Full URL to which acquisition events should be sent'),
......
......@@ -26,11 +26,11 @@ class supannConfig extends simplePlugin
static function plInfo (): array
{
return [
'plShortName' => _('SupAnn configuration'),
'plShortName' => _('SupAnn'),
'plTitle' => _('SupAnn configuration'),
'plDescription' => _('FusionDirectory SupAnn plugin configuration'),
'plObjectClass' => ['fdSupannPluginConf'],
'plCategory' => ['configuration'],
'plObjectType' => ['smallConfig'],
'plObjectType' => ['configuration'],
'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo())
];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment