artfully_ose 1.3.0.pre3 → 1.3.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/loading-white.gif +0 -0
  3. data/app/assets/images/seating_temp/1.jpg +0 -0
  4. data/app/assets/images/seating_temp/10.jpg +0 -0
  5. data/app/assets/images/seating_temp/11.jpg +0 -0
  6. data/app/assets/images/seating_temp/2.jpg +0 -0
  7. data/app/assets/images/seating_temp/3.jpg +0 -0
  8. data/app/assets/images/seating_temp/4.jpg +0 -0
  9. data/app/assets/images/seating_temp/5.jpg +0 -0
  10. data/app/assets/images/seating_temp/6.jpg +0 -0
  11. data/app/assets/images/seating_temp/7.jpg +0 -0
  12. data/app/assets/images/seating_temp/8.jpg +0 -0
  13. data/app/assets/images/seating_temp/9.jpg +0 -0
  14. data/app/assets/images/seating_temp/icon_43405.png +0 -0
  15. data/app/assets/images/seating_temp/icon_43405.svg +3 -0
  16. data/app/assets/images/seating_temp/icon_43405_plus.png +0 -0
  17. data/app/assets/images/seating_temp/license.txt +8 -0
  18. data/app/assets/javascripts/application.js +1 -0
  19. data/app/assets/javascripts/custom/cookies.js +27 -0
  20. data/app/assets/javascripts/custom/inline-people-search.js +4 -0
  21. data/app/assets/javascripts/custom/job-monitor.js +0 -1
  22. data/app/assets/javascripts/exchange-seat-chart.js +5 -0
  23. data/app/assets/javascripts/seat-chart.js +606 -0
  24. data/app/assets/javascripts/show-seat-chart.js +17 -0
  25. data/app/assets/javascripts/store/store-seat-chart.js +76 -0
  26. data/app/assets/javascripts/store/store.js +14 -39
  27. data/app/assets/stylesheets/application.sass +49 -1
  28. data/app/assets/stylesheets/bootstrap-overrides.css +11 -3
  29. data/app/assets/stylesheets/sass/seat-chart.sass +311 -0
  30. data/app/assets/stylesheets/sass/store.sass +73 -19
  31. data/app/assets/stylesheets/storefront.css +2 -0
  32. data/app/concerns/pdf_generation.rb +1 -15
  33. data/app/controllers/advanced_searches_controller.rb +1 -3
  34. data/app/controllers/charts_controller.rb +14 -12
  35. data/app/controllers/console_sales_controller.rb +55 -0
  36. data/app/controllers/event_calendars_controller.rb +15 -0
  37. data/app/controllers/events_controller.rb +16 -5
  38. data/app/controllers/exchanges_controller.rb +32 -9
  39. data/app/controllers/export_controller.rb +8 -0
  40. data/app/controllers/members/sessions_controller.rb +0 -2
  41. data/app/controllers/membership_comps_controller.rb +2 -1
  42. data/app/controllers/prices_controller.rb +20 -0
  43. data/app/controllers/shows_controller.rb +3 -1
  44. data/app/controllers/store/events_controller.rb +6 -5
  45. data/app/controllers/store/orders_controller.rb +11 -13
  46. data/app/controllers/store/shows_controller.rb +1 -0
  47. data/app/controllers/store/store_controller.rb +11 -0
  48. data/app/controllers/tickets_controller.rb +0 -28
  49. data/app/controllers/user_memberships_controller.rb +7 -2
  50. data/app/controllers/venues_controller.rb +9 -0
  51. data/app/helpers/artfully_ose_helper.rb +18 -4
  52. data/app/helpers/seating_helper.rb +157 -0
  53. data/app/models/assigned_chart.rb +220 -0
  54. data/app/models/cart.rb +6 -1
  55. data/app/models/chart.rb +28 -17
  56. data/app/models/database_views/item_view.rb +76 -5
  57. data/app/models/discount.rb +4 -0
  58. data/app/models/discounts/buy_one_get_one_free_discount_type.rb +1 -1
  59. data/app/models/discounts/dollars_off_tickets_discount_type.rb +5 -1
  60. data/app/models/discounts/percentage_off_tickets_discount_type.rb +8 -4
  61. data/app/models/event.rb +86 -12
  62. data/app/models/general_admission_chart.rb +51 -0
  63. data/app/models/imports/events_import.rb +1 -1
  64. data/app/models/job/show_creator.rb +3 -10
  65. data/app/models/kit.rb +11 -1
  66. data/app/models/kits/assigned_seating_kit.rb +23 -0
  67. data/app/models/member_walkup.rb +1 -1
  68. data/app/models/order_handler.rb +22 -6
  69. data/app/models/organization.rb +4 -5
  70. data/app/models/person.rb +3 -1
  71. data/app/models/sale.rb +1 -1
  72. data/app/models/seat.rb +96 -0
  73. data/app/models/section.rb +1 -3
  74. data/app/models/show.rb +10 -17
  75. data/app/models/ticket.rb +30 -6
  76. data/app/models/ticket/locker.rb +3 -2
  77. data/app/models/ticket_type.rb +12 -6
  78. data/app/models/ticket_types_seat.rb +4 -0
  79. data/app/models/venue.rb +23 -0
  80. data/app/views/advanced_searches/filters/_birthday.html.haml +1 -0
  81. data/app/views/assigned_charts/_show.html.haml +12 -0
  82. data/app/views/console_sales/_aloha.html.haml +5 -4
  83. data/app/views/console_sales/new.html.haml +9 -0
  84. data/app/views/event_calendars/index.html.haml +34 -0
  85. data/app/views/events/_menu.html.haml +2 -1
  86. data/app/views/events/_section_fields.html.haml +13 -8
  87. data/app/views/events/new.html.haml +34 -4
  88. data/app/views/events/prices.html.haml +3 -4
  89. data/app/views/events/seating.html.haml +131 -0
  90. data/app/views/exchanges/_assigned_chart.html.haml +108 -0
  91. data/app/views/exchanges/_general_admission_chart.html.haml +55 -0
  92. data/app/views/exchanges/new.html.haml +1 -55
  93. data/app/views/general_admission_charts/_show.html.haml +2 -0
  94. data/app/views/layouts/_menu.html.haml +44 -31
  95. data/app/views/layouts/storefront.html.haml +72 -30
  96. data/app/views/membership_comps/new.html.haml +1 -0
  97. data/app/views/order_mailer/confirmation_for.html.haml +5 -3
  98. data/app/views/order_mailer/confirmation_for.text.haml +1 -2
  99. data/app/views/pdfs/order.html.haml +20 -6
  100. data/app/views/seating/_actions_menu.html.haml +10 -0
  101. data/app/views/seating/_chart.html.haml +15 -0
  102. data/app/views/seating/_chart_container.html.haml +2 -0
  103. data/app/views/seating/_chart_note_display.html.haml +7 -0
  104. data/app/views/seating/_hold_seats_modal.html.haml +39 -0
  105. data/app/views/seating/_layer_menu.html.haml +23 -0
  106. data/app/views/seating/_legend.html.haml +52 -0
  107. data/app/views/seating/_modify_seats_modal.html.haml +29 -0
  108. data/app/views/seating/_ticket_type_modals.html.haml +41 -0
  109. data/app/views/shows/_seat_chart.html.haml +122 -0
  110. data/app/views/shows/_sections_table.html.haml +3 -24
  111. data/app/views/shows/_ticket_table.html.haml +4 -2
  112. data/app/views/shows/_work_with.html.haml +4 -0
  113. data/app/views/shows/new.html.haml +2 -2
  114. data/app/views/shows/show.html.haml +93 -14
  115. data/app/views/store/assigned_charts/_show.html.haml +54 -0
  116. data/app/views/store/checkouts/shopping_cart_display/_tickets.haml +13 -0
  117. data/app/views/store/donations/index.html.haml +1 -1
  118. data/app/views/store/events/calendar.html.haml +94 -11
  119. data/app/views/store/events/index.html.haml +1 -1
  120. data/app/views/store/events/show.html.haml +36 -2
  121. data/app/views/store/events/single_show.html.haml +5 -4
  122. data/app/views/store/general_admission_charts/_show.html.haml +41 -0
  123. data/app/views/store/orders/show.html.haml +17 -4
  124. data/app/views/store/shared/_donate_form.html.haml +2 -1
  125. data/app/views/store/shared/_small_donate_form.html.haml +1 -1
  126. data/app/views/store/shows/_show.html.haml +1 -39
  127. data/app/views/ticket_types/edit.html.haml +1 -1
  128. data/app/views/user_memberships/_list.html.haml +1 -1
  129. data/app/views/venues/edit.html.haml +1 -1
  130. data/app/views/venues/show.html.haml +11 -0
  131. data/config/routes.rb +27 -10
  132. data/db/migrate/20140828174357_add_type_to_chart.rb +7 -0
  133. data/db/migrate/20140828195617_create_seats.rb +16 -0
  134. data/db/migrate/20140829135426_add_venue_to_chart.rb +5 -0
  135. data/db/migrate/20140829143520_add_assigned_to_event.rb +5 -0
  136. data/db/migrate/20140904164927_add_fields_to_seat.rb +14 -0
  137. data/db/migrate/20140912170010_add_note_to_seat.rb +6 -0
  138. data/db/migrate/20140919152307_add_seats_to_ticket.rb +5 -0
  139. data/db/migrate/20140930224543_add_public_note_to_chart.rb +5 -0
  140. data/db/migrate/20141001140737_add_seat_id_index_to_tickets.rb +5 -0
  141. data/db/migrate/20141001193242_associate_hold_with_person.rb +6 -0
  142. data/db/migrate/20141021175311_create_ticket_types_seats.rb +11 -0
  143. data/db/migrate/20150106161744_migrate_charts_back_to_venues.rb +18 -0
  144. data/db/migrate/20151105085424_add_creator_to_items_view.rb +40 -0
  145. data/lib/artfully_ose/version.rb +1 -1
  146. data/spec/factories/assigned_chart_factories.rb +18 -0
  147. data/spec/factories/chart_factories.rb +4 -8
  148. data/spec/factories/kit_factories.rb +4 -0
  149. data/spec/factories/seat_factories.rb +4 -0
  150. data/spec/factories/show_factories.rb +1 -1
  151. metadata +66 -5
  152. data/app/models/ticket/foundry.rb +0 -48
  153. data/app/models/ticket/template.rb +0 -40
  154. data/app/views/store/events/_calendar.html.haml +0 -13
