Top Level Namespace
Defined Under Namespace
Modules: ScaffoldAdmin, WillPaginate, ZscaffoldAdmin
Classes: ScaffoldAdminGenerator
Instance Method Summary
collapse
Instance Method Details
#arrow_left ⇒ Object
7
8
9
|
# File 'lib/generators/scaffold_admin/templates/code_application_helper.rb', line 7
def arrow_left
image_tag('icons/116767-matte-blue-and-white-square-icon-arrows-arrow-thick-left.png', height: '50px', width: '50px')
end
|
#arrow_right ⇒ Object
11
12
13
|
# File 'lib/generators/scaffold_admin/templates/code_application_helper.rb', line 11
def arrow_right
image_tag('icons/116768-matte-blue-and-white-square-icon-arrows-arrow-thick-right.png', height: '50px', width: '50px')
end
|
#outgoing_menssage ⇒ Object
1
2
3
4
5
|
# File 'lib/generators/scaffold_admin/templates/code_application_helper.rb', line 1
def outgoing_menssage
if notice
raw "<h4 class='alert_success'>#{notice}</h4>"
end
end
|
#submit_link(form) ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/generators/scaffold_admin/templates/code_application_helper.rb', line 15
def submit_link(form)
if params[:action] == 'new'
form.submit(I18n.t(:create), class: 'btn btn-success')
else
form.submit(I18n.t(:update), class: 'btn btn-primary')
end
end
|