module JasperHelpers::Forms

Direct including types

Defined in:

jasper_helpers/forms.cr

Instance Method Summary

Instance Method Detail

def check_box(name : String | Symbol, checked_value = "1", unchecked_value = "0") #

[View source]
def check_box(name : String | Symbol, checked_value = "1", unchecked_value = "0", **options : Object) #

check_box


[View source]
def file_field(name : String | Symbol) #

[View source]
def file_field(name : String | Symbol, **options : Object) #

file_field


[View source]
def form(method = :post, &block) #

[View source]
def form(method = :post, **options : Object, &) #

form


[View source]
def hidden_field(name : String | Symbol) #

[View source]
def hidden_field(name : String | Symbol, **options : Object) #

hidden_field


[View source]
def label(name : String | Symbol, content : String | Nil = nil) #

[View source]
def label(name : String | Symbol, content : String | Nil = nil, **options : Object) #

[View source]
def label(name : String | Symbol, &) #

[View source]
def select_field(name : String | Symbol, collection : Array(Array)) #

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


[View source]
def select_field(name : String | Symbol, collection : Array(Hash)) #

[View source]
def select_field(name : String | Symbol, collection : Hash) #

[View source]
def select_field(name : String | Symbol, collection : NamedTuple) #

[View source]
def select_field(name : String | Symbol, collection : Array | Range) #

[View source]
def select_field(name : String | Symbol, collection : Array(Array), **options : Object) #

select_field with collection Array(Array)


[View source]
def select_field(name : String | Symbol, collection : Array(Hash), **options : Object) #

with collection Array(Hash)


[View source]
def select_field(name : String | Symbol, collection : Hash, **options : Object) #

with collection Hash


[View source]
def select_field(name : String | Symbol, collection : NamedTuple, **options : Object) #

[View source]
def select_field(name : String | Symbol, collection : Array | Range, **options : Object) #

with collection Array


[View source]
def submit(value : String | Symbol = "Save Changes") #

[View source]
def submit(value : String | Symbol = "Save Changes", **options : Object) #

submit


[View source]
def text_area(name : String | Symbol, content : String | Nil) #

[View source]
def text_area(name : String | Symbol, content : String | Nil, **options : Object) #

text_area


[View source]
def text_field(name : String | Symbol) #

[View source]
def text_field(name : String | Symbol, **options : Object) #

text_field


[View source]
def wrapper_field(*args) #

[View source]