Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Commit

Permalink
added print function + css styling
Browse files Browse the repository at this point in the history
  • Loading branch information
maltyeva committed Jun 8, 2012
1 parent 1885b27 commit 49daabc
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/views/reservations/check_in_single.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<%= stylesheet_link_tag('application', :media => :screen) %>
<%= stylesheet_link_tag('print', :media => :print) %>
<% title "Single Reservation Check in" %>
<%= form_tag( {:controller => 'reservations', :action => "update"}, :method => "put" ) do %>

Expand Down Expand Up @@ -42,5 +46,10 @@
<br>
<%= submit_tag "Check in equipment" %>

<p>
<%=link_to_function("Print this Page", "javascript:print()")%>
</p>


<% end %>

3 changes: 3 additions & 0 deletions app/views/reservations/check_out_single.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<%= stylesheet_link_tag('application', :media => :screen) %>
<%= stylesheet_link_tag('print', :media => :print) %>
<% title "Single Reservation Checkout" %>
<%= form_tag( {:controller => 'reservations', :action => "update"}, :method => "put" ) do %>

Expand Down
28 changes: 28 additions & 0 deletions public/stylesheets/print.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#header {
display: none;
}

#yaleHeader {
display: none;
}

#sidebar-left {
display: none;
}

#sidebar-right {
display: none;
}


a {
text-decoration:none;
color: White;
background-color: White;
font-size: 0%;
}

a:hover {
color: White;
font-size: 0%;
}

0 comments on commit 49daabc

Please sign in to comment.