-
Notifications
You must be signed in to change notification settings - Fork 415
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
Styling & Layout (uni-form?) #12
Comments
Just had a look at uni-form, and think that could be a good idea. Looks nice and simple and not too heavy to bundle with this. I'm working on the help and fieldset support, and after that it looks like the uni-form integration should be easier. Note that you can override the default templates by assigning custom templates to Form.template and Form.Field.template. That should work for replacing all templates and also for customising templates for each particular field. I've set up a Google Groups for backbone here: http://groups.google.com/group/backbone-forms |
I've just pushed a new branch ('feature/templates') which should make this much easier to implement; we can add a uni-form.js template file as an alternative, similar to the bootstrap.js template file there is now. |
The question is which templates to use by default. I'm tempted to get rid of the current default template and replace it with something like minimal.js as default, but will need some more work before that can happen. |
Closing for now as templating is easy and we are including a minimal and bootstrap template file. May be best to use the minimal file as default in a future release |
There's a few issues I'm trying to overcome here with the html layout of the forms generated. I'd like to be able to group fields together into fieldsets, add headings and help text to those fieldsets and on some occasions even produce a custom template for where the editors/fields should appear.
It would be nice if the html outputted complied with the uni-form standard (http://sprawsm.com/uni-form/). I've used the django plugin for this quite a lot and it's really easy to adapt to your needs. It also comes with some pretty css for free which is always good.
I'm quite happy to do some development on this, I just wanted to get some opinions before I dive in and diverge. Is there a mail list or IRC for backbone-forms anywhere?
The text was updated successfully, but these errors were encountered: