module

JasperHelpers::Forms

Instance methods

check_box(name : String | Symbol, checked_value = "1", unchecked_value = "0")
Source
check_box(name : String | Symbol, checked_value = "1", unchecked_value = "0", **options : Object)

check_box

Source
file_field(name : String | Symbol)
Source
file_field(name : String | Symbol, **options : Object)

file_field

Source
form(method = :post, &block)
Source
form(method = :post, **options : Object, &)

form

Source
hidden_field(name : String | Symbol)
Source
hidden_field(name : String | Symbol, **options : Object)

hidden_field

Source
label(name : String | Symbol, content : String | Nil = nil)
Source
label(name : String | Symbol, content : String | Nil = nil, **options : Object)
Source
label(name : String | Symbol, &)
Source
select_field(name : String | Symbol, collection : Array(Array))

Utilizes method above for when options are not defined and sets class and id.

Source
select_field(name : String | Symbol, collection : Array(Hash))
Source
select_field(name : String | Symbol, collection : Hash)
Source
select_field(name : String | Symbol, collection : NamedTuple)
Source
select_field(name : String | Symbol, collection : Array | Range)
Source
select_field(name : String | Symbol, collection : Array(Array), **options : Object)

select_field with collection Array(Array)

Source
select_field(name : String | Symbol, collection : Array(Hash), **options : Object)

with collection Array(Hash)

Source
select_field(name : String | Symbol, collection : Hash, **options : Object)

with collection Hash

Source
select_field(name : String | Symbol, collection : NamedTuple, **options : Object)
Source
select_field(name : String | Symbol, collection : Array | Range, **options : Object)

with collection Array

Source
submit(value : String | Symbol = "Save Changes")
Source
submit(value : String | Symbol = "Save Changes", **options : Object)

submit

Source
text_area(name : String | Symbol, content : String | Nil)
Source
text_area(name : String | Symbol, content : String | Nil, **options : Object)

text_area

Source
text_field(name : String | Symbol)
Source
text_field(name : String | Symbol, **options : Object)

text_field

Source
wrapper_field(*args)
Source