Skip to content

Commit

Permalink
Add status to show page
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed May 18, 2024
1 parent e159dad commit 4d79f8d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Admin/Model/UserAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\FieldDescription\FieldDescriptionInterface;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Form\Type\ModelType;
use Sonata\AdminBundle\Show\ShowMapper;
Expand Down Expand Up @@ -129,6 +130,7 @@ protected function configureShowFields(ShowMapper $show): void
->with('general', ['label' => 'show.group_general'])
->add('username')
->add('email')
->add('enabled', FieldDescriptionInterface::TYPE_BOOLEAN)
->end()
->with('groups', ['label' => 'show.group_groups'])
->add('groups')
Expand Down
4 changes: 4 additions & 0 deletions src/Resources/translations/NucleosUserAdminBundle.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@
<source>list.label_id</source>
<target>ID</target>
</trans-unit>
<trans-unit id="show.label_enabled">
<source>show.label_enabled</source>
<target>Aktiviert</target>
</trans-unit>
</body>
</file>
</xliff>
4 changes: 4 additions & 0 deletions src/Resources/translations/NucleosUserAdminBundle.en.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@
<source>list.label_id</source>
<target>ID</target>
</trans-unit>
<trans-unit id="show.label_enabled">
<source>show.label_enabled</source>
<target>Enabled</target>
</trans-unit>
</body>
</file>
</xliff>

0 comments on commit 4d79f8d

Please sign in to comment.