adamwathan / form

Super basic form HTML builder, only really exists so I can pull it in for some other more useful projects.
MIT License
232 stars 118 forks source link

Submit Input instead of Button? #56

Closed iolson closed 9 years ago

iolson commented 9 years ago

When doing

{!! $builder->submit('Search') !!}

Is there a nice way of outputing that as <input type="submit" value="Search"> instead of the button?

adamwathan commented 9 years ago

Hey Ian! No, the package won't generate an <input type="submit"> tag. If you really need it, I would just write the markup, you don't lose any functionality by not generating it through the package.

I would recommend using a button if you can, for the same reasons mentioned in the Bootstrap docs:

http://getbootstrap.com/css/#callout-buttons-ff-height