Comments (7)
Checkout my fork for this http://github.com/maxschulze/simple_form
You can supply :wrap_element_tag (Tag for each element e.g. LI) and :wrap_list_tag (Tag for the whole block, e.g. UL) with the :input_html option.
from simple_form.
There is no such config in SimpleForm yet, a patch is welcome!
And you're right about the docs, please feel free to fork and fix it, then just send a pull request and I'll apply your changes. Thanks.
@maxschulze I took another look at your branch, could you add some tests to this feature and send a new pull request? Thanks!
from simple_form.
Will do!
from simple_form.
Closing as stale. Feel free to reopen it with a pull request.
from simple_form.
For everything who is looking for this, there now seems to be a option for collection_check_boxes
# * collection_wrapper_tag => the tag to wrap the entire collection.
#
# * item_wrapper_tag => the tag to wrap each item in the collection.
Just saw that my self.
from simple_form.
Hey mate, thanks for commenting back here, I really forgot to do that =).
from simple_form.
Thanks for this @maxschulze
from simple_form.
Related Issues (20)
- 5.2.0 applies `vertical_select` wrapper despite `wrapper: :horizontal_form` HOT 1
- Changelog entry needed for 5.2.0 HOT 3
- Is there any particular reason for the use of `%%` instead of `%` in the ERB template? HOT 2
- @builder.input_field(:license_plate, type: 'radio' .... ) output a textarea tag instead of an inpt HOT 1
- Broken Link in Readme File for Bootstrap Live App example HOT 4
- Chrome error: label's for attribute doesn't match any element id
- Bootstrap floating labels keep floating even without input HOT 1
- Auto reload configuration HOT 3
- `config.default_form_class` should not be *overriden* but *complemented* when `html: { :class }` is specified HOT 1
- Redundant aria-required on required fields HOT 1
- 5.3.0 - Custom Inputs Fail to Load HOT 3
- Rails 7.1 updated password validation changed rendering of password inputs
- Custom Component raise an error with rails 7.1 and zeitwerk HOT 1
- Hints don't work on the namespaced model HOT 1
- Encrypted attributes always default to textarea
- Proposal for customizable classes merging
- The custom `error:` on all inputs does not work if there is an object present
- Multiple inputs with the same name generate unparseable names in Rails >= 7.1.1
- <div class="checkbox"> <input value="false" type="hidden" name="meal[completed]"> <input class="boolean optional" type="checkbox" value="true" checked="checked" name="meal[completed]" id="meal_completed"> <label class="boolean optional" for="meal_completed">Completed</label> </div>Update: This bug only appears if you have custom value for `unchecked_value`. In this case `unchecked_value: false` HOT 1
- https://simple-form-bootstrap.herokuapp.com/ is Down HOT 1
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 simple_form.