minor rerun of simple_form

This commit is contained in:
Torsten Ruger 2017-09-02 16:02:45 +03:00
parent a797d25bdb
commit b67691b339
2 changed files with 9 additions and 0 deletions

View File

@ -28,8 +28,12 @@ SimpleForm.setup do |config|
# extensions by default, you can change `b.optional` to `b.use`.
# Calculates maxlength from length validations for string inputs
# and/or database column lengths
b.optional :maxlength
# Calculate minlength from length validations for string inputs
b.optional :minlength
# Calculates pattern from format validations for string inputs
b.optional :pattern

View File

@ -8,6 +8,7 @@ SimpleForm.setup do |config|
b.use :html5
b.use :placeholder
b.optional :maxlength
b.optional :minlength
b.optional :pattern
b.optional :min_max
b.optional :readonly
@ -22,6 +23,7 @@ SimpleForm.setup do |config|
b.use :html5
b.use :placeholder
b.optional :maxlength
b.optional :minlength
b.optional :readonly
b.use :label, class: 'control-label'
@ -55,6 +57,7 @@ SimpleForm.setup do |config|
b.use :html5
b.use :placeholder
b.optional :maxlength
b.optional :minlength
b.optional :pattern
b.optional :min_max
b.optional :readonly
@ -71,6 +74,7 @@ SimpleForm.setup do |config|
b.use :html5
b.use :placeholder
b.optional :maxlength
b.optional :minlength
b.optional :readonly
b.use :label, class: 'col-sm-3 control-label'
@ -112,6 +116,7 @@ SimpleForm.setup do |config|
b.use :html5
b.use :placeholder
b.optional :maxlength
b.optional :minlength
b.optional :pattern
b.optional :min_max
b.optional :readonly