Comments (6)
On the other hand it renders correctly if I use:
{{ form_row(form.profile) }}
{{ form_row(form.username) }}
{{ form_row(form.email) }}
{{ form_rest(form) }}
so it might not be an issue, maybe I have misunderstood the use of form_widget, let me know, if so this issue can be closed.
from mopabootstrapbundle.
hmm sorry for late answer have you tried just using
{{ form_widget(form) }}?
cause ithink afaik form widget doesnt work as you want it you must use form rows ...
just my knowlegde is poor :)
from mopabootstrapbundle.
No worries, yes I have tried with only {{ form_widget(form) }} that works as expected.
I don't know if I have misunderstood the following http://symfony.com/doc/2.0/reference/forms/twig_reference.html
But, it works ok rows, we can actually close the issue for now :) Thanks again!
from mopabootstrapbundle.
ok tnx
from mopabootstrapbundle.
i think i will have to do some investigations, if we really have exatly the same behaviour as described in the symfony docs....
from mopabootstrapbundle.
Ok i got it.
if you use form_widget() on a CustomFormType it will go though all the children with form_rows()
and render correct
if you use form_widget() on a single field, it will just render the widget, but now the row around.
if you use form_row everything is fine.
from mopabootstrapbundle.
Related Issues (20)
- Twig 2.x support HOT 9
- How to not include the .less css and js files from MOPA HOT 1
- JavaScript Error: DateTimePicker is not a function
- 500 Internal Server Error - Unknown "sameas" test. Did you mean "same as"? HOT 1
- Potential BC break from new layout option HOT 2
- Bootstrap 4 HOT 2
- FIx tests for Symfony4
- Installation instructions for Symfony4 HOT 2
- Font Awesome 5 HOT 1
- Input group size
- Inline form spacing
- Symfony 3.4 warnings HOT 1
- Sections in forms HOT 1
- new line inserted at start for every response when MopaBootstrapBundle included with Symfony 4
- Old version of glyphicons in use HOT 1
- Error when using the most recent 1.* Twig version (1.42.0, session_flash issue) HOT 1
- Demo site down HOT 2
- Does "widget_addon_prepend" work with Symfony 4? HOT 5
- Bundle dead? HOT 3
- label_html is ignored in template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mopabootstrapbundle.