PUGX / PUGXMultiUserBundle

An extension for FOSUserBundle to handle users of different types. Compatible with Doctrine ORM.
163 stars 96 forks source link

Form Theming doesn't work witn pugxmultiuserbundle #115

Open houssem04 opened 8 years ago

houssem04 commented 8 years ago

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

ldesmeules commented 7 years ago

No solution ? Thanks

hous04 commented 6 years ago

not yet

garak commented 6 years ago

Is that theme working in other templates?