@@ -1,3 +1,3 @@
1
1
  module ArtfullyOse
2
- VERSION = "1.3.0.pre3"
2
+ VERSION = "1.3.0.pre4"
3
3
  end
@@ -0,0 +1,18 @@
1
+ FactoryGirl.define do
2
+ factory :assigned_chart do
3
+ name "Test Chart"
4
+
5
+ after(:create) do |chart|
6
+ 5.times do |i|
7
+ seat = FactoryGirl.create(:seat, :col_index => i,
8
+ :row_index => 0,
9
+ :row_label => "A",
10
+ :col_label => "#{i + 1}",
11
+ :label => "A#{i + 1}",
12
+ :available => true,
13
+ :chart => chart)
14
+
15
+ end
16
+ end
17
+ end
18
+ end
@@ -2,7 +2,7 @@ FactoryGirl.define do
2
2
  #
3
3
  # pass :price => 2000 just like anything else
4
4
  #
5
- factory :chart do
5
+ factory :chart, :class => GeneralAdmissionChart do
6
6
  ignore do
7
7
  price nil
8
8
  capacity nil
@@ -28,21 +28,17 @@ FactoryGirl.define do
28
28
  factory :chart_with_sections, :parent => :chart do
29
29
  skip_create_first_section true
30
30
  after(:create) do |chart|
