Skip to content

Commit

Permalink
Code quality & lang files
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Barkowsky committed Jan 26, 2025
1 parent 210f0ab commit 3b7603e
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 15 deletions.
1 change: 0 additions & 1 deletion contao/dca/tl_lead.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use Contao\DC_Table;
use Doctrine\DBAL\Platforms\AbstractMySQLPlatform;


$GLOBALS['TL_DCA']['tl_lead']['config']['notEditable'] = false;

$GLOBALS['TL_DCA']['tl_lead']['list']['label']['fields'][] = 'status';
Expand Down
8 changes: 4 additions & 4 deletions contao/languages/de/tl_lead_status.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
<target>Farbe</target>
</trans-unit>
<trans-unit id="tl_lead_status.color.1">
<source>Wählen Sie ihren Anzeigefarbe.</source>
<target>Wählen Sie ihren Anzeigefarbe.</target>
<source>Wählen Sie ihre Anzeigefarbe.</source>
<target>Wählen Sie ihre Anzeigefarbe.</target>
</trans-unit>
<trans-unit id="tl_lead_status.defaultValue.0">
<source>Standard</source>
<target>Standard</target>
</trans-unit>
<trans-unit id="tl_lead_status.defaultValue.1">
<source>Wählen Sie diese Option, wenn dieser Status beim Erstellen eines Leads als Standard festgelegt werden soll.</source>
<target>Wählen Sie diese Option, wenn dieser Status beim Erstellen eines Leads als Standard festgelegt werden soll.</target>
<source>Wählen Sie diese Option, wenn dieser Status beim erstellen eines Leads als Standard festgelegt werden soll.</source>
<target>Wählen Sie diese Option, wenn dieser Status beim erstellen eines Leads als Standard festgelegt werden soll.</target>
</trans-unit>
</body>
</file>
Expand Down
2 changes: 1 addition & 1 deletion src/ContaoManager/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Plenta Jobs Basic Bundle for Contao Open Source CMS
*
* @copyright Copyright (c) 2023, Plenta.io
* @copyright Copyright (c) 2024-2025, Plenta.io
* @author Plenta.io <https://plenta.io>
* @link https://github.com/plenta/
*/
Expand Down
8 changes: 8 additions & 0 deletions src/EventListener/DataContainer/LeadStatusLabelListener.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/**
* Plenta Jobs Basic Bundle for Contao Open Source CMS
*
* @copyright Copyright (c) 2024-2025, Plenta.io
* @author Plenta.io <https://plenta.io>
* @link https://github.com/plenta/
*/

namespace Plenta\LeadsStatusBundle\EventListener\DataContainer;

use Doctrine\DBAL\Connection;
Expand Down
11 changes: 9 additions & 2 deletions src/EventListener/DataContainer/LeadStatusOnLoadListener.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
<?php

/**
* Plenta Jobs Basic Bundle for Contao Open Source CMS
*
* @copyright Copyright (c) 2024-2025, Plenta.io
* @author Plenta.io <https://plenta.io>
* @link https://github.com/plenta/
*/

namespace Plenta\LeadsStatusBundle\EventListener\DataContainer;

use Contao\ContentModel;
use Contao\CoreBundle\DependencyInjection\Attribute\AsCallback;
use Contao\DataContainer;
use Doctrine\DBAL\Connection;
use Symfony\Component\HttpFoundation\RequestStack;
use Contao\CoreBundle\DependencyInjection\Attribute\AsCallback;

#[AsCallback(table: 'tl_lead', target: 'config.onload')]
class LeadStatusOnLoadListener
Expand Down
12 changes: 9 additions & 3 deletions src/EventListener/DataContainer/LeadStatusOptionsListener.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
<?php

/**
* Plenta Jobs Basic Bundle for Contao Open Source CMS
*
* @copyright Copyright (c) 2024-2025, Plenta.io
* @author Plenta.io <https://plenta.io>
* @link https://github.com/plenta/
*/

namespace Plenta\LeadsStatusBundle\EventListener\DataContainer;

use Contao\CoreBundle\DependencyInjection\Attribute\AsCallback;
use Contao\DataContainer;
use Doctrine\DBAL\Connection;
use ErdmannFreunde\ContactBundle\Contao\Model\ContactCategoryModel;
use ErdmannFreunde\ContactBundle\Contao\Model\ContactModel;
use Contao\CoreBundle\DependencyInjection\Attribute\AsCallback;

#[AsCallback(table: 'tl_lead', target: 'fields.status.options')]
class LeadStatusOptionsListener
Expand Down
5 changes: 1 addition & 4 deletions src/PlentaLeadsStatusBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@
/**
* Plenta Jobs Basic Bundle for Contao Open Source CMS
*
* @copyright Copyright (c) 2021, Plenta.io
* @copyright Copyright (c) 2024-2025, Plenta.io
* @author Plenta.io <https://plenta.io>
* @link https://github.com/plenta/
*/

namespace Plenta\LeadsStatusBundle;

use Plenta\ContaoJobsBasic\DependencyInjection\PlentaContaoJobsBasicExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class PlentaLeadsStatusBundle extends AbstractBundle
{
Expand Down

0 comments on commit 3b7603e

Please sign in to comment.