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

Styling & Layout (uni-form?) #12

Closed
mjtamlyn opened this issue Oct 17, 2011 · 4 comments
Closed

Styling & Layout (uni-form?) #12

mjtamlyn opened this issue Oct 17, 2011 · 4 comments

Comments

@mjtamlyn
Copy link
Contributor

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?

@powmedia
Copy link
Owner

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

@powmedia
Copy link
Owner

powmedia commented Feb 9, 2012

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.

@powmedia
Copy link
Owner

powmedia commented Feb 9, 2012

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.

@powmedia
Copy link
Owner

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

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