31
- 2.times do
32
- chart.sections << FactoryGirl.create(:section)
33
- end
31
+ chart.sections << FactoryGirl.create(:section)
34
32
  end
35
33
  end
36
34
 
37
35
  factory :chart_with_free_sections, :parent => :chart do
38
36
  after(:create) do |chart|
39
- 2.times do
40
- chart.sections << FactoryGirl.create(:free_section)
41
- end
37
+ chart.sections << FactoryGirl.create(:free_section)
42
38
  end
43
39
  end
44
40
 
45
- factory :assigned_chart, :parent => :chart_with_sections do
41
+ factory :event_chart, :parent => :chart_with_sections do
46
42
  event
47
43
  end
48
44
 
@@ -54,4 +54,8 @@ FactoryGirl.define do
54
54
  t.association :organization
55
55
  t.settings { { :marketing_copy_heading => "Top", :marketing_copy_sidebar => "Sidebar" } }
56
56
  end
57
+
58
+ factory :assigned_seating_kit do |t|
59
+ t.association :organization
60
+ end
57
61
  end
@@ -0,0 +1,4 @@
1
+ FactoryGirl.define do
2
+ factory :seat do
3
+ end
4
+ end
@@ -7,7 +7,7 @@ FactoryGirl.define do
7
7
  datetime { FactoryGirl.generate :datetime }
8
8
  organization
9
9
  event
10
- association :chart, :factory => :assigned_chart
10
+ association :chart, :factory => :event_chart
11
11
  end
12
12
 
13
13
  factory :show_with_tickets, :parent => :show do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artfully_ose
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0.pre3
4
+ version: 1.3.0.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artful.ly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-19 00:00:00.000000000 Z
11
+ date: 2015-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -1837,12 +1837,28 @@ files:
1837
1837
  - app/assets/images/glyphish/white/99-umbrella@2x.png
1838
1838
  - app/assets/images/government-default-avatar.png
1839
1839
  - app/assets/images/household-default-avatar.png
1840
+ - app/assets/images/loading-white.gif
1840
1841
  - app/assets/images/loading.gif
1841
1842
  - app/assets/images/loading_gray.gif
1842
1843
  - app/assets/images/nonprofit-default-avatar.png
1843
1844
  - app/assets/images/other-default-avatar.png
1844
1845
  - app/assets/images/person-default-avatar.png
1845
1846
  - app/assets/images/person-default-avatar.psd
1847
+ - app/assets/images/seating_temp/1.jpg
1848
+ - app/assets/images/seating_temp/10.jpg
1849
+ - app/assets/images/seating_temp/11.jpg
1850
+ - app/assets/images/seating_temp/2.jpg
1851
+ - app/assets/images/seating_temp/3.jpg
1852
+ - app/assets/images/seating_temp/4.jpg
1853
+ - app/assets/images/seating_temp/5.jpg
1854
+ - app/assets/images/seating_temp/6.jpg
1855
+ - app/assets/images/seating_temp/7.jpg
1856
+ - app/assets/images/seating_temp/8.jpg
1857
+ - app/assets/images/seating_temp/9.jpg
1858
+ - app/assets/images/seating_temp/icon_43405.png
1859
+ - app/assets/images/seating_temp/icon_43405.svg
1860
+ - app/assets/images/seating_temp/icon_43405_plus.png
1861
+ - app/assets/images/seating_temp/license.txt
1846
1862
  - app/assets/images/storefront/cvv.gif
1847
1863
  - app/assets/images/storefront/event-image-default.jpg
1848
1864
  - app/assets/images/storefront/lock.png
@@ -1884,6 +1900,7 @@ files:
1884
1900
  - app/assets/javascripts/change-membership.js
1885
1901
  - app/assets/javascripts/contributions.js
1886
1902
  - app/assets/javascripts/custom/advanced_searches.js
1903
+ - app/assets/javascripts/custom/cookies.js
1887
1904
  - app/assets/javascripts/custom/door-list.js
1888
1905
  - app/assets/javascripts/custom/endless-scroll.js
1889
1906
  - app/assets/javascripts/custom/grouped-form.js
@@ -1901,6 +1918,7 @@ files:
1901
1918
  - app/assets/javascripts/custom/user-finder.js
1902
1919
  - app/assets/javascripts/custom/widget-generator.js
1903
1920
  - app/assets/javascripts/d3.v3.min.js
1921
+ - app/assets/javascripts/exchange-seat-chart.js
1904
1922
  - app/assets/javascripts/households.js
1905
1923
  - app/assets/javascripts/ical.js
1906
1924
  - app/assets/javascripts/jquery-lib/chosen.jquery.js
@@ -1922,11 +1940,14 @@ files:
1922
1940
  - app/assets/javascripts/relationships.js
1923
1941
  - app/assets/javascripts/sales-console.js
1924
1942
  - app/assets/javascripts/search.js
1943
+ - app/assets/javascripts/seat-chart.js
1944
+ - app/assets/javascripts/show-seat-chart.js
1925
1945
  - app/assets/javascripts/slicer.js
1926
1946
  - app/assets/javascripts/store/index.js
1927
1947
  - app/assets/javascripts/store/jquery.validate.additional-methods.js
1928
1948
  - app/assets/javascripts/store/jquery.validate.js
1929
1949
  - app/assets/javascripts/store/sliding-wizard.js
1950
+ - app/assets/javascripts/store/store-seat-chart.js
1930
1951
  - app/assets/javascripts/store/store.js
1931
1952
  - app/assets/javascripts/storefront.js
1932
1953
  - app/assets/javascripts/tags.js
@@ -1954,6 +1975,7 @@ files:
1954
1975
  - app/assets/stylesheets/sass/box-office.sass
1955
1976
  - app/assets/stylesheets/sass/cart.sass
1956
1977
  - app/assets/stylesheets/sass/fa-color.css.scss
1978
+ - app/assets/stylesheets/sass/seat-chart.sass
1957
1979
  - app/assets/stylesheets/sass/sliding-wizard.sass
1958
1980
  - app/assets/stylesheets/sass/store.sass
1959
1981
  - app/assets/stylesheets/sass/themes/default.sass
@@ -1981,6 +2003,7 @@ files:
1981
2003
  - app/controllers/delete_ticket_types_controller.rb
1982
2004
  - app/controllers/discounts_controller.rb
1983
2005
  - app/controllers/discounts_reports_controller.rb
2006
+ - app/controllers/event_calendars_controller.rb
1984
2007
  - app/controllers/events_controller.rb
1985
2008
  - app/controllers/events_pass_types_controller.rb
1986
2009
  - app/controllers/exchanges_controller.rb
@@ -2022,6 +2045,7 @@ files:
2022
2045
  - app/controllers/phones_controller.rb
2023
2046
  - app/controllers/pledges_controller.rb
2024
2047
  - app/controllers/preview_rows_controller.rb
2048
+ - app/controllers/prices_controller.rb
2025
2049
  - app/controllers/refunds_controller.rb
2026
2050
  - app/controllers/regular_donation_kits_controller.rb
2027
2051
  - app/controllers/relationships_controller.rb
@@ -2068,6 +2092,7 @@ files:
2068
2092
  - app/helpers/relationships_helper.rb
2069
2093
  - app/helpers/sales_helper.rb
2070
2094
  - app/helpers/searches_helper.rb
2095
+ - app/helpers/seating_helper.rb
2071
2096
  - app/helpers/segments_helper.rb
2072
2097
  - app/helpers/suggested_households_helper.rb
2073
2098
  - app/mailers/order_mailer.rb
@@ -2096,6 +2121,7 @@ files:
2096
2121
  - app/models/advanced_search.rb
2097
2122
  - app/models/advanced_search_segment.rb
2098
2123
  - app/models/appeal.rb
2124
+ - app/models/assigned_chart.rb
2099
2125
  - app/models/box_office.rb
2100
2126
  - app/models/budget_restriction.rb
2101
2127
  - app/models/campaign.rb
@@ -2137,6 +2163,7 @@ files:
2137
2163
  - app/models/fee_strategy.rb
2138
2164
  - app/models/forwarding_job_monitor.rb
2139
2165
  - app/models/gateway_transaction.rb
2166
+ - app/models/general_admission_chart.rb
2140
2167
  - app/models/household.rb
2141
2168
  - app/models/import.rb
2142
2169
  - app/models/import_error.rb
@@ -2183,6 +2210,7 @@ files:
2183
2210
  - app/models/job/tag_job.rb
2184
2211
  - app/models/job_monitor.rb
2185
2212
  - app/models/kit.rb
2213
+ - app/models/kits/assigned_seating_kit.rb
2186
2214
  - app/models/kits/campaigns_kit.rb
2187
2215
  - app/models/kits/mailchimp_kit.rb
2188
2216
  - app/models/kits/membership_kit.rb
@@ -2248,6 +2276,7 @@ files:
2248
2276
  - app/models/scheduled_pledge_payment.rb
2249
2277
  - app/models/search.rb
2250
2278
  - app/models/seasonal_membership_type.rb
2279
+ - app/models/seat.rb
2251
2280
  - app/models/section.rb
2252
2281
  - app/models/section_summary.rb
2253
2282
  - app/models/segment.rb
@@ -2261,7 +2290,6 @@ files:
2261
2290
  - app/models/sundial.rb
2262
2291
  - app/models/temp_discount.rb
2263
2292
  - app/models/ticket.rb
2264
- - app/models/ticket/foundry.rb
2265
2293
  - app/models/ticket/glance.rb
2266
2294
  - app/models/ticket/locker.rb
2267
2295
  - app/models/ticket/pricing.rb
@@ -2269,10 +2297,10 @@ files:
2269
2297
  - app/models/ticket/reporting.rb
2270
2298
  - app/models/ticket/reports.rb
2271
2299
  - app/models/ticket/sale_transitions.rb
2272
- - app/models/ticket/template.rb
2273
2300
  - app/models/ticket/transfers.rb
2274
2301
  - app/models/ticket_summary.rb
2275
2302
  - app/models/ticket_type.rb
2303
+ - app/models/ticket_types_seat.rb
2276
2304
  - app/models/user.rb
2277
2305
  - app/models/user_membership.rb
2278
2306
  - app/models/valuation/lifetime_donations.rb
@@ -2335,6 +2363,7 @@ files:
2335
2363
  - app/views/appeals/_heard_action.html.haml
2336
2364
  - app/views/appeals/edit.html.haml
2337
2365
  - app/views/appeals/new.html.haml
2366
+ - app/views/assigned_charts/_show.html.haml
2338
2367
  - app/views/assignments/new.html.haml
2339
2368
  - app/views/campaigns/_campaign_donations.html.haml
2340
2369
  - app/views/campaigns/_campaign_stats.html.haml
@@ -2376,6 +2405,7 @@ files:
2376
2405
  - app/views/discounts/index.html.haml
2377
2406
  - app/views/discounts/new.html.haml
2378
2407
  - app/views/discounts_reports/index.html.haml
2408
+ - app/views/event_calendars/index.html.haml
2379
2409
  - app/views/events/_chart_select.html.haml
2380
2410
  - app/views/events/_day_date_show.html.haml
2381
2411
  - app/views/events/_discount_section_fields.html.haml
@@ -2395,6 +2425,7 @@ files:
2395
2425
  - app/views/events/new.html.haml
2396
2426
  - app/views/events/prices.html.haml
2397
2427
  - app/views/events/resell.html.haml
2428
+ - app/views/events/seating.html.haml
2398
2429
  - app/views/events/show.html.haml
2399
2430
  - app/views/events/storefront_link.html.haml
2400
2431
  - app/views/events/temp_discount_form.html.haml
@@ -2404,8 +2435,11 @@ files:
2404
2435
  - app/views/events_pass_types/edit.html.haml
2405
2436
  - app/views/events_pass_types/index.html.haml
2406
2437
  - app/views/events_pass_types/new.html.haml
2438
+ - app/views/exchanges/_assigned_chart.html.haml
2439
+ - app/views/exchanges/_general_admission_chart.html.haml
2407
2440
  - app/views/exchanges/_grouped_form.html.haml
2408
2441
  - app/views/exchanges/new.html.haml
2442
+ - app/views/general_admission_charts/_show.html.haml
2409
2443
  - app/views/households/_action.html.haml
2410
2444
  - app/views/households/_edit_modal.html.haml
2411
2445
  - app/views/households/_form.html.haml
@@ -2620,6 +2654,15 @@ files:
2620
2654
  - app/views/searches/_individual.html.haml
2621
2655
  - app/views/searches/new.html.haml
2622
2656
  - app/views/searches/show.html.haml
2657
+ - app/views/seating/_actions_menu.html.haml
2658
+ - app/views/seating/_chart.html.haml
2659
+ - app/views/seating/_chart_container.html.haml
2660
+ - app/views/seating/_chart_note_display.html.haml
2661
+ - app/views/seating/_hold_seats_modal.html.haml
2662
+ - app/views/seating/_layer_menu.html.haml
2663
+ - app/views/seating/_legend.html.haml
2664
+ - app/views/seating/_modify_seats_modal.html.haml
2665
+ - app/views/seating/_ticket_type_modals.html.haml
2623
2666
  - app/views/sections/edit.html.haml
2624
2667
  - app/views/sections/new.html.haml
2625
2668
  - app/views/segments/index.html.haml
@@ -2642,6 +2685,7 @@ files:
2642
2685
  - app/views/shows/_form.html.haml
2643
2686
  - app/views/shows/_glance.html.haml
2644
2687
  - app/views/shows/_new_show_for_table.html.haml
2688
+ - app/views/shows/_seat_chart.html.haml
2645
2689
  - app/views/shows/_sections_table.html.haml
2646
2690
  - app/views/shows/_stats.html.haml
2647
2691
  - app/views/shows/_ticket_table.html.haml
@@ -2667,6 +2711,7 @@ files:
2667
2711
  - app/views/statements/_top_stats.haml
2668
2712
  - app/views/statements/index.html.haml
2669
2713
  - app/views/statements/show.html.haml
