Loos
10 years ago
7 changed files with 41 additions and 3 deletions
@ -1,5 +1,3 @@ |
|||
class ApplicationController < ActionController::Base |
|||
# Prevent CSRF attacks by raising an exception. |
|||
# For APIs, you may want to use :null_session instead. |
|||
protect_from_forgery with: :exception |
|||
end |
|||
|
@ -0,0 +1,3 @@ |
|||
- @bikes.each do |bike| |
|||
=bike.name |
|||
%br |
@ -0,0 +1,14 @@ |
|||
.container |
|||
%h1 Select Bikes To Print |
|||
|
|||
=form_tag("/bikes/print_labels", method: "get") do |
|||
%table.table.table-striped.table-bordered.table-hover |
|||
%thead |
|||
%tr |
|||
%th Bike |
|||
%th Select |
|||
-@bikes.each do |bike| |
|||
%tr |
|||
%td= bike.name |
|||
%td= check_box("print_bikes", bike.id) |
|||
=submit_tag 'Generate Labels', class: "btn btn-default" |
Loading…
Reference in new issue