Questions tagged [easyadmin]

EasyAdmin is a Symfony bundle that lets you create administration backends for Symfony applications with unprecedented simplicity.

EasyAdmin lets you create administration backends for Symfony applications with unprecedented simplicity.

Features

  • CRUD operations on Doctrine entities (create, edit, list, delete).
  • Full-text search, pagination and column sorting.
  • Fully responsive design (smartphones, tablets and desktops).
  • Translated into tens of languages.
  • Fast, simple and smart where appropriate.

Useful links

431 questions
0
votes
1 answer

EasyAdminBundle - List of users by role and group

I am trying to use EasyAdminBundle (https://github.com/EasyCorp/EasyAdminBundle) to manage the admin part of my project. I am currently doing the list of users, it works very well. I get the list of all existing users However, users are all assigned…
SkroS2
  • 81
  • 1
  • 12
0
votes
1 answer

Custom form for user password in Symfony 4

In Easy Admin, I already have a list/edit form of users. I want to add an extra form to change password of any member user. (password, repeat password, submit) In the documentation custom forms are told to be entity specific. For example, to create…
tolga
  • 2,462
  • 4
  • 31
  • 57
0
votes
1 answer

Correctly show mapping association using inheritance

Im working with entities inheritances using doctrine Class Table Inheritance. I have a base entity BaseEntity. Then I have FirstEntity and SecondEntity that extends the BaseEntity. In other hands, I have a StandardEntity that have a mapping…
fliim
  • 2,059
  • 4
  • 18
  • 31
0
votes
2 answers

EasyAdmin: Display integer cent-amount as Euro/Dollar (like MoneyType with `divisor`) in list view

When storing a currency value as integer (i.e. Cent), is there a way to display it in list view as Euro/Dollar? Example: € 900 are stored in the database as 90000. EasyAdmin displays this as 90,000. What I'd like to have is 900 (or 900,00 or…
Thomas Landauer
  • 7,857
  • 10
  • 47
  • 99
0
votes
1 answer

Setting date and datetime columns dependent from language in EasyAdminBundle

I'm using EasyAdminBundle in different languages (english and german). But I've got now the problem that I want to format the date and datetime columns. For example, I want to have the format 'd/m/Y H:i:s' in English and in German language 'd.m.Y…
Stef
  • 98
  • 1
  • 9
0
votes
1 answer

How to create dynamic fields in easy admin list page?

I am working on easy admin list page. I have fields that depends on database. How could i add dynamic fields in yaml file ? Here season field may repeat depends on database list: title: "test" fields: - { property: name,…
0
votes
0 answers

OneToMany relation doesn't list elements

I tried to get a list from using easy admin bundle items that have a OneToMany relation. My Member entity : /** * @ORM\OneToMany(targetEntity="Declaration", mappedBy="user") */ private $declarations; My yaml file for Member: list: fields: …
HareaCostea
  • 145
  • 9
0
votes
1 answer

Custom Field For EasyAdmin + Symfony 4

I am trying to develop an admin panel for my project. In this project there is an entity named Places which will store data about stores and malls. To make usage easier, i want a search field to search on Google Maps and retrieve coordinates…
bahadir arslan
  • 4,535
  • 7
  • 44
  • 82
0
votes
1 answer

Create new list field type for EasyAdmin

With EasyAdmin Symfony bundle, with Symfony 4.2, how create a new list field type? Use case "I want to display a link to show page in the list table" (not a form type, a list type): easy_admin: entities: offer: class: App\Entity\Offer …
Thomas Decaux
  • 21,738
  • 2
  • 113
  • 124
0
votes
1 answer

symfony collection type add javascript functions to collection fields

I added some javascript to my collection fields. However i don't know how to write the javascript in a good way without being double, so every new or exiting field has this javascript included. Thanks in advance :) I now use this: $('a').on('click',…
Missblues
  • 101
  • 10
0
votes
0 answers

Symfony Easyadmin and FOSUserBundle: Get Role - hasRole()?

I am currently working in AdminController.php where I need to check the role of the the logged in user. In the UserInterface.php of FOSUserBundle I found the public function hasRole(), which does exactly what I need. But in comments it's said to…
Ccenter
  • 107
  • 10
0
votes
1 answer

Saving current user id in repository

I try to save initial value for user field in UserService entity. The reason is, I use this entity in EasyAdminBundle and when I build a form, I want to set a default value for user_id (ManyToOne to User entity). init entity manager in…
tolga
  • 2,462
  • 4
  • 31
  • 57
0
votes
1 answer

EasyAdmin - How to show custom Entity property properly which use EntityRepository

I would like to show on EasyAdmin a custom property, here is an example : class Book { /** * @ORM\Id() * @ORM\GeneratedValue(strategy="AUTO") * @ORM\Column(type="integer") */ public $id; /** *…
Martin Paucot
  • 1,191
  • 14
  • 30
0
votes
2 answers

Edit Label will change the Form Type in Symfony4 with EasyAdminBundle

First, I'm a french beginner in Symfony4, Second, I already searched in Symfony Documentation, asked some friends, called my mom.. I'm working on EasyAdminBundle on the form Edit / New Entity. I have to change the label of my entities but when I do…
0
votes
1 answer

Easyadmin bundle of Symfony

I am creating backend using Symfony. I want to create submenu. I am writing following code in easy_admin file inside config/packages: easy_admin: design: menu: - label: 'Products' icon: 'shopping-basket' …