sbdevpadi 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,9 @@
1
1
  class CoursesController < SbdevCoreController
2
+ before_filter :get_course_nav, :only => [:index, :show]
3
+
4
+ private
5
+ def get_course_nav
6
+ types = ["RecCourse", "RecSpecCourse", "ProCourse", "ProSpecCourse", "TecCourse", "ProTecCourse"]
7
+ @courses_by_type = Course.where(:type => types).includes(:index).group_by(&:type).sort {|a,b| types.index(a[0]) <=> types.index(b[0]) }
8
+ end
2
9
  end
@@ -1,8 +1,6 @@
1
1
  class PackageCalculatorController < ApplicationController
2
- before_filter :authenticate_admin!, :except => [:index]
3
- before_filter :get_index, :only => [:index]
4
-
5
2
  def index
3
+ @index = Index.find_by_name("package_calculator")
6
4
  @enriched = Course.find_by_name("Enriched Air Nitrox").id
7
5
  @deep = Course.find_by_name("Deep").id
8
6
  @emergency = Course.find_by_name("Emergency First Responder").id
@@ -1,2 +1,2 @@
1
- class ProCoursesController < SbdevCoreController
1
+ class ProCoursesController < CoursesController
2
2
  end
@@ -1,2 +1,2 @@
1
- class ProSpecCoursesController < SbdevCoreController
1
+ class ProSpecCoursesController < CoursesController
2
2
  end
@@ -1,2 +1,2 @@
1
- class ProTecCoursesController < SbdevCoreController
1
+ class ProTecCoursesController < CoursesController
2
2
  end
@@ -1,2 +1,2 @@
1
- class RecCoursesController < SbdevCoreController
1
+ class RecCoursesController < CoursesController
2
2
  end
@@ -1,2 +1,2 @@
1
- class RecSpecCoursesController < SbdevCoreController
1
+ class RecSpecCoursesController < CoursesController
2
2
  end
@@ -1,2 +1,2 @@
1
- class TecCoursesController < SbdevCoreController
1
+ class TecCoursesController < CoursesController
2
2
  end
@@ -1,14 +1,21 @@
1
1
  class Course < ActiveRecord::Base
2
+ default_scope :order => 'priority ASC'
2
3
  attr_accessible :name, :duration, :course_price, :materials, :materials_price, :application_price, :type, :priority, :index_attributes, :course_ids
3
4
 
5
+ delegate :title, :to => :index
6
+
4
7
  has_and_belongs_to_many :courses, :class_name => "Course", :join_table => "course_dependencies", :association_foreign_key => :dependent_id
5
8
 
6
9
  has_one :index, :as => :owner, :dependent => :destroy
7
10
 
8
11
  accepts_nested_attributes_for :index, :allow_destroy => true
9
12
 
13
+ validates_presence_of :course_price, :materials, :materials_price, :application_price
10
14
  validates_numericality_of :course_price, :materials_price, :application_price
11
15
 
16
+ extend FriendlyId
17
+ friendly_id :name, :use => :slugged
18
+
12
19
  def total(discount = false)
13
20
  course_price(discount) + materials_price + application_price
14
21
  end
@@ -1,29 +1,9 @@
1
- %p= f.submit
2
- = f.error_messages
3
- %p
4
- = f.label :name
5
- %br/
6
- = f.text_field :name
7
- %p
8
- = f.label :duration
9
- %br/
10
- = f.text_field :duration
11
- %p
12
- = f.label :course_price
13
- %br/
14
- = f.text_field :course_price
15
- %p
16
- = f.label :materials
17
- %br/
18
- = f.text_field :materials
19
- %p
20
- = f.label :materials_price
21
- %br/
22
- = f.text_field :materials_price
23
- %p
24
- = f.label :application_price
25
- %br/
26
- = f.text_field :application_price
27
- %h4 Description
28
- - f.fields_for :index do |index_form|
29
- = render "indices/form", :locals => {:f => index_form}
1
+ = f.input :duration
2
+
3
+ = f.input :course_price
4
+
5
+ = f.input :materials
6
+
7
+ = f.input :materials_price
8
+
9
+ = f.input :application_price
@@ -1,21 +1,20 @@
1
- - render_seo @index
2
- %h2= h @course.name
3
- = render :partial => 'indices/show'
4
- %p
5
- %strong Duration:
6
- = h @course.duration
7
- %p
8
- %strong Course Price:
9
- = h @course.course_price
10
- %p
11
- %strong Materials:
12
- = h @course.materials
13
- %p
14
- %strong Materials Price:
15
- = h @course.materials_price
16
- %p
17
- %strong Application Price:
18
- = h @course.application_price
19
- - if admin_signed_in?
1
+ .asset
20
2
  %p
21
- = link_to "Edit Course", edit_course_path(@course)
3
+ %strong Duration:
4
+ = resource.duration
5
+ %p
6
+ %strong Course Price:
7
+ = number_to_currency resource.course_price, :precision => 0
8
+ %p
9
+ %strong Materials:
10
+ = resource.materials
11
+ %p
12
+ %strong Materials Price:
13
+ = number_to_currency resource.materials_price, :precision => 0
14
+ %p
15
+ %strong Application Price:
16
+ = number_to_currency resource.application_price, :precision => 0
17
+
18
+ - if admin_signed_in?
19
+ %p.asset-admin
20
+ = link_to "Edit Course", edit_course_path(resource), :class => "overlayed"
@@ -1,5 +1,3 @@
1
- - title "Edit Course"
2
- - form_for :course, @course, :url => course_path(@course), :html => { :multipart => true, :method => :put } do |f|
1
+ = simple_form_for @course, :validate => true, :html => { :multipart => true} do |f|
3
2
  = render :partial => 'form', :locals => {:f => f}
4
- %p
5
- = link_to "Show", @course
3
+ = f.submit
@@ -1,7 +1,12 @@
1
1
  =content_for(:sidebar) do
2
2
  #secondary_nav
3
- -@index.indices.each do |page|
4
- = link_to page.title.titleize, page.name, :class => 'button', :remote => true
3
+ -@courses_by_type.each do |type, courses|
4
+ %li
5
+ = link_to courses.first.class.title, type.tableize, :class => "button#{' current' if type.tableize == controller_name}", :remote => true
6
+ %div{:class => "tertiary_nav#{' hidden' unless type.tableize == controller_name}"}
7
+ - courses.each do |course|
8
+ = link_to course.index.title.titleize, course, :class => "button secondary", :remote => true
9
+
5
10
 
6
11
  =(render :partial => 'indices/show', :object => @index, :as => :index)
7
12
  - if request.xhr?
@@ -1,18 +1,15 @@
1
- - render_seo @index
2
- %h2= h @course.name
3
- = render :partial => 'indices/show'
4
- %p
5
- %strong Duration:
6
- = h @course.duration
7
- %p
8
- %strong Course Price:
9
- = h @course.course_price
10
- %p
11
- %strong Materials:
12
- = h @course.materials
13
- %p
14
- %strong Materials Price:
15
- = h @course.materials_price
16
- %p
17
- %strong Application Price:
18
- = h @course.application_price
1
+ =content_for(:sidebar) do
2
+ #secondary_nav
3
+ -@courses_by_type.each do |type, courses|
4
+ %li
5
+ = link_to courses.first.class.title, "/" + type.tableize, :class => "button#{' current' if type.tableize == controller_name}", :remote => true
6
+ %div{:class => "tertiary_nav#{' hidden' unless type.tableize == controller_name}"}
7
+ - courses.each do |course|
8
+ = link_to course.index.title.titleize, course, :class => "button secondary #{' current' if (course == resource)}", :remote => true
9
+
10
+ =(render :partial => 'indices/show', :object => resource.index, :as => :index)
11
+ =(render :partial => 'show', :object => resource, :as => resource_class.to_s.downcase.to_sym)
12
+ - if request.xhr?
13
+ .content_for.hidden
14
+ #content_for_sidebar
15
+ =@view_flow.get(:sidebar)
@@ -1,50 +1,44 @@
1
- - render_seo @index
2
- = render :partial => 'indices/show'
3
- - content_for :post_content do
4
- .content.corner-all.box-shadow
5
- = link_to 'Edit Course Prices', edit_prices_path if admin_signed_in?
6
- - if @courses && !@courses.empty?
7
- %h3 Your Results
8
- %table
9
- %tr
10
- %th{:colspan => "2", :style => "text-align:center;"}
11
- Course#{'*' if @discount}
12
- %th
13
- %th{:colspan => "2", :style => "text-align:center;"} Materials
14
- %th{:style => "text-align:center;"} Application Price
15
- %th{:style => "text-align:right;"} Total
16
- - for course in @courses
17
- %tr
18
- %td{:style => "width:400px;"}= course.name
19
- %td{:style => "width:20px;text-align:right"}= number_to_currency course.course_price(@discount), :precision => 0
20
- %td{:style => "width:10px;"}
21
- %td{:style => "width:250px;"}= course.materials
22
- %td{:style => "width:20px;text-align:right"}= number_to_currency course.materials_price, :precision => 0
23
- %td{:style => "width:20px;text-align:right"}= number_to_currency course.application_price, :precision => 0
24
- %td{:style => "width:20px;text-align:right"}= number_to_currency course.total(@discount), :precision => 0
25
- %tr
26
- %th Total
27
- %th{:style => "width:50px;text-align:right"}
28
- = '*' if @discount
29
- = number_to_currency @courses_total, :precision => 0
30
- %th
31
- %th
32
- %th{:style => "width:50px;text-align:right"}= number_to_currency @materials_prices_total, :precision => 0
33
- %th{:style => "width:50px;text-align:right"}= number_to_currency @application_prices_total, :precision => 0
34
- %th{:style => "width:85px;text-align:right"}
35
- = '*' if @discount
36
- = number_to_currency @total, :precision => 0
37
- = "<p>* Includes 10% Discount Off Non Tec Course Prices</p>" if @discount
38
- - if @rec
39
- %p
40
- For more information about our PADI recreational dive courses please visit our Five Star PADI Resort and Career Development Center website: #{link_to 'www.coconuttreedivers.com', 'http://www.coconuttreedivers.com'}
41
- - if @pro
42
- %p
43
- For more information about our PADI professional dive courses please visit our PADI Career Development Center website: #{link_to 'www.goprocaribbean.com', 'http://www.goprocaribbean.com'}
44
- - if @tec
45
- %p
46
- For more information about our DSAT tec dive courses please visit our tec diving center website: #{link_to 'www.caribbeansidemountdiving.com', 'http://www.caribbeansidemountdiving.com'}
47
- - form_tag package_calculator_path :method => :get do
1
+ =(render :partial => 'indices/show', :object => @index, :as => :index)
2
+ - if @courses && !@courses.empty?
3
+ %h3 Your Results
4
+ %table
5
+ %tr
6
+ %th{:colspan => "2", :style => "text-align:center;"}
7
+ Course
8
+ ='*' if @discount
9
+ %th{:colspan => "2", :style => "text-align:center;"} Materials
10
+ %th{:style => "text-align:center;"} Application Price
11
+ %th{:style => "text-align:right;"} Total
12
+ - for course in @courses
13
+ %tr
14
+ %td{:style => "width:400px;"}= course.name
15
+ %td{:style => "width:20px;text-align:right"}= number_to_currency course.course_price(@discount), :precision => 0
16
+ %td{:style => "width:250px;"}= course.materials
17
+ %td{:style => "width:20px;text-align:right"}= number_to_currency course.materials_price, :precision => 0
18
+ %td{:style => "width:20px;text-align:right"}= number_to_currency course.application_price, :precision => 0
19
+ %td{:style => "width:20px;text-align:right"}= number_to_currency course.total(@discount), :precision => 0
20
+ %tr
21
+ %th Total
22
+ %th{:style => "width:50px;text-align:right"}
23
+ = '*' if @discount
24
+ = number_to_currency @courses_total, :precision => 0
25
+ %th
26
+ %th{:style => "width:50px;text-align:right"}= number_to_currency @materials_prices_total, :precision => 0
27
+ %th{:style => "width:50px;text-align:right"}= number_to_currency @application_prices_total, :precision => 0
28
+ %th{:style => "width:85px;text-align:right"}
29
+ = '*' if @discount
30
+ = number_to_currency @total, :precision => 0
31
+ = "<p>* Includes 10% Discount Off Non Tec Course Prices</p>" if @discount
32
+ - if @rec
33
+ %p
34
+ For more information about our PADI recreational dive courses please visit our Five Star PADI Resort and Career Development Center website: #{link_to 'www.coconuttreedivers.com', 'http://www.coconuttreedivers.com'}
35
+ - if @pro
36
+ %p
37
+ For more information about our PADI professional dive courses please visit our PADI Career Development Center website: #{link_to 'www.goprocaribbean.com', 'http://www.goprocaribbean.com'}
38
+ - if @tec
39
+ %p
40
+ For more information about our DSAT tec dive courses please visit our tec diving center website: #{link_to 'www.caribbeansidemountdiving.com', 'http://www.caribbeansidemountdiving.com'}
41
+ = form_tag package_calculator_path do
48
42
  #calculator
49
43
  %h3
50
44
  %span{:style => "color:red"} Current
@@ -82,26 +76,26 @@
82
76
  - specs = RecSpecCourse.all
83
77
  %p.two-col
84
78
  - for spec in specs[0...specs.size/2]
85
- = check_box_tag "desired[spec][#{spec.id}]", '1', (params[:desired][:spec][spec.id.to_s] == '1' rescue false)
86
- = spec.name
87
- %br/
88
- %p.two-col
89
- - for spec in specs[specs.size/2...specs.size]
90
- = check_box_tag "desired[spec][#{spec.id}]", '1', (params[:desired][:spec][spec.id.to_s] == '1' rescue false)
91
- = spec.name
92
- %br/
93
- .clearfix
94
- Desired Instructor Specialities
95
- %br/
96
- - specs = ProSpecCourse.all
97
- %p.two-col
98
- - for spec in specs[0...specs.size/2]
99
- = check_box_tag "desired[pro_spec][#{spec.id}]", '1', (params[:desired][:pro_spec][spec.id.to_s] == '1' rescue false)
100
- = spec.name
101
- %br/
102
- %p.two-col
103
- - for spec in specs[specs.size/2...specs.size]
104
- = check_box_tag "desired[pro_spec][#{spec.id}]", '1', (params[:desired][:pro_spec][spec.id.to_s] == '1' rescue false)
105
- = spec.name
106
- %br/
107
- %p= submit_tag "Calculate"
79
+ = check_box_tag "desired[spec][#{spec.id}]", '1', (params[:desired][:spec][spec.id.to_s] == '1' rescue false)
80
+ = spec.name
81
+ %br/
82
+ %p.two-col
83
+ - for spec in specs[specs.size/2...specs.size]
84
+ = check_box_tag "desired[spec][#{spec.id}]", '1', (params[:desired][:spec][spec.id.to_s] == '1' rescue false)
85
+ = spec.name
86
+ %br/
87
+ .clearfix
88
+ Desired Instructor Specialities
89
+ %br/
90
+ - specs = ProSpecCourse.all
91
+ %p.two-col
92
+ - for spec in specs[0...specs.size/2]
93
+ = check_box_tag "desired[pro_spec][#{spec.id}]", '1', (params[:desired][:pro_spec][spec.id.to_s] == '1' rescue false)
94
+ = spec.name
95
+ %br/
96
+ %p.two-col
97
+ - for spec in specs[specs.size/2...specs.size]
98
+ = check_box_tag "desired[pro_spec][#{spec.id}]", '1', (params[:desired][:pro_spec][spec.id.to_s] == '1' rescue false)
99
+ = spec.name
100
+ %br/
101
+ %p= submit_tag "Calculate"
@@ -2,6 +2,7 @@ class CreateCourses < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :courses do |t|
4
4
  t.string :name
5
+ t.string :slug
5
6
  t.string :duration
6
7
  t.integer :course_price
7
8
  t.string :materials
@@ -11,6 +12,7 @@ class CreateCourses < ActiveRecord::Migration
11
12
  t.integer :priority
12
13
  t.timestamps
13
14
  end
15
+ add_index :courses, :slug, :unique => true
14
16
  create_table :course_dependencies, :id => false do |t|
15
17
  t.integer :course_id
16
18
  t.integer :dependent_id
@@ -27,7 +27,7 @@ LOREM_SANS_HTML = <<-END_LOREM
27
27
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean a ante et dolor vehicula auctor.
28
28
  END_LOREM
29
29
 
30
- Index.find('courses').indices << Index.find_all_by_name(["pro_courses", "pro_spec_courses", "pro_tec_courses", "rec_courses", "rec_spec_courses"])
30
+ Index.find_by_name('courses').indices << Index.find_all_by_name(["pro_courses", "pro_spec_courses", "pro_tec_courses", "rec_courses", "rec_spec_courses"])
31
31
 
32
32
  Course.all.each(&:destroy)
33
33
 
@@ -982,7 +982,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
982
982
  :texts_attributes=>{},
983
983
  :keywords=>nil}}).id
984
984
  discover_scuba_diving=Course.create({:type=>"RecCourse",
985
- :priority=>46,
985
+ :priority=>0,
986
986
  :duration=>" 1 day",
987
987
  :materials=>"",
988
988
  :course_price=>100,
@@ -1011,39 +1011,8 @@ advanced_open_water=Course.create({:type=>"RecCourse",
1011
1011
  "Experience the fun of scuba diving without taking the full certification course! The PADI Discover Scuba Diving program gives you a safe and exciting introduction to the underwater world of scuba diving.\r<br />\r<br /><b>Why PADI Discover Scuba Diving?</b><br />If you've never considered taking a peek into the exciting world beneath the waves, think again. The PADI Discover Scuba Diving program offers you the chance of a lifetime: a safe, fun, and easy way to try out scuba diving for the first time. All that is required is a day of your time and an eagerness to explore!\r<br />\r<br /><b>What do I need to start?</b><br />Virtually anyone who is age ten or older, in good health, reasonably fit, and comfortable in the water can try out PADI Discover Scuba Diving. Just bring your smiling face and we'll show you the rest.\r<br />\r<br /><b>What will I do?</b><br />After a brief orientation to the principles of scuba diving, you will get to take your first breaths underwater in shallow water. Working with your PADI professional, you will learn a few basic skills necessary for diving safety and comfort. Of course, the best part comes when you head to the reef for a fun and fish-filled scuba dive to a maximum depth of 12 meters/40 feet.\r<br />\r<br /><b>How long will it take?</b><br />As an introductory experience, the PADI Discover Scuba Diving program can be completed in less than a day, and we can start you on almost any given day. Walk in, sign up, and get started today!\r<br />\r<br /><b>What do I earn at the end?</b><br />While the PADI Discover Scuba Diver program is <i>not</i> a certification program, you can count your experience toward the first part of your PADI Open Water Diver certification. Ask your instructor upon the course completion about how to receive credit.\r<br />\r<br /><b>Where can I go from here?</b><br />Get certified! The PADI Open Water Diver course is your ticket towards making scuba diving a part of your life. You can also make uncertified open water dives under the direct supervision of an instructor for just $50 per dive.\r<br />"}},
1012
1012
  :keywords=>
1013
1013
  "roatan, diveshop, diving, padi, course, Discover Scuba Diving"}}).id
1014
- tec_deep=Course.create({:type=>"RandomCourse",
1015
- :priority=>95,
1016
- :duration=>" 12 days",
1017
- :materials=>"Manual",
1018
- :course_price=>1200,
1019
- :materials_price=>50,
1020
- :application_price=>0,
1021
- :course_ids=>
1022
- [open_water,enriched_air_nitrox,advanced_open_water,deep,emergency_first_responder,rescue_diver,divemaster],
1023
- :name=>"Tec Deep",
1024
- :index_attributes=>
1025
- {:page_description=>nil,
1026
- :photos_attributes=>
1027
- {397=>
1028
- {:priority=>1,
1029
- :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/397/original_open-uri20110829-4-1ndp92k-0.."),
1030
- :klass=>"left",
1031
- :name=>"Dsat Tec Deep"}},
1032
- :page_title=>"PADI Courses: Dsat Tec Deep",
1033
- :name=>"dsat_tec_deep",
1034
- :title=>"dsat_tec_deep",
1035
- :texts_attributes=>
1036
- {661=>
1037
- {:priority=>1,
1038
- :content=>
1039
- "<b>Why DSAT Tec Deep Diver?</b>\r<br />For serious divers looking to explore the Roatan’s reef to depths and times beyond the recreation limits, DSAT Tec Deep prepares you to make gas-switch, extended no-stop dives, decompression stop dives, and accelerated decompression dives using air, enriched air and pure oxygen to 50m/165ft. Be among the first to safely explore the secrets of Roatan’s deep coral walls.\r<br />\r<br /><b>What will I do?</b>\r<br />In addition to the training covered in the DSAT Tec Apprentice Course, you will learn the techniques and planning necessary to make decompression stop dives down to 50m/165ft. Over the course of an additional five training dives atop the seven required from DSAT Tec Apprentice, you will practice accelerated decompression stops using air, enriched air, and pure oxygen.\r<br />\r<br />The DSAT Tec Deep course includes all the training required for DSAT Tec Apprentice. The cost of both Tec Apprentice and Tec Deep is included in the course price for Tec Deep. If you are already certified as a Tec Apprentice Diver, contact us for your pricing.\r<br />\r<br /><b>How long does it take?</b>\r<br />The DSAT Tec Deep course generally takes 12 days to complete, including the 6 days of training required for DSAT Tec Apprentice.\r<br />\r<br /><b>What do I earn?</b>\r<br />You will be certified as a DSAT Tec Deep Diver, which allows you to make gas-switch, extended no-stop dives, decompression stop dives, and accelerated decompression dives using air, enriched air and pure oxygen to 50m/165ft\r<br />\r<br /><b>Where can I go from here?</b>\r<br />Deeper! The DSAT Tec Trimix course applies the skills and knowledge learned in DSAT Tec Deep to diving on Trimix gas, which, by diluting enriched air with helium, enables you to explore the abyss at 75m/245ft and beyond. The DSAT Tec Trimix course can be taken as a package with the DSAT Tec Deep course for a total price of $2500 for both courses.\r<br />"},
1040
- 662=>
1041
- {:priority=>2,
1042
- :content=>
1043
- "<h3>Pre Requisites</h3>PADI Advanced Open Water<br /> PADI Rescue Diver; PADI Enriched Air Nitrox Diver<br /> PADI Deep Diver<br /> 18 years old<br /> 100 logged dives<br /> 20 logged dives on EANx<br /> 25 logged dives deeper than 18m/60ft<br /> 15 logged dives deeper than 30m/100ft<br /> physical fitness to support 50kg/110lbs of equipment"}},
1044
- :keywords=>"roatan, diveshop, diving, padi, course, DSAT Tec Deep"}}).id
1045
1014
  discover_tec=Course.create({:type=>"RecCourse",
1046
- :priority=>97,
1015
+ :priority=>2,
1047
1016
  :duration=>" 1 day",
1048
1017
  :materials=>"Manual",
1049
1018
  :course_price=>180,
@@ -17,9 +17,10 @@ module Sbdevpadi
17
17
  module Routes
18
18
  def self.draw(map)
19
19
  map.instance_exec do
20
- ["courses", "package_calculator", "pro_courses", "pro_spec_courses", "pro_tec_courses", "rec_courses", "rec_spec_courses", "tec_courses"].each do |res|
20
+ ["courses", "pro_courses", "pro_spec_courses", "pro_tec_courses", "rec_courses", "rec_spec_courses", "tec_courses"].each do |res|
21
21
  resources res.to_sym
22
22
  end
23
+ match "package_calculator" => "package_calculator#index", :as => :package_calculator
23
24
  end
24
25
  end
25
26
  end
@@ -1,3 +1,3 @@
1
1
  module Sbdevpadi
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbdevpadi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-01 00:00:00.000000000Z
12
+ date: 2011-09-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sbdevcore
16
- requirement: &2156895280 !ruby/object:Gem::Requirement
16
+ requirement: &2161369620 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156895280
24
+ version_requirements: *2161369620
25
25
  description: Sbdev Padi
26
26
  email:
27
27
  - aosalias@gmail.com
@@ -54,9 +54,7 @@ files:
54
54
  - app/views/courses/_show.html.haml
55
55
  - app/views/courses/edit.html.haml
56
56
  - app/views/courses/index.html.haml
57
- - app/views/courses/new.html.haml
58
57
  - app/views/courses/show.html.haml
59
- - app/views/courses/show.js.erb
60
58
  - app/views/package_calculator/index.html.haml
61
59
  - app/views/prices/edit.html.haml
62
60
  - app/views/shared/course_type_index.html.haml
@@ -1,4 +0,0 @@
1
- - title "New Course"
2
- - form_for :course, @course, :url => courses_path, :html => { :multipart => true } do |f|
3
- = render :partial => 'form', :locals => {:f => f}
4
- %p= link_to "Back to List", courses_path
@@ -1,13 +0,0 @@
1
- $("#ajax_content").fadeOut('fast', function() {
2
- $("#ajax_content").html("<%= escape_javascript(render :partial => 'courses/show') %>");
3
- });
4
- $("#ajax_content").fadeIn('slow', function(){
5
- $("#ajax_content .overlayed").overlay({
6
- onBeforeLoad: function() {
7
- // grab wrapper element inside content
8
- var wrap = this.getOverlay().find(".contentWrap");
9
- // load the page specified in the trigger
10
- wrap.load(this.getTrigger().attr("href"));
11
- }
12
- });
13
- });