jellybob / activo-rails

Activo is a theme for Web-app-theme, Formtastic and Attrtastic. This is a Rails plugin to make it painfully easy to use.
http://dmfrancisco.github.com/activo/
MIT License
42 stars 8 forks source link

formtastic submit buttons #18

Closed standardtoaster closed 13 years ago

standardtoaster commented 13 years ago

The documentation for formtastic integration appears to be a bit misleading. It says:

Using Formtastic

Activo is already set up to be used with Formtastic, but doesn't directly depend on it, since form builders are very much a matter of taste.

If you would like to use it (and I recommend it), then just add gem 'formtastic' to your Gemfile, and everything will work out of the box.

However, If you just use semantic_form_for, the buttons are the standard rails buttons.

I've generated my layouts using web-app-theme, and modified the forms manually to use formtastic, but I don't think that should matter.

jellybob commented 13 years ago

What modifications were needed? I'd need to read the documentation again, but I'm fairly sure we could override Formtastic to provide nicer buttons.

standardtoaster commented 13 years ago

I'm not actually sure. I have not figured out thenbest way to get formtastic to match the output. I may have to submit a patch to formtastic that allows blocks in submit buttons. Or, maybe we should monkey patch formtastic here, and just have it emit pretty buttons when activo-rails and formtastic are both enabled

standardtoaster commented 13 years ago

Closing in favour of waiting for the pending formtastic solution. See https://github.com/justinfrench/formtastic/issues/11

For now, you can either emit HTML, or use the raw button helpers if you really want the activo style buttons.