Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Personalize render embed form #1569

Closed
NodokaMurmevent opened this issue Apr 4, 2017 · 1 comment
Closed

Personalize render embed form #1569

NodokaMurmevent opened this issue Apr 4, 2017 · 1 comment

Comments

@NodokaMurmevent
Copy link

Hello,
Maybe i missed this option but i search to personalize the render of my embed form
exemple :

easy_admin:            
    entities:
        Repreneur: 
            class: SiteBundle\Entity\Repreneur   
            label: 'Repreneur'
            edit:
                title: "Modifier le %%entity_label%% N°%%entity_id%%"
            new:
                title: "Créer un nouveau %%entity_label%%"  
            form:
                fields: 
                    - { type: 'group', css_class: 'col-sm-12', label: 'Informations Générales' }
                    - { property: 'NumRepreneur', label: 'N° Repreneur', css_class: 'col-sm-4',type: 'text' }
                    - { property: 'secteurRep', label: 'Secteur', css_class: 'col-sm-4' }
   [...]                   
                    - { type: 'group', css_class: 'col-sm-6', label: 'État Civil' }
                    - { property: 'EtatCivilRep', type: 'SiteBundle\Form\EtatCivilRepType' }

For EtatCivilRep i want to use "col-sm-6" & more for the input wrapper, if i try this :

$builder->add('nomRep',TextType::class,array('label' => 'Nom','attr' => array('class' => 'col-sm-6')))

it's add the class on the input and do nothing.

who can i add class on input in a embed form ?

thanks in advance for your help.

@javiereguiluz
Copy link
Collaborator

I'm closing this issue because we're starting a new phase in the history of this bundle (see #2059). We've moved it into a new GitHub organization and we need to start from scratch: no past issues, no pending pull requests, etc.

I understand if you are angry or disappointed by this, but we really need to "reset" everything in order to reignite the development of this bundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants