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

Form Theming doesn't work witn pugxmultiuserbundle #115

Open
houssem04 opened this issue Jul 4, 2016 · 3 comments
Open

Form Theming doesn't work witn pugxmultiuserbundle #115

houssem04 opened this issue Jul 4, 2016 · 3 comments
Labels

Comments

@houssem04
Copy link

I'm using a separate template to set theming of forms , it works good in all forms in the website but it doesn't work with the forms inside the templates rendered by pugxmultiuserbundle

template:
{% form_theme form ':Frontend/form:fields.html.twig' %}
`

    {{ form_start(form, {'method': 'post', 'action': path('etudiant_registration'), 'attr': {'class': 'fos_user_registration_register'}}) }}

     {{ form_widget(form) }}

    <div>
         <input type="submit" value="{{ 'registration.submit'|trans }}"/>
    </div>
 {{ form_end(form) }}`

config
`
pugx_multi_user:

  users:

    etudiant:

        entity:

          class: AppBundle\Entity\Etudiant
        registration:
          form:
            type: AppBundle\Form\User\RegistrationEtudiantFormType
          template: FOSUserBundle:Registration:etudiant.form.html.twig
        profile:
          form:
            type: AppBundle\Form\User\ProfileEtudiantFormType

`

I have created a test action and I have rendred etudiant.form.html.twig with the form theming and it works good , but as I have said above , if it is rendred by pugxmultiuserbundle the theme doesn't work

https://stackoverflow.com/questions/38187278/form-theming-doesnt-work-witn-pugxmultiuserbundle

@garak garak added the question label Jul 5, 2016
@ldesmeules
Copy link

No solution ?
Thanks

@hous04
Copy link

hous04 commented Sep 16, 2017

not yet

@garak
Copy link
Member

garak commented Sep 16, 2017

Is that theme working in other templates?

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

No branches or pull requests

4 participants