module JasperHelpers
Included Modules
Defined in:
jasper_helpers.crjasper_helpers/forms.cr
jasper_helpers/version.cr
Constant Summary
-
VERSION =
"0.1.0"
Instance methods inherited from module JasperHelpers::Links
button_to(body : String, url : String, method = :post)button_to(body : String, url : String, method = :post, **options : Object) button_to, link_to(body : String, url : String)
link_to(body : String, url : String, **options : Object)
link_to(url : String, &)
link_to(url : String, **options : Object, &) link_to
Instance methods inherited from module JasperHelpers::Forms
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, 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, select_field(name : String | Symbol, collection : Array(Array))
select_field(name : String | Symbol, collection : Array(Hash))
select_field(name : String | Symbol, collection : Hash)
select_field(name : String | Symbol, collection : Array | Range)
select_field(name : String | Symbol, collection : Array(Array), **options : Object)
select_field(name : String | Symbol, collection : Array(Hash), **options : Object)
select_field(name : String | Symbol, collection : Hash, **options : Object)
select_field(name : String | Symbol, collection : Array | Range, **options : Object) select_field, submit(value : String | Symbol = "Save Changes")
submit(value : String | Symbol = "Save Changes", **options : Object) submit, text_area(name : String | Symbol, content : String)
text_area(name : String | Symbol, content : String, **options : Object) text_area, text_field(name : String | Symbol)
text_field(name : String | Symbol, **options : Object) text_field
Instance methods inherited from module JasperHelpers::Tags
content(element_name : Symbol, content : String, options : Hash(Symbol, String | Bool | Symbol | Int32))content(element_name : Symbol, options : Hash(Symbol, String | Bool | Symbol | Int32), &) content, input_field(type : Symbol, options : Hash(Symbol, String | Bool | Symbol | Int32))
input_field(type : Symbol, **options) input_field, input_field_string(type : Symbol, options : Hash(Symbol, String | Bool | Symbol | Int32)) input_field_string, prepare_input_field_options(options : Hash(Symbol, String | Bool | Symbol | Int32)) prepare_input_field_options