Dillon Welch
cac943e891
Add frozen_string_literal in all .rb files
...
I noticed these files all had strings such as "", " ", "_" that were
allocated each time some common methods were called, over 1000x on a
page in my app. This comment freezes all of these strings such that
they're only allocated once, saving many KB of memory allocation.
2017-11-27 17:06:18 -08:00
Rafael Mendonça França
106e775150
Generate right for attribute for labels in collection inputs
...
It is wrong if namespace or index option is being used.
Fixes #1161
2014-11-25 18:00:18 -02:00
Megan Bowra-Dean
1bd5d6896a
Option fetch is unnecessary for item_label_class
2014-05-17 17:56:14 +12:00
Megan Bowra-Dean
ba6bc460ac
Add item label class option for collection inputs.
...
This allows checkbox and radio collections to be styled with the checkbox-inline and radio-inline styles from boostrap 3 when paired with setting the item wrapper tag to false.
2014-05-07 18:35:07 +12:00
Ricardo de Cillo
857a3fc583
Avoid generating invalid html with duplicated id's
...
Since this same id is used for the collection tag, using it also for the
label (with nested style) causes a duplicated id.
2014-03-26 21:35:30 -03:00
Erich Kist
e8e1973d17
Merge branch 'master' into kb-ek-change-wraper-collection
...
Conflicts:
CHANGELOG.md
lib/simple_form/tags.rb
2013-12-09 11:11:42 -02:00
Vasiliy Ermolovich
f2da72d80c
fix labels `for` attribute with nested boolean style
...
closes #948
2013-12-06 13:22:39 +03:00
Kassio Borges
a8716748f8
Verify if `boolean_style` is :nested
...
Checking in the input options and in initialized configuration.
2013-11-27 11:16:30 -02:00
Erich Kist
82d91adf93
CollectionInput will always use item_wrapper_tag
2013-11-26 20:53:51 -02:00
Erich Kist
958bcf4a32
Add attribute for to label in collection extension
2013-11-18 18:01:00 -02:00
Vasiliy Ermolovich
e264a43dfe
collection tags accept html attributes as the last element of collection
2013-07-22 22:33:49 +03:00
Renato Mascarenhas
34312c9fbc
Use 1.9 hash style on code and docs.
2013-01-28 19:02:59 -02:00
Rafael Mendonça França
9158ef8654
Only override collection_check_boxes and collection_radio_buttons in the
...
SimpleForm::FormBuilder
2013-01-21 19:57:37 -02:00