module CommonFunctions::ViewHelpers

Public Instance Methods

btn_danger() click to toggle source
# File lib/common_functions/view_helpers.rb, line 19
def btn_danger
  "btn btn-danger"
end
btn_danger_sm() click to toggle source
# File lib/common_functions/view_helpers.rb, line 23
def btn_danger_sm
  "btn btn-danger btn-sm"
end
btn_primary() click to toggle source
# File lib/common_functions/view_helpers.rb, line 3
def btn_primary
  "btn btn-primary"
end
btn_primary_sm() click to toggle source
# File lib/common_functions/view_helpers.rb, line 7
def btn_primary_sm
  "btn btn-primary btn-sm"
end
btn_success() click to toggle source
# File lib/common_functions/view_helpers.rb, line 11
def btn_success
  "btn btn-success"
end
btn_success_sm() click to toggle source
# File lib/common_functions/view_helpers.rb, line 15
def btn_success_sm
  "btn btn-success btn-sm"
end
form_control() click to toggle source
# File lib/common_functions/view_helpers.rb, line 55
def form_control
  "form-control"
end
print_date(timestamp) click to toggle source
print_date_time(timestamp) click to toggle source
table_bordered() click to toggle source
# File lib/common_functions/view_helpers.rb, line 35
def table_bordered
  "<table class='table table-bordered'>".html_safe
end
table_bordered_striped() click to toggle source
# File lib/common_functions/view_helpers.rb, line 43
def table_bordered_striped
  "<table class='table table-bordered table-striped'>".html_safe
end
table_head(name) click to toggle source
# File lib/common_functions/view_helpers.rb, line 47
def table_head(name)
  "<th>#{name}</th>".html_safe
end
table_row_name_value(name, value) click to toggle source
# File lib/common_functions/view_helpers.rb, line 51
def table_row_name_value(name, value)
  "<tr><td>#{name}</td><td>#{value}</td></tr>".html_safe
end
table_striped() click to toggle source
# File lib/common_functions/view_helpers.rb, line 39
def table_striped
  "<table class='table table-striped'>".html_safe
end