mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-14 20:35:08 +02:00
Allow user to set a currency in which every price is shown for him.
This commit is contained in:
parent
01da705b54
commit
2d34649ae6
6 changed files with 50 additions and 14 deletions
|
@ -2,7 +2,10 @@
|
|||
|
||||
namespace App\Form;
|
||||
|
||||
use App\Entity\PriceInformations\Currency;
|
||||
use App\Entity\UserSystem\User;
|
||||
use App\Form\Type\CurrencyEntityType;
|
||||
use App\Form\Type\StructuralEntityType;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\EmailType;
|
||||
|
@ -75,6 +78,10 @@ class UserSettingsType extends AbstractType
|
|||
'placeholder' => $this->trans->trans('user_settings.theme.placeholder'),
|
||||
'label' => $this->trans->trans('user.theme.label'),
|
||||
])
|
||||
->add('currency', CurrencyEntityType::class, [
|
||||
'required' => false,
|
||||
'label' => $this->trans->trans('user.currency.label')
|
||||
])
|
||||
|
||||
//Buttons
|
||||
->add('save', SubmitType::class, ['label' => 'save'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue