Skip to content

Instantly share code, notes, and snippets.

View austinklenk's full-sized avatar

Austin Klenk austinklenk

  • Master Tech RV
  • Elkhart, Indiana
View GitHub Profile
<%= stylesheet_link_tag 'bootstrap-datepicker' %>
<%= javascript_include_tag 'bootstrap-datepicker' %>
<%= bootstrap_form_for([@camper, @order], label_errors: true, inline_errors: false) do |f| %>
<div class="row"><!-- Date Fields Start -->
<div class="col-md-4"><%= f.text_field :title, label: "Work Order Name" %></div>
<div class="col-md-4"><%= f.text_field :dateIn, label: "Date In", class: "datepicker" %></div>
<div class="col-md-4"><%= f.text_field :dateOut, label: "Date Out", class: "datepicker" %></div>
</div><!-- Date Fields End -->
odule Quickbooks
module Model
class Customer < BaseModel
XML_COLLECTION_NODE = "Customer"
XML_NODE = "Customer"
REST_RESOURCE = 'customer'
include NameEntity::Quality
include NameEntity::PermitAlterations
xml_name XML_NODE
class OrdersController < ApplicationController
before_action :set_order, only: [:show, :edit, :update, :destroy]
layout "order", only: [:show]
# GET /orders
# GET /orders.json
def index
@orders = Order.all.reverse_order
end
# GET /orders/1
Rails.application.routes.draw do
resources :notes
resources :guests
resources :calls
devise_for :users, controllers: { sessions: 'users/sessions', :invitations => 'users/invitations' }
resources :users, only: [:show]
resources :campers
resources :customers do
guests GET /guests(.:format) guests#index
POST /guests(.:format) guests#create
new_guest GET /guests/new(.:format) guests#new
edit_guest GET /guests/:id/edit(.:format) guests#edit
guest GET /guests/:id(.:format) guests#show
PATCH /guests/:id(.:format) guests#update
PUT /guests/:id(.:format) guests#update
DELETE /guests/:id(.:format) guests#destroy
calls GET /calls(.:format) calls#index
POST /calls(.:format) calls#create
@austinklenk
austinklenk / print css
Created August 23, 2015 22:13
Print css
@import url('normalize');
@media print{
@page {
size: landscape;
margin: 0px;
text-align: center;
-webkit-transform: rotate(-90deg);
}
.order-info {
/* Sidebar Start */
.sidebar {
background-color: #293343;
width: 80px;
height: 100%;
position: fixed;
top: 0px;
left: 0px;
z-index: 1000;
border-right: 4px solid #f84444;
.tooltip {
position: absolute !important;
z-index: 1070;
font-family: "Titillium Web", Helvetica, Arial, sans-serif;
font-size: 18px;
font-style: normal;
font-weight: normal;
text-align: center;
text-decoration: none;
text-shadow: none;
<div class="nav">
<% if user_signed_in? %>
<ul>
<div id="tc-menu">
<%= link_to new_customer_path, class: 'side-links' do %>
<%= image_tag("man125.png") %>
<% end %>
</div>
<div id="tc-menu">
<%= link_to new_camper_path, class: "side-links" do %>
2015-08-14T03:23:14.838754+00:00 app[web.1]: [2015-08-14 03:23:14] INFO WEBrick::HTTPServer#start: pid=3 port=19704
2015-08-14T03:23:15.272682+00:00 heroku[web.1]: State changed from starting to up
2015-08-14T03:33:19.250141+00:00 heroku[api]: Detach ZEROPUSH (@ref:soaring-gladly-5172) by austin@mastertechrv.com
2015-08-14T03:33:19.250174+00:00 heroku[api]: Release v10 created by austin@mastertechrv.com
2015-08-14T03:33:19.360404+00:00 heroku[web.1]: State changed from up to starting
2015-08-14T03:33:23.498586+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2015-08-14T03:33:24.502557+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 26572 -e production`
2015-08-14T03:33:24.557695+00:00 app[web.1]: [2015-08-14 03:33:24] FATAL SignalException: SIGTERM
2015-08-14T03:33:24.557700+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in `select'