Easyadminbundle: Add edit in place for field in list or detail

Created on 21 Nov 2019  路  2Comments  路  Source: EasyCorp/EasyAdminBundle

description of what this feature will allow to do:
Add the option "edit_in_place" for edit information with simple clic on the field on list or detail or another with function twig.

Example of how to use this feature

TextField::new('firstName', 'Name')->editInPlace();
public function editInPlace($type = null); //if null autodetecte type if not found 'string'

And use type for create editInplaceType:

class StringEipType extends AbstractEipType{

    public function getTemplate(): string{
        return '@EasyAdmin/edit_in_place/_string.html.twig';
    }

    public function getType(): string{
        return 'string'; 
    }
}

getType is useless without yaml config we can use StringEipType::class with php config

below some exemple with StringEip, EntityEip, DateEip

bg2
bg3

I have already coded it on Easy Admin + : https://github.com/2lenet/EasyAdminPlusBundle/blob/master/doc/eip.md

What do you think about it ?

feature

Most helpful comment

I'm sorry I never answered to your proposal. These past weeks I've been working on EasyAdmin 3 exclusively. After that version is released, I'll evaluate this feature request to see if it's doable. Thanks!

All 2 comments

I'm sorry I never answered to your proposal. These past weeks I've been working on EasyAdmin 3 exclusively. After that version is released, I'll evaluate this feature request to see if it's doable. Thanks!

I'm sorry but for now I've decided to not implement this feature. We have too many basic features to work first so we must focus and prioritize. Thanks for understanding.

Was this page helpful?
0 / 5 - 0 ratings