Remove Classic Section in MainConfigurationFormType

This commit is contained in:
Benoît Burnichon
2015-12-02 18:55:37 +01:00
parent 390a199e4e
commit fb725b3475
4 changed files with 0 additions and 100 deletions

View File

@@ -123,19 +123,6 @@ class RegistryManipulator
'auto-select-collections' => true,
'auto-register-enabled' => false,
],
'classic' => [
'search-tab' => 1,
'adv-search-tab' => 2,
'topics-tab' => 0,
'active-tab' => 1,
'render-topics' => 'tree',
'stories-preview' => true,
'basket-rollover' => true,
'collection-presentation' => 'checkbox',
'basket-size-display' => true,
'auto-show-proposals' => true,
'collection-display' => true,
],
'maintenance' => [
'message' => 'The application is down for maintenance',
'enabled' => false,

View File

@@ -1,66 +0,0 @@
<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2014 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Form\Configuration;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class ClassicFormType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('search-tab', 'integer', [
'label' => 'Search tab position',
]);
$builder->add('adv-search-tab', 'integer', [
'label' => 'Advanced search tab position',
]);
$builder->add('topics-tab', 'integer', [
'label' => 'Topics tab position',
]);
$builder->add('active-tab', 'integer', [
'label' => 'Active tab position',
]);
$builder->add('render-topics', 'choice', [
'label' => 'Topics display mode',
'choices' => ['tree' => 'Trees', 'popups' => 'Drop-down'],
]);
$builder->add('stories-preview', 'checkbox', [
'label' => 'Enable roll-over on stories',
]);
$builder->add('basket-rollover', 'checkbox', [
'label' => 'Enable roll-over on basket elements',
]);
$builder->add('collection-presentation', 'choice', [
'label' => 'Collections display mode',
'choices' => ['popup' => 'Drop-down', 'checkbox' => 'Check-box'],
]);
$builder->add('basket-size-display', 'checkbox', [
'label' => 'Display the total size of the document basket',
]);
$builder->add('auto-show-proposals', 'checkbox', [
'label' => 'Display proposals tab',
]);
$builder->add('collection-display', 'checkbox', [
'label' => 'Display the name of databases and collections',
]);
}
public function getName()
{
return null;
}
}

View File

@@ -44,9 +44,6 @@ class MainConfigurationFormType extends AbstractType
$builder->add('registration', new RegistrationFormType(), [
'label' => 'Registration',
]);
$builder->add('classic', new ClassicFormType(), [
'label' => 'Client',
]);
$builder->add('maintenance', new MaintenanceFormType(), [
'label' => 'Maintenance state',
]);

View File

@@ -1,18 +0,0 @@
<?php
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\ClassicFormType;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
/**
* @group functional
* @group legacy
*/
class ClassicFormTypeTest extends FormTestCase
{
public function getForm()
{
return new ClassicFormType();
}
}