2714
+ - app/views/store/assigned_charts/_show.html.haml
2670
2715
  - app/views/store/checkouts/_event_information.html.haml
2671
2716
  - app/views/store/checkouts/_shopping_cart_display.haml
2672
2717
  - app/views/store/checkouts/_thanks.html.haml
@@ -2679,13 +2724,13 @@ files:
2679
2724
  - app/views/store/checkouts/shopping_cart_display/_tickets.haml
2680
2725
  - app/views/store/checkouts/shopping_cart_display/_total.haml
2681
2726
  - app/views/store/donations/index.html.haml
2682
- - app/views/store/events/_calendar.html.haml
2683
2727
  - app/views/store/events/_contact_info.html.haml
2684
2728
  - app/views/store/events/_venue.html.haml
2685
2729
  - app/views/store/events/calendar.html.haml
2686
2730
  - app/views/store/events/index.html.haml
2687
2731
  - app/views/store/events/show.html.haml
2688
2732
  - app/views/store/events/single_show.html.haml
2733
+ - app/views/store/general_admission_charts/_show.html.haml
2689
2734
  - app/views/store/memberships/index.html.haml
2690
2735
  - app/views/store/orders/blank.html.erb
2691
2736
  - app/views/store/orders/show.html.haml
@@ -2716,6 +2761,7 @@ files:
2716
2761
  - app/views/users/shared/_links.erb
2717
2762
  - app/views/users/unlocks/new.html.erb
2718
2763
  - app/views/venues/edit.html.haml
2764
+ - app/views/venues/show.html.haml
2719
2765
  - config/artfully.yml.sample
2720
2766
  - config/initializers/active_model_serializer.rb
2721
2767
  - config/initializers/add_uncap_to_string.rb
@@ -2895,13 +2941,24 @@ files:
2895
2941
  - db/migrate/20140723134923_add_commitment_date_to_donations.rb
2896
2942
  - db/migrate/20140730141515_add_match_eligible_to_donations.rb
2897
2943
  - db/migrate/20140818141140_create_soft_credits.rb
2944
+ - db/migrate/20140828174357_add_type_to_chart.rb
2945
+ - db/migrate/20140828195617_create_seats.rb
2946
+ - db/migrate/20140829135426_add_venue_to_chart.rb
2947
+ - db/migrate/20140829143520_add_assigned_to_event.rb
2898
2948
  - db/migrate/20140903140113_add_pledge_to_donations.rb
2949
+ - db/migrate/20140904164927_add_fields_to_seat.rb
2899
2950
  - db/migrate/20140904183953_add_destroyed_at_to_relationships.rb
2900
2951
  - db/migrate/20140905080503_create_scheduled_pledge_payments.rb
2901
2952
  - db/migrate/20140909150251_add_org_to_suggested_household.rb
2953
+ - db/migrate/20140912170010_add_note_to_seat.rb
2954
+ - db/migrate/20140919152307_add_seats_to_ticket.rb
2955
+ - db/migrate/20140930224543_add_public_note_to_chart.rb
2956
+ - db/migrate/20141001140737_add_seat_id_index_to_tickets.rb
2957
+ - db/migrate/20141001193242_associate_hold_with_person.rb
2902
2958
  - db/migrate/20141007114614_add_order_id_to_donations.rb
2903
2959
  - db/migrate/20141009191355_add_donated_to_searches.artfully_ose_engine.rb
2904
2960
  - db/migrate/20141021134013_add_lifetime_pledges_to_people.rb
2961
+ - db/migrate/20141021175311_create_ticket_types_seats.rb
2905
2962
  - db/migrate/20141027191307_default_overwrite_member_addresses_to_false.rb
2906
2963
  - db/migrate/20141031193839_update_relations.rb
2907
2964
  - db/migrate/20141126183258_add_mailchimp_status_fields_to_people.rb
@@ -2920,6 +2977,7 @@ files:
2920
2977
  - db/migrate/20141211165307_add_external_reference_to_actions.rb
2921
2978
  - db/migrate/20141212172119_add_not_mailchimp_lists_to_searches.rb
2922
2979
  - db/migrate/20141229204605_normalize_states_in_addresses.rb
2980
+ - db/migrate/20150106161744_migrate_charts_back_to_venues.rb
2923
2981
  - db/migrate/20150113091344_add_fiscal_to_organizations.rb
2924
2982
  - db/migrate/20150113091434_create_budget_restrictions.rb
