Skip to content

Commit

Permalink
add prefix to new member table fields
Browse files Browse the repository at this point in the history
  • Loading branch information
maltedv committed Aug 10, 2020
1 parent 86fbedb commit 9472b6d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions Resources/contao/dca/tl_member.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
use Contao\Backend;

Contao\CoreBundle\DataContainer\PaletteManipulator::create()
->addField(['internalUserId'], 'personal_legend', Contao\CoreBundle\DataContainer\PaletteManipulator::POSITION_APPEND)
->addField(['c4g_internalUserId'], 'personal_legend', Contao\CoreBundle\DataContainer\PaletteManipulator::POSITION_APPEND)
->applyToPalette('default', 'tl_member');

Contao\CoreBundle\DataContainer\PaletteManipulator::create()
->addLegend('company_data', 'personal_legend', Contao\CoreBundle\DataContainer\PaletteManipulator::POSITION_AFTER, true)
->addField(['department', 'room'], 'company_data', Contao\CoreBundle\DataContainer\PaletteManipulator::POSITION_APPEND)
->addLegend('c4g_company_data', 'personal_legend', Contao\CoreBundle\DataContainer\PaletteManipulator::POSITION_AFTER, true)
->addField(['c4g_department', 'c4g_room'], 'c4g_company_data', Contao\CoreBundle\DataContainer\PaletteManipulator::POSITION_APPEND)
->applyToPalette('default', 'tl_member');

/**
Expand All @@ -35,9 +35,9 @@
'sql' => "int(10) unsigned NOT NULL default '0'"
);

$GLOBALS['TL_DCA']['tl_member']['fields']['internalUserId'] = array
$GLOBALS['TL_DCA']['tl_member']['fields']['c4g_internalUserId'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_member']['internalUserId'],
'label' => &$GLOBALS['TL_LANG']['tl_member']['c4g_internalUserId'],
'sorting' => true,
'search' => true,
'inputType' => 'text',
Expand All @@ -46,9 +46,9 @@
'sql' => "varchar(100) unsigned NOT NULL default ''"
);

$GLOBALS['TL_DCA']['tl_member']['fields']['department'] = array
$GLOBALS['TL_DCA']['tl_member']['fields']['c4g_department'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_member']['department'],
'label' => &$GLOBALS['TL_LANG']['tl_member']['c4g_department'],
'sorting' => true,
'search' => true,
'inputType' => 'text',
Expand All @@ -57,9 +57,9 @@
'sql' => "varchar(100) unsigned NOT NULL default ''"
);

$GLOBALS['TL_DCA']['tl_member']['fields']['room'] = array
$GLOBALS['TL_DCA']['tl_member']['fields']['c4g_room'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_member']['room'],
'label' => &$GLOBALS['TL_LANG']['tl_member']['c4g_room'],
'sorting' => true,
'search' => true,
'inputType' => 'text',
Expand Down
8 changes: 4 additions & 4 deletions Resources/contao/languages/de/tl_member.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
*
*/

$GLOBALS['TL_LANG']['tl_member']['company_data'] = "Unternehmensdaten";
$GLOBALS['TL_LANG']['tl_member']['c4g_company_data'] = "Unternehmensdaten";

/** Field Labels */
$GLOBALS['TL_LANG']['tl_member']['internalUserId'] = array('Interne Benutzerkennung', 'Bitte geben Sie hier die interne Benutzerkennung aus dem LDAP an.');
$GLOBALS['TL_LANG']['tl_member']['department'] = array('Abteilung', 'Bitte geben Sie hier die Abteilung an.');
$GLOBALS['TL_LANG']['tl_member']['room'] = array('Raumnummer', 'Bitte geben Sie hier die Raumnummer an.');
$GLOBALS['TL_LANG']['tl_member']['c4g_internalUserId'] = array('Interne Benutzerkennung', 'Bitte geben Sie hier die interne Benutzerkennung aus dem LDAP an.');
$GLOBALS['TL_LANG']['tl_member']['c4g_department'] = array('Abteilung', 'Bitte geben Sie hier die Abteilung an.');
$GLOBALS['TL_LANG']['tl_member']['c4g_room'] = array('Raumnummer', 'Bitte geben Sie hier die Raumnummer an.');
8 changes: 4 additions & 4 deletions Resources/contao/languages/en/tl_member.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
*
*/

$GLOBALS['TL_LANG']['tl_member']['company_data'] = "Company details";
$GLOBALS['TL_LANG']['tl_member']['c4g_company_data'] = "Company details";

/** Field Labels */
$GLOBALS['TL_LANG']['tl_member']['internalUserId'] = array('Internal user id', 'Please enter the internal user ID from LDAP here.');
$GLOBALS['TL_LANG']['tl_member']['department'] = array('Department', 'Please enter the department here.');
$GLOBALS['TL_LANG']['tl_member']['room'] = array('Room no.', 'Please enter the room number here.');
$GLOBALS['TL_LANG']['tl_member']['c4g_internalUserId'] = array('Internal user id', 'Please enter the internal user ID from LDAP here.');
$GLOBALS['TL_LANG']['tl_member']['c4g_department'] = array('Department', 'Please enter the department here.');
$GLOBALS['TL_LANG']['tl_member']['c4g_room'] = array('Room no.', 'Please enter the room number here.');

0 comments on commit 9472b6d

Please sign in to comment.