module JasperHelpers::Forms
Direct including types
Defined in:
jasper_helpers/forms.crInstance Method Summary
- #check_box(name : String | Symbol, checked_value = "1", unchecked_value = "0")
-
#check_box(name : String | Symbol, checked_value = "1", unchecked_value = "0", **options : Object)
check_box
- #file_field(name : String | Symbol)
-
#file_field(name : String | Symbol, **options : Object)
file_field
- #form(method = :post, &block)
-
#form(method = :post, **options : Object, &)
form
- #hidden_field(name : String | Symbol)
-
#hidden_field(name : String | Symbol, **options : Object)
hidden_field
- #label(name : String | Symbol, content : String | Nil = nil)
- #label(name : String | Symbol, content : String | Nil = nil, **options : Object)
- #label(name : String | Symbol, &)
-
#select_field(name : String | Symbol, collection : Array(Array))
Utilizes method above for when options are not defined and sets class and id.
- #select_field(name : String | Symbol, collection : Array(Hash))
- #select_field(name : String | Symbol, collection : Hash)
- #select_field(name : String | Symbol, collection : NamedTuple)
- #select_field(name : String | Symbol, collection : Array | Range)
-
#select_field(name : String | Symbol, collection : Array(Array), **options : Object)
select_field with collection Array(Array)
-
#select_field(name : String | Symbol, collection : Array(Hash), **options : Object)
with collection Array(Hash)
-
#select_field(name : String | Symbol, collection : Hash, **options : Object)
with collection Hash
- #select_field(name : String | Symbol, collection : NamedTuple, **options : Object)
-
#select_field(name : String | Symbol, collection : Array | Range, **options : Object)
with collection Array
- #submit(value : String | Symbol = "Save Changes")
-
#submit(value : String | Symbol = "Save Changes", **options : Object)
submit
- #text_area(name : String | Symbol, content : String | Nil)
-
#text_area(name : String | Symbol, content : String | Nil, **options : Object)
text_area
- #text_field(name : String | Symbol)
-
#text_field(name : String | Symbol, **options : Object)
text_field
- #wrapper_field(*args)
Instance Method Detail
def check_box(name : String | Symbol, checked_value = "1", unchecked_value = "0", **options : Object)
#
check_box
def select_field(name : String | Symbol, collection : Array(Array))
#
Utilizes method above for when options are not defined and sets class and id.
def select_field(name : String | Symbol, collection : Array(Array), **options : Object)
#
select_field with collection Array(Array)
def select_field(name : String | Symbol, collection : Array(Hash), **options : Object)
#
with collection Array(Hash)
def select_field(name : String | Symbol, collection : Hash, **options : Object)
#
with collection Hash
def select_field(name : String | Symbol, collection : NamedTuple, **options : Object)
#
def select_field(name : String | Symbol, collection : Array | Range, **options : Object)
#
with collection Array