This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".commit").click( function(e){ | |
var warning = '<p class="inline-errors"> Warning, this is blank </p>' | |
var all_selections = []; | |
var not_filled_out = []; | |
var index_counter = 0; | |
$( '.check_value' ).children().each( function(){ | |
var li = $(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".commit").click( function(e){ | |
var warning = '<p class="inline-errors"> Warning, this is blank </p>' | |
var all_selections = []; | |
var not_filled_out = []; | |
$( '.check_value' ).children().each( function(){ | |
var li = $(this); | |
var li_value = li.val(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".commit").click( function(e){ | |
alert('working'); | |
var warning = '<p class="inline-errors"> Warning, this is blank </p>' | |
var all_selections = []; | |
var not_filled_out = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Finds what datetime selections have and have not been filled out | |
// Also finds all the datetime selections that was passed in the array | |
function find_max_filled_out( check_arrays ) | |
{ | |
var filled_out = []; | |
var not_filled_out = []; | |
var all_selections = []; | |
for ( check in check_arrays ) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Finds what datetime selections have and have not been filled out | |
// Also finds all the datetime selections that was passed in the array | |
function find_max_filled_out( check_arrays ) | |
{ | |
var filled_out = []; | |
var not_filled_out = []; | |
var all_selections = []; | |
for ( check in check_arrays ) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.*~ | |
.gitignore | |
.gitignore~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> Appointment Time: ____<%= l(receipt.try( :appointment_at ), :format => :long) %> ______ </p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveAdmin.register Customer do | |
index do | |
column :name | |
column :customer_number | |
column :warehouse_id do |warehouse| | |
warehouse.name | |
end | |
column :warehouse_id | |
default_actions | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Factory.define :customer do |f| | |
f.customer_number "MyString" | |
f.name "MyString" | |
f.association :warehouse | |
end | |
Factory.define :door do |f| | |
f.name "MyString" | |
f.association :warehouse | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User < ActiveRecord::Base | |
# Include default devise modules. Others available are: | |
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable | |
ROLES = [ :Administrator, :User ] | |
validates :role, :presence => true | |
validates :username, :presence => true | |
validates :username, :uniqueness => true | |
validates :employee_name, :presence => true | |
validates :encrypted_password, :presence => true | |
has_many :receipts |