module JasperHelpers

Included Modules

Defined in:

jasper_helpers.cr
jasper_helpers/forms.cr
jasper_helpers/version.cr

Constant Summary

VERSION = "1.2.2"

Instance methods inherited from module JasperHelpers::Links

button_to(body : String, url : String, method : Symbol = :post)
button_to(body : String, url : String, method : Symbol = :post, &)
button_to(body : String, url : String, method : Symbol = :post, **options : Object)
button_to(body : String, url : String, method : Symbol = :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
, 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, &)
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 : NamedTuple)
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 : NamedTuple, **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 | 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) wrapper_field

Instance methods inherited from module JasperHelpers::Text

render_markdown(markdown : String) render_markdown

Instance methods inherited from module JasperHelpers::Tags

content(element_name : Symbol, content : String, options : OptionHash)
content(element_name : Symbol, options : OptionHash, &)
content
, input_field(type : Symbol, options : OptionHash)
input_field(type : Symbol, **options)
input_field
, input_field_string(type : Symbol, options : OptionHash) input_field_string, prepare_input_field_options(options : OptionHash) prepare_input_field_options