2925
2983
  - db/migrate/20150113091503_add_budget_restriction_to_campaigns.rb
@@ -2960,6 +3018,7 @@ files:
2960
3018
  - db/migrate/20150922155308_add_advanced_search_segment_id_to_pass_types.rb
2961
3019
  - db/migrate/20151006180702_add_deleted_at_to_ticket_types.rb
2962
3020
  - db/migrate/20151009175206_add_receipt_details_to_ticket_types.rb
3021
+ - db/migrate/20151105085424_add_creator_to_items_view.rb
2963
3022
  - db/migrate/20151112174723_index_list_groupings.rb
2964
3023
  - lib/artfully_ose.rb
2965
3024
  - lib/artfully_ose/common_abilities.rb
@@ -2977,6 +3036,7 @@ files:
2977
3036
  - spec/factories/advanced_search_factories.rb
2978
3037
  - spec/factories/advanced_search_segment_factories.rb
2979
3038
  - spec/factories/advanced_segment_factories.rb
3039
+ - spec/factories/assigned_chart_factories.rb
2980
3040
  - spec/factories/campaign_factories.rb
2981
3041
  - spec/factories/cart_factories.rb
2982
3042
  - spec/factories/chart_factories.rb
@@ -2999,6 +3059,7 @@ files:
2999
3059
  - spec/factories/person_factories.rb
3000
3060
  - spec/factories/phone_factories.rb
3001
3061
  - spec/factories/scheduled_pledge_payment_factories.rb
3062
+ - spec/factories/seat_factories.rb
3002
3063
  - spec/factories/section_factories.rb
3003
3064
  - spec/factories/segment_factories.rb
3004
3065
  - spec/factories/show_factories.rb
@@ -1,48 +0,0 @@
1
- module Ticket::Foundry
2
- extend ActiveSupport::Concern
3
-
4
- module ClassMethods
5
- def foundry(options = {})
6
- foundry_setup_next(options[:using])
7
- foundry_setup_attr(options[:with])
8
- end
9
-
10
- private
11
-
12
- def foundry_setup_next(using)
13
- define_method(:foundry_using_next) { send(using) } if using.present?
14
- end
15
-
16
- def foundry_setup_attr(with)
17
- with ||= lambda { Hash.new }
18
- define_method(:foundry_attributes, &with)
19
- end
20
- end
21
-
22
- def create_tickets
23
- Ticket.import(build_tickets)
24
- end
25
-
26
- def build_tickets
27
- foundry_template.collect(&:build).flatten
28
- end
29
-
30
- def foundry_template
31
- if respond_to?(:foundry_using_next)
32
- template = next_template
33
- template.each { |template| template.update_attributes(foundry_attributes) }
34
- else
35
- Ticket::Template.new(foundry_attributes)
36
- end
37
- end
38
-
39
- private
40
-
41
- def next_template
42
- if foundry_using_next.respond_to?(:collect)
43
- foundry_using_next.collect(&:foundry_template)
44
- else
45
- Array.wrap(foundry_using_next.foundry_template)
46
- end
47
- end
48
- end
@@ -1,40 +0,0 @@
1
- #TODO: This class is supposed to encapsulate creating a ticket so that whoever is creating the Ticket (section, show, etc..)
2
- # will always have the tickets created properly. Instead, this class take a hash of whatever the called passed in, so Tickets
3
- # can be created with whatever attrs are passed in. We want it to be very easy for callers to
4
- # create tickets the exact same way every time.
5
- #
6
- # Do not use this class or method. Instead, use Ticket.create_many
7
-
8
- class Ticket::Template
9
- def initialize(attrs = {})
10
- @attributes = attrs
11
- end
12
-
13
- def collect; self; end
14
-
15
- def flatten; self; end
16
-
17
- def attributes
18
- @attributes
19
- end
20
-
21
- def update_attributes(attrs)
22
- @attributes.merge!(attrs)
23
- end
24
-
25
- def build
26
- count = @attributes.delete(:count).to_i
27
- organization_id = @attributes.delete(:organization_id)
28
- show_id = @attributes.delete(:show_id)
29
-
30
- tickets = []
31
- count.times.collect do
32
- t = Ticket.new(attributes)
33
- t.organization_id = organization_id
34
- t.show_id = show_id
35
- t.set_uuid
36
- tickets << t
37
- end
38
- tickets
39
- end
40
- end