artfully_ose 1.0.0.rc4 → 1.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +661 -0
- data/app/assets/fonts/FontAwesome.otf +0 -0
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +284 -0
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/images/chosen-sprite.png +0 -0
- data/app/assets/javascripts/application.js +88 -44
- data/app/assets/javascripts/box-office.js +7 -3
- data/app/assets/javascripts/custom/grouped-form.js +1 -1
- data/app/assets/javascripts/custom/modernizr.custom.12828.js +4 -0
- data/app/assets/javascripts/custom/people.js +30 -1
- data/app/assets/javascripts/jquery-lib/chosen.jquery.js +1026 -0
- data/app/assets/javascripts/jquery-lib/jquery.jeditable.js +1 -1
- data/app/assets/javascripts/jquery-lib/jquery.mask-money.js +90 -60
- data/app/assets/javascripts/store/store.js +112 -67
- data/app/assets/stylesheets/application.sass +174 -1
- data/app/assets/stylesheets/bootstrap-overrides.css +51 -13
- data/app/assets/stylesheets/bootstrap.css +4 -379
- data/app/assets/stylesheets/font-awesome.sass +759 -0
- data/app/assets/stylesheets/jquery/chosen.scss +397 -0
- data/app/assets/stylesheets/printing.css +5 -1
- data/app/assets/stylesheets/sass/store.sass +18 -3
- data/app/concerns/itemable.rb +11 -0
- data/app/concerns/oh_noes.rb +24 -0
- data/app/controllers/actions_controller.rb +39 -20
- data/app/controllers/addresses_controller.rb +2 -2
- data/app/controllers/artfully_ose_controller.rb +15 -1
- data/app/controllers/charts_controller.rb +6 -2
- data/app/controllers/contributions_controller.rb +28 -1
- data/app/controllers/discounts_controller.rb +65 -0
- data/app/controllers/discounts_reports_controller.rb +22 -0
- data/app/controllers/events_controller.rb +48 -45
- data/app/controllers/exchanges_controller.rb +10 -10
- data/app/controllers/imports_controller.rb +38 -20
- data/app/controllers/index_controller.rb +1 -1
- data/app/controllers/memberships_controller.rb +1 -0
- data/app/controllers/merges_controller.rb +1 -1
- data/app/controllers/orders_controller.rb +6 -12
- data/app/controllers/organizations_controller.rb +0 -1
- data/app/controllers/people_controller.rb +10 -12
- data/app/controllers/refunds_controller.rb +2 -2
- data/app/controllers/returns_controller.rb +0 -1
- data/app/controllers/sales_controller.rb +9 -6
- data/app/controllers/searches_controller.rb +53 -0
- data/app/controllers/sections_controller.rb +12 -1
- data/app/controllers/segments_controller.rb +23 -10
- data/app/controllers/shows_controller.rb +37 -28
- data/app/controllers/slices_controller.rb +37 -0
- data/app/controllers/statements_controller.rb +4 -4
- data/app/controllers/store/checkouts_controller.rb +14 -12
- data/app/controllers/store/events_controller.rb +1 -1
- data/app/controllers/store/orders_controller.rb +32 -5
- data/app/controllers/store/store_controller.rb +4 -0
- data/app/controllers/venues_controller.rb +6 -2
- data/app/helpers/artfully_ose_helper.rb +31 -5
- data/app/helpers/discounts_helper.rb +3 -0
- data/app/helpers/people_helper.rb +2 -19
- data/app/mailers/order_mailer.rb +21 -3
- data/app/mailers/producer_mailer.rb +9 -1
- data/app/mailers/reports_mailer.rb +12 -0
- data/app/models/action.rb +29 -3
- data/app/models/actions/get_action.rb +4 -0
- data/app/models/actions/go_action.rb +18 -0
- data/app/models/actions/refund_action.rb +14 -0
- data/app/models/address.rb +6 -16
- data/app/models/adjustments.rb +10 -0
- data/app/models/box_office.rb +1 -1
- data/app/models/carts/cart.rb +35 -24
- data/app/models/chart.rb +16 -8
- data/app/models/checkout.rb +32 -9
- data/app/models/comp.rb +2 -8
- data/app/models/contribution.rb +111 -25
- data/app/models/daily_donation_report.rb +45 -0
- data/app/models/daily_ticket_report.rb +51 -0
- data/app/models/discount.rb +137 -0
- data/app/models/discounts/buy_one_get_one_free_discount_type.rb +20 -0
- data/app/models/discounts/discount_type.rb +66 -0
- data/app/models/discounts/dollars_off_tickets_discount_type.rb +32 -0
- data/app/models/discounts/percentage_off_tickets_discount_type.rb +25 -0
- data/app/models/discounts_report.rb +87 -0
- data/app/models/donation.rb +2 -0
- data/app/models/door_list.rb +5 -4
- data/app/models/event.rb +45 -16
- data/app/models/exchange.rb +26 -15
- data/app/models/ext/delayed_indexing.rb +24 -0
- data/app/models/ext/due.rb +7 -0
- data/app/models/ext/ext.rb +37 -0
- data/app/models/ext/integrations.rb +30 -0
- data/app/models/ext/resellable.rb +8 -1
- data/app/models/gateway_transaction.rb +47 -0
- data/app/models/import.rb +83 -101
- data/app/models/import_error.rb +1 -1
- data/app/models/import_row.rb +1 -1
- data/app/models/imports/donations_import.rb +103 -0
- data/app/models/imports/events_import.rb +207 -0
- data/app/models/imports/people_import.rb +41 -0
- data/app/models/imports/processing.rb +53 -0
- data/app/models/imports/rollback.rb +11 -0
- data/app/models/imports/status.rb +48 -0
- data/app/models/imports/validations.rb +31 -0
- data/app/models/item.rb +112 -29
- data/app/models/job/action_job.rb +29 -0
- data/app/models/job/daily_email_report_job.rb +11 -0
- data/app/models/job/tag_job.rb +15 -0
- data/app/models/kit.rb +14 -6
- data/app/models/kits/mailchimp_kit.rb +448 -0
- data/app/models/kits/reseller_kit.rb +2 -2
- data/app/models/kits/sponsored_donation_kit.rb +2 -2
- data/app/models/orders/application_order.rb +3 -1
- data/app/models/orders/comp_order.rb +15 -2
- data/app/models/orders/exchange_order.rb +8 -0
- data/app/models/orders/imported_order.rb +7 -0
- data/app/models/orders/order.rb +164 -51
- data/app/models/orders/refund_order.rb +14 -1
- data/app/models/orders/unrefundable.rb +5 -0
- data/app/models/orders/web_order.rb +1 -1
- data/app/models/organization.rb +38 -7
- data/app/models/parsed_row.rb +167 -0
- data/app/models/payments/comp_payment.rb +10 -1
- data/app/models/payments/credit_card_payment.rb +63 -10
- data/app/models/payments/payment.rb +28 -0
- data/app/models/person.rb +115 -43
- data/app/models/refund.rb +28 -28
- data/app/models/return.rb +2 -0
- data/app/models/sale.rb +8 -5
- data/app/models/search.rb +117 -0
- data/app/models/section.rb +18 -0
- data/app/models/segment.rb +14 -4
- data/app/models/show.rb +14 -4
- data/app/models/slices.rb +82 -0
- data/app/models/statement.rb +170 -3
- data/app/models/temp_discount.rb +14 -0
- data/app/models/ticket.rb +42 -134
- data/app/models/ticket/pricing.rb +45 -0
- data/app/models/ticket/reports.rb +10 -7
- data/app/models/ticket/sale_transitions.rb +44 -0
- data/app/models/ticket/transfers.rb +50 -0
- data/app/models/user.rb +10 -2
- data/app/models/valuation/lifetime_donations.rb +35 -0
- data/app/models/venue.rb +12 -1
- data/app/presenters/event_presenter.rb +41 -0
- data/app/views/actions/_list.html.haml +1 -2
- data/app/views/actions/new.html.haml +1 -1
- data/app/views/contributions/_form.html.haml +40 -0
- data/app/views/contributions/_sidebar.html.haml +12 -0
- data/app/views/contributions/edit.html.haml +11 -0
- data/app/views/contributions/index.html.haml +2 -2
- data/app/views/contributions/new.html.haml +5 -35
- data/app/views/discounts/_discount_section_fields.html.haml +25 -0
- data/app/views/discounts/_form.html.haml +95 -0
- data/app/views/discounts/edit.html.haml +16 -0
- data/app/views/discounts/index.html.haml +33 -0
- data/app/views/discounts/new.html.haml +16 -0
- data/app/views/discounts_reports/index.html.haml +76 -0
- data/app/views/events/_discount_section_fields.html.haml +25 -0
- data/app/views/events/_glance.html.haml +4 -1
- data/app/views/events/_list.html.haml +2 -4
- data/app/views/events/_menu.html.haml +3 -3
- data/app/views/events/_section_fields.html.haml +32 -15
- data/app/views/events/_share_and_sell.haml +2 -1
- data/app/views/events/edit.html.haml +7 -6
- data/app/views/events/image.html.haml +1 -0
- data/app/views/events/index.html.haml +3 -1
- data/app/views/events/messages.html.haml +1 -0
- data/app/views/events/prices.html.haml +2 -1
- data/app/views/events/resell.html.haml +1 -1
- data/app/views/events/show.html.haml +25 -1
- data/app/views/events/storefront_link.html.haml +1 -1
- data/app/views/events/temp_discount_form.html.haml +108 -0
- data/app/views/events/temp_discounts_index.html.haml +38 -0
- data/app/views/events/widget.html.haml +14 -1
- data/app/views/exchanges/new.html.haml +50 -73
- data/app/views/imports/{_imported.html.haml → donations/_approved.html.haml} +2 -5
- data/app/views/imports/donations/_caching.html.haml +17 -0
- data/app/views/imports/donations/_failed.html.haml +5 -0
- data/app/views/imports/donations/_imported.html.haml +9 -0
- data/app/views/imports/donations/_importing.html.haml +12 -0
- data/app/views/imports/donations/_invalid.html.haml +5 -0
- data/app/views/imports/donations/_new.html.haml +99 -0
- data/app/views/imports/donations/_pending.html.haml +41 -0
- data/app/views/imports/events/_approved.html.haml +10 -0
- data/app/views/imports/events/_caching.html.haml +17 -0
- data/app/views/imports/events/_failed.html.haml +5 -0
- data/app/views/imports/events/_imported.html.haml +9 -0
- data/app/views/imports/events/_importing.html.haml +12 -0
- data/app/views/imports/events/_invalid.html.haml +5 -0
- data/app/views/imports/events/_new.html.haml +95 -0
- data/app/views/imports/events/_pending.html.haml +35 -0
- data/app/views/imports/index.html.haml +41 -18
- data/app/views/imports/new.html.haml +1 -93
- data/app/views/imports/{_approved.html.haml → people/_approved.html.haml} +0 -1
- data/app/views/imports/{_caching.html.haml → people/_caching.html.haml} +0 -0
- data/app/views/imports/people/_failed.html.haml +5 -0
- data/app/views/imports/people/_imported.html.haml +25 -0
- data/app/views/imports/{_importing.html.haml → people/_importing.html.haml} +1 -2
- data/app/views/imports/people/_invalid.html.haml +5 -0
- data/app/views/imports/people/_new.html.haml +120 -0
- data/app/views/imports/people/_pending.html.haml +39 -0
- data/app/views/imports/shared/_date_format.html.haml +14 -0
- data/app/views/imports/shared/_failed.html.haml +18 -0
- data/app/views/imports/shared/_inspect_modal.html.haml +11 -0
- data/app/views/imports/shared/_invalid.html.haml +18 -0
- data/app/views/imports/shared/_knowledge_base.haml +2 -0
- data/app/views/imports/shared/_sidebar.html.haml +5 -0
- data/app/views/imports/show.html.haml +2 -2
- data/app/views/index/dashboard.html.haml +4 -2
- data/app/views/layouts/_custom_css_includes.haml +0 -0
- data/app/views/layouts/_custom_js_includes.haml +0 -0
- data/app/views/layouts/_google_analytics.html.haml +3 -3
- data/app/views/layouts/_menu.html.haml +6 -2
- data/app/views/layouts/application.html.haml +4 -0
- data/app/views/layouts/{devise.html.haml → devise_layout.html.haml} +0 -0
- data/app/views/order_mailer/confirmation_for.html.haml +3 -2
- data/app/views/order_mailer/confirmation_for.text.haml +3 -2
- data/app/views/orders/_grouped_form_help.haml +4 -0
- data/app/views/orders/_item_table.haml +15 -4
- data/app/views/orders/_order_sidebar.html.haml +27 -6
- data/app/views/orders/index.html.haml +1 -12
- data/app/views/orders/show.html.haml +1 -1
- data/app/views/organizations/_form.html.haml +20 -6
- data/app/views/organizations/edit.html.haml +2 -1
- data/app/views/organizations/new.html.haml +1 -0
- data/app/views/organizations/show.html.haml +7 -1
- data/app/views/people/_form.html.haml +5 -2
- data/app/views/people/_key_relationships.html.haml +1 -1
- data/app/views/people/_list.html.haml +1 -12
- data/app/views/people/_person_summary_sidebar.html.haml +82 -50
- data/app/views/people/_relationship_table_row.html.haml +1 -1
- data/app/views/people/edit.html.haml +3 -1
- data/app/views/people/index.html.haml +7 -1
- data/app/views/people/new.html.haml +2 -0
- data/app/views/people/show.html.haml +2 -0
- data/app/views/refunds/new.html.haml +4 -6
- data/app/views/reports_mailer/daily.html.haml +67 -0
- data/app/views/reports_mailer/daily.text.erb +16 -0
- data/app/views/sales/new.html.haml +5 -20
- data/app/views/searches/_form.html.haml +43 -0
- data/app/views/searches/_person.html.haml +7 -0
- data/app/views/searches/new.html.haml +10 -0
- data/app/views/searches/show.html.haml +64 -0
- data/app/views/sections/edit.html.haml +12 -0
- data/app/views/segments/index.html.haml +8 -4
- data/app/views/segments/show.html.haml +39 -5
- data/app/views/shared/_door_list_table.haml +24 -0
- data/app/views/shared/_event_image_icon.html.haml +1 -1
- data/app/views/shared/_preload_assets.html.haml +2 -0
- data/app/views/shared/_tags.html.haml +3 -2
- data/app/views/shows/_glance.html.haml +8 -2
- data/app/views/shows/_ticket_table.html.haml +17 -10
- data/app/views/shows/_upcoming.html.haml +1 -1
- data/app/views/shows/door_list.html.haml +2 -24
- data/app/views/shows/index.html.haml +3 -3
- data/app/views/shows/new.html.haml +2 -2
- data/app/views/shows/show.html.haml +1 -1
- data/app/views/slices/_data.json +50 -0
- data/app/views/slices/index.html.haml +58 -0
- data/app/views/statements/_discounts_table.html.haml +26 -0
- data/app/views/statements/_order_location_table.html.haml +20 -0
- data/app/views/statements/_payment_method_table.haml +20 -0
- data/app/views/statements/{_played_shows.html.haml → _shows.html.haml} +3 -3
- data/app/views/statements/_ticket_type_table.haml +20 -0
- data/app/views/statements/_top_stats.haml +12 -0
- data/app/views/statements/show.html.haml +24 -32
- data/app/views/store/events/_show.html.haml +11 -5
- data/app/views/store/events/show.html.haml +24 -5
- data/app/views/users/registrations/edit.html.erb +1 -1
- data/app/views/venues/edit.html.haml +1 -0
- data/config/artfully.yml.sample +3 -0
- data/config/initializers/active_model_serializer.rb +3 -0
- data/config/initializers/braintree_error_mapping.rb +5 -0
- data/config/initializers/devise.rb +1 -1
- data/config/locales/en.yml +1 -0
- data/config/routes.rb +31 -8
- data/db/migrate/0000_set_up_artfully.rb +9 -11
- data/db/migrate/20120809212802_add_do_not_email_to_people.rb +5 -0
- data/db/migrate/20120831200120_create_advanced_search.rb +30 -0
- data/db/migrate/20120926201927_add_email_to_organization.rb +5 -0
- data/db/migrate/20121001143351_add_import_id_orders_events.rb +6 -0
- data/db/migrate/20121006024736_add_import_to_actions.rb +5 -0
- data/db/migrate/20121011180654_add_type_to_imports.rb +14 -0
- data/db/migrate/20121024143846_create_discounts.rb +15 -0
- data/db/migrate/20121026131454_deleted_at_to_orders_items_actions.rb +7 -0
- data/db/migrate/20121026203948_add_initial_price_to_tickets.rb +5 -0
- data/db/migrate/20121029183949_change_initial_price_to_cart_price.rb +5 -0
- data/db/migrate/20121113144826_migrate_donation_types.rb +41 -0
- data/db/migrate/20121115020441_add_salutation_to_people.rb +5 -0
- data/db/migrate/20121130004314_add_visibility_to_sections.rb +6 -0
- data/db/migrate/20121205184343_add_discount_to_ticket.rb +6 -0
- data/db/migrate/20121206212835_add_discount_to_carts_and_items.rb +7 -0
- data/db/migrate/20121211193728_add_deleted_at_to_discounts.rb +5 -0
- data/db/migrate/20121212022026_add_uuid_to_show_and_event.rb +9 -0
- data/db/migrate/20121212023203_set_uuids.rb +11 -0
- data/db/migrate/20121217201422_add_minimum_ticket_count_to_discounts.rb +5 -0
- data/db/migrate/20121221154152_add_shows_and_sections_to_discounts.rb +5 -0
- data/db/migrate/20130103153946_make_shows_and_sections_habtm.rb +19 -0
- data/db/migrate/20130108213102_add_original_price_to_items.rb +10 -0
- data/db/migrate/20130111211929_convert_discounts_sections_to_array_of_strings.rb +14 -0
- data/db/migrate/20130114200128_add_discount_code_to_search.rb +5 -0
- data/db/migrate/20130114212408_add_limit_to_discounts.rb +5 -0
- data/db/migrate/20130116203331_add_title_to_person.rb +5 -0
- data/db/migrate/20130122143845_install_audited.rb +28 -0
- data/db/migrate/20130131024955_add_gateway_transactions.rb +13 -0
- data/db/migrate/20130301144159_add_receive_daily_sales_report_boolean_to_organizations.rb +5 -0
- data/db/migrate/20130306213416_add_subscribed_lists_to_people.rb +5 -0
- data/db/migrate/20130308193328_people_arent_dummies.rb +6 -0
- data/db/migrate/20130312173340_add_categories_to_events.rb +6 -0
- data/db/migrate/20130319110520_add_transaction_id_index.rb +6 -0
- data/db/migrate/20130320192827_add_index_to_notes.rb +8 -0
- data/db/migrate/20130324173939_add_index_to_import_rows.rb +5 -0
- data/db/migrate/20130325190110_add_indexes_to_actions.rb +9 -0
- data/db/migrate/20130326173653_add_lifetime_donations_to_people_and_searches.rb +9 -0
- data/lib/artfully_ose.rb +5 -1
- data/lib/artfully_ose/common_abilities.rb +6 -9
- data/lib/artfully_ose/engine.rb +19 -5
- data/lib/artfully_ose/version.rb +1 -1
- data/lib/email_validator.rb +6 -0
- metadata +442 -138
- data/MIT-LICENSE +0 -20
- data/app/controllers/pages_controller.rb +0 -29
- data/app/models/import_person.rb +0 -78
- data/app/views/imports/_failed.html.haml +0 -20
- data/app/views/imports/_pending.html.haml +0 -35
- data/app/views/index/splash.html.erb +0 -160
- data/app/views/segments/new.html.haml +0 -20
@@ -0,0 +1,67 @@
|
|
1
|
+
%h2
|
2
|
+
Your Daily Order Report for
|
3
|
+
= @tix.organization.name
|
4
|
+
%h1= @tix.date.to_s(:long)
|
5
|
+
|
6
|
+
- if ! @tix.rows.empty?
|
7
|
+
%h3 Tickets
|
8
|
+
%table
|
9
|
+
%tr
|
10
|
+
%th Order #
|
11
|
+
%th Total
|
12
|
+
%th Customer
|
13
|
+
%th Details
|
14
|
+
%th.last-child Special Instructions
|
15
|
+
- @tix.rows.each do |row|
|
16
|
+
%tr
|
17
|
+
%td.right= link_to row.id, order_url(id: row.id)
|
18
|
+
%td.right= row.total
|
19
|
+
%td= link_to row.person, person_url(id: row.person_id)
|
20
|
+
%td= row.ticket_details
|
21
|
+
%td.last-child= row.special_instructions
|
22
|
+
%h4
|
23
|
+
Ticket Total:
|
24
|
+
= @tix.total
|
25
|
+
- else
|
26
|
+
%p There were no orders placed.
|
27
|
+
|
28
|
+
- if ! @donations.rows.empty?
|
29
|
+
%h3 Donations
|
30
|
+
%table
|
31
|
+
%tr
|
32
|
+
%th Order #
|
33
|
+
%th Donation
|
34
|
+
%th.last-child Customer
|
35
|
+
- @donations.rows.each do |row|
|
36
|
+
%tr
|
37
|
+
%td.right= link_to row.id, order_url(id: row.id)
|
38
|
+
%td.right= row.total
|
39
|
+
%td.last-child= link_to row.person, person_url(id: row.person_id)
|
40
|
+
%h4
|
41
|
+
Donation Total:
|
42
|
+
= @donations.total
|
43
|
+
- else
|
44
|
+
%p There were no donations made.
|
45
|
+
|
46
|
+
%h2
|
47
|
+
Daily Total:
|
48
|
+
= @tix.daily_total
|
49
|
+
|
50
|
+
%small
|
51
|
+
To turn off this daily email report,
|
52
|
+
= link_to "edit your organization here.", edit_organization_url(@tix.organization)
|
53
|
+
|
54
|
+
:css
|
55
|
+
.right {
|
56
|
+
text-align: right;
|
57
|
+
}
|
58
|
+
table th {
|
59
|
+
text-align: left;
|
60
|
+
}
|
61
|
+
table td, table th {
|
62
|
+
border-right: 1px solid #999;
|
63
|
+
padding: 8px;
|
64
|
+
}
|
65
|
+
table .last-child {
|
66
|
+
border: none;
|
67
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
Your Daily Order Report for <%= @tix.organization.name %>.
|
2
|
+
<%= @tix.date.to_s(:long) %>
|
3
|
+
|
4
|
+
<% if ! @tix.rows.empty? %>
|
5
|
+
<%= @tix.to_table.to_table(first_row_is_head: true, last_row_is_foot: true) %>
|
6
|
+
<% else %>
|
7
|
+
There were no orders placed.
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<% if ! @donations.rows.empty? %>
|
11
|
+
<%= @donations.to_table.to_table(first_row_is_head: true, last_row_is_foot: true) %>
|
12
|
+
<% elsif @donations.organization.has_kit?("RegularDonationKit") %>
|
13
|
+
There were no donations made.
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
View this email in an HTML-capable email reader for links to the aforementioned orders.
|
@@ -55,17 +55,17 @@
|
|
55
55
|
%h6 Payment
|
56
56
|
#payment-controls.controls
|
57
57
|
%label.radio
|
58
|
-
= radio_button_tag(:payment_method, :cash, true, :class => 'payment-method', :disabled => 'true')
|
58
|
+
= radio_button_tag(:payment_method, :cash, true, :class => 'payment-method', :disabled => 'true', :humanized_value => 'Cash')
|
59
59
|
Cash
|
60
60
|
%label.radio
|
61
|
-
= radio_button_tag(:payment_method, :comp, false, :class => 'payment-method', :disabled => 'true')
|
61
|
+
= radio_button_tag(:payment_method, :comp, false, :class => 'payment-method', :disabled => 'true', :humanized_value => 'Comp')
|
62
62
|
Comp
|
63
63
|
-unless @event.is_free
|
64
64
|
%label.radio
|
65
|
-
= radio_button_tag(:payment_method, :credit_card_swipe, false, :class => 'payment-method', :disabled => 'true')
|
65
|
+
= radio_button_tag(:payment_method, :credit_card_swipe, false, :class => 'payment-method', :disabled => 'true', :humanized_value => 'Credit card')
|
66
66
|
Credit (Swipe)
|
67
67
|
%label.radio
|
68
|
-
= radio_button_tag(:payment_method, :credit_card_manual, false, :class => 'payment-method', :disabled => 'true')
|
68
|
+
= radio_button_tag(:payment_method, :credit_card_manual, false, :class => 'payment-method', :disabled => 'true', :humanized_value => 'Credit card')
|
69
69
|
Credit (Manual)
|
70
70
|
#payment-info.hidden
|
71
71
|
.control-group
|
@@ -83,22 +83,7 @@
|
|
83
83
|
|
84
84
|
#door-list
|
85
85
|
%h3 Door List
|
86
|
-
|
87
|
-
%thead
|
88
|
-
%tr
|
89
|
-
%th
|
90
|
-
%th Buyer
|
91
|
-
%th Email
|
92
|
-
%th Section
|
93
|
-
%th Price
|
94
|
-
%tbody
|
95
|
-
- @door_list.items.each do |item|
|
96
|
-
%tr
|
97
|
-
%td= "☐"
|
98
|
-
%td= "#{item.buyer.first_name} #{item.buyer.last_name}"
|
99
|
-
%td= item.buyer.email
|
100
|
-
%td= item.ticket.section.name
|
101
|
-
%td= number_as_cents(item.ticket.price)
|
86
|
+
= render :partial => 'shared/door_list_table', :locals => { :door_list_items => @door_list.items}
|
102
87
|
|
103
88
|
= render "shared/new_person_popup"
|
104
89
|
|
@@ -0,0 +1,43 @@
|
|
1
|
+
= form_for search, url: searches_path, method: "POST", html: {class: 'form-vertical advanced-search'} do |f|
|
2
|
+
= hidden_field :commit, "Search"
|
3
|
+
%h3 Tag
|
4
|
+
= f.text_field :tagging, placeholder: "Tag Name", :class => "typeahead", "data-provide"=>"typeahead", "data-items"=>"10", "data-source"=>"[" + @tags_string.html_safe + "]"
|
5
|
+
%h3 Events
|
6
|
+
= f.select :event_id, options_for_select(@event_options, selected: search.event_id), include_blank: ""
|
7
|
+
|
8
|
+
%h3 Donations
|
9
|
+
= f.label :min_donations_amount, "Total Donations"
|
10
|
+
.control
|
11
|
+
.input-prepend
|
12
|
+
%span.add-on $
|
13
|
+
= f.text_field :min_donations_amount, placeholder: "min", class: "input-small"
|
14
|
+
%span.range-separator to
|
15
|
+
.input-prepend
|
16
|
+
%span.add-on $
|
17
|
+
= f.text_field :max_donations_amount, placeholder: "max", class: "input-small"
|
18
|
+
.control
|
19
|
+
= date_field_tag "search[min_donations_date]", search.min_donations_date.try(:strftime, "%F"), max: Time.now.strftime("%F")
|
20
|
+
%span.range-separator to
|
21
|
+
= date_field_tag "search[max_donations_date]", search.max_donations_date.try(:strftime, "%F"), max: Time.now.strftime("%F")
|
22
|
+
|
23
|
+
%h3 Value
|
24
|
+
= f.label :min_lifetime_value, "Lifetime Value (Purchases and Donations)"
|
25
|
+
.control
|
26
|
+
.input-prepend
|
27
|
+
%span.add-on $
|
28
|
+
= f.text_field :min_lifetime_value, :placeholder => "min", class: "input-small"
|
29
|
+
%span.range-separator to
|
30
|
+
.input-prepend
|
31
|
+
%span.add-on $
|
32
|
+
= f.text_field :max_lifetime_value, :placeholder => "max", class: "input-small"
|
33
|
+
|
34
|
+
%h3 Discounts
|
35
|
+
= f.select :discount_code, options_for_select(@discount_codes, search.discount_code), {:include_blank => true}
|
36
|
+
|
37
|
+
%h3 Location
|
38
|
+
= f.number_field :zip, in: 00001..99999, placeholder: "Zipcode", class: "input-small"
|
39
|
+
= f.select :state, options_for_select(sorted_us_state_names, selected: search.state), {include_blank: "State"}, {class: "input-medium"}
|
40
|
+
|
41
|
+
.control
|
42
|
+
= f.submit "Search", :class => 'btn'
|
43
|
+
= link_to "Simple Search", people_path
|
@@ -0,0 +1,64 @@
|
|
1
|
+
- content_for :header do
|
2
|
+
%h1 Search
|
3
|
+
- content_for :title do
|
4
|
+
Search
|
5
|
+
|
6
|
+
.row
|
7
|
+
.span4
|
8
|
+
= render partial: "form", locals: {search: @search}
|
9
|
+
.span8.super-search-results
|
10
|
+
.row-fluid
|
11
|
+
.span8
|
12
|
+
%h4.details-long= @search.description.html_safe
|
13
|
+
.span4
|
14
|
+
.pull-right
|
15
|
+
%ul.in-table
|
16
|
+
%li.dropdown{:id => "#menu#bulkactions"}
|
17
|
+
=icon_link_to('Work with...', "#menu#bulkactions", 'icon-asterisk', 'dropdown-toggle dropdown btn', '')
|
18
|
+
%ul.dropdown-menu
|
19
|
+
%li
|
20
|
+
=link_to "Tag all", "#tag-modal", 'data-toggle' => 'modal', :rel => "tooltip", :data => {:toggle => "modal", "original-title" => "Give all of the people in these results the same tag.", :trigger => "hover", :placement => "left"}
|
21
|
+
%li
|
22
|
+
=link_to "Log action", new_search_action_path(@search, :format => :html, :type => :hear), :id => 'hear-action-link', "data-remote" => "true"
|
23
|
+
%li
|
24
|
+
=link_to "Create list segment", "#segment-modal", 'data-toggle' => 'modal'
|
25
|
+
%li
|
26
|
+
= link_to 'Export to CSV', search_path(@search, :format => :csv)
|
27
|
+
|
28
|
+
%table.table.people-list
|
29
|
+
- if @people.blank?
|
30
|
+
%h3 No results.
|
31
|
+
- else
|
32
|
+
- @people.each do |person|
|
33
|
+
= render partial: "person", locals: {person: person}
|
34
|
+
- if @people.present?
|
35
|
+
= will_paginate @people, :inner_window => 2, :outer_window => 0
|
36
|
+
.form-actions.row-fluid
|
37
|
+
.pull-left
|
38
|
+
%a.btn{"data-toggle" => "modal", :href => "#segment-modal"} Create List Segment
|
39
|
+
= link_to "Download CSV", search_path(@search, :format => :csv), :class => "btn"
|
40
|
+
|
41
|
+
#segment-modal.modal
|
42
|
+
= form_for(@segment) do |form|
|
43
|
+
.modal-header
|
44
|
+
.close{"data-dismiss" => "modal"} ×
|
45
|
+
%h3 Create List Segment
|
46
|
+
.modal-body
|
47
|
+
= form.hidden_field :search_id, :value => @search.id
|
48
|
+
= form.text_field :name, :placeholder => "Name your list segment...", :required => "required"
|
49
|
+
.modal-footer
|
50
|
+
= form.submit "Save", :class => "btn"
|
51
|
+
|
52
|
+
#tag-modal.modal
|
53
|
+
= form_tag tag_search_path(@search), :onsubmit => "return validateTag()"
|
54
|
+
.modal-header
|
55
|
+
.close{"data-dismiss" => "modal"} ×
|
56
|
+
%h3 Tag people
|
57
|
+
.modal-body
|
58
|
+
=text_field_tag :name, "", :id=>"new-tag-field", :required => "required", :class => "typeahead", "data-provide"=>"typeahead", :autocomplete => 'off', "data-items"=>"5", "data-source"=>"[" + @tags_string.html_safe + "]"
|
59
|
+
.tag-error
|
60
|
+
%p This tag will be applied to people that appear in these search results.
|
61
|
+
.modal-footer
|
62
|
+
= submit_tag "Save", :class => "btn"
|
63
|
+
|
64
|
+
#hear-action-modal.modal
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.modal-header
|
2
|
+
.close{'data-dismiss'=>'modal'} x
|
3
|
+
.row-fluid
|
4
|
+
.span10
|
5
|
+
%h3 Edit Ticket Type
|
6
|
+
|
7
|
+
= form_for( @section, :html => { :class => 'form-horizontal' } ) do |form|
|
8
|
+
.modal-body
|
9
|
+
= form.hidden_field :chart_id, {:value => @section.chart.id }
|
10
|
+
= render 'events/section_fields', :f => form, :show_remove_links => false, :no_editing => true
|
11
|
+
.modal-footer
|
12
|
+
= form.submit "Save", :class => 'btn'
|
@@ -1,15 +1,19 @@
|
|
1
1
|
- in_section :people
|
2
|
+
- content_for :title do
|
3
|
+
List Segments
|
2
4
|
- content_for :header do
|
3
5
|
%h1 List Segments
|
4
6
|
|
5
7
|
.row
|
6
8
|
.span8.offset2
|
7
9
|
- if @segments.empty?
|
8
|
-
%p= "You have no list segments yet! #{link_to "Create one",
|
10
|
+
%p.detailed-list= "You have no list segments yet! #{link_to "Create one", new_search_path} by searching for people.".html_safe
|
9
11
|
- else
|
10
12
|
%ul.detailed-list
|
11
13
|
- @segments.each do |segment|
|
12
14
|
%li
|
13
|
-
%h4
|
14
|
-
|
15
|
-
|
15
|
+
%h4
|
16
|
+
= link_to segment.name, segment
|
17
|
+
.details-long= segment.description.html_safe
|
18
|
+
- if @segments.present?
|
19
|
+
= will_paginate @segments, :inner_window => 2, :outer_window => 0
|
@@ -1,20 +1,54 @@
|
|
1
1
|
- in_section :people
|
2
|
+
- content_for :title do
|
3
|
+
#{@segment.name} List Segment
|
2
4
|
- content_for :header do
|
3
|
-
%h1
|
5
|
+
%h1
|
6
|
+
List Segment:
|
7
|
+
= @segment.name
|
4
8
|
|
5
9
|
.row
|
6
10
|
.span4
|
7
|
-
%h3
|
8
|
-
|
11
|
+
%h3 Details
|
12
|
+
.details-long= @segment.description.html_safe
|
13
|
+
|
14
|
+
%ul.in-table
|
15
|
+
%li.dropdown{:id => "#menu#bulkactions"}
|
16
|
+
=icon_link_to('Work with...', "#menu#bulkactions", 'icon-asterisk', 'dropdown-toggle dropdown btn', '')
|
17
|
+
%ul.dropdown-menu
|
18
|
+
%li
|
19
|
+
=link_to "Tag all", "#tag-modal", 'data-toggle' => 'modal', :rel => "tooltip", :data => {:toggle => "modal", "original-title" => "Give all of the people in this list segment the same tag.", :trigger => "hover", :placement => "right"}
|
20
|
+
%li
|
21
|
+
=link_to "Log action", new_segment_action_path(@segment, :format => :html, :type => :hear), :id => 'hear-action-link', "data-remote" => "true"
|
22
|
+
%li
|
23
|
+
= link_to "Delete this list segment", @segment, :method => :delete, :data => {:confirm => "Are you sure you want to delete #{@segment.name}?"}
|
24
|
+
%li
|
25
|
+
= link_to 'Export all to CSV', segment_path(@segment, :format => :csv), :class => "artfully-tooltip", :rel => "tooltip", :data => {"original-title" => "To view all the data on patrons in this segment, including mailing address and phone numbers, export this segment to a CSV file.", :trigger => "hover", :placement => "right"}
|
9
26
|
|
10
27
|
.span8
|
11
28
|
%table.table.people-list
|
12
29
|
%tbody
|
13
|
-
- @
|
30
|
+
- @people.each do |person|
|
14
31
|
%tr
|
15
|
-
%td.name=
|
32
|
+
%td.name= link_to_person person
|
16
33
|
%td.email= person.email
|
17
34
|
%td.tag-cell
|
18
35
|
%ul.detailed-list.tags.pull-right{:id => "people-people-tags"}
|
19
36
|
- person.tag_list.each do |tag|
|
20
37
|
%li.tag.rounder= tag
|
38
|
+
- if @people.present?
|
39
|
+
= will_paginate @people, :inner_window => 2, :outer_window => 0
|
40
|
+
|
41
|
+
#tag-modal.modal
|
42
|
+
= form_tag tag_segment_path(@segment), :onsubmit => "return validateTag()"
|
43
|
+
.modal-header
|
44
|
+
.close{"data-dismiss" => "modal"} ×
|
45
|
+
%h3 Tag everyone in #{@segment.name}
|
46
|
+
.modal-body
|
47
|
+
-# = text_field_tag :name, "", :placeholder => "tag-name", :required => "required"
|
48
|
+
=text_field_tag :name, "", :id=>"new-tag-field", :required => "required", :class => "typeahead", "data-provide"=>"typeahead", :autocomplete => 'off', "data-items"=>"5", "data-source"=>"[" + @tags_string.html_safe + "]"
|
49
|
+
.tag-error
|
50
|
+
%p This tag will be applied to people that are currently in this list segment. Any future additions/deletions to this list will not be automatically tagged.
|
51
|
+
.modal-footer
|
52
|
+
= submit_tag "Save", :class => "btn"
|
53
|
+
|
54
|
+
#hear-action-modal.modal
|
@@ -0,0 +1,24 @@
|
|
1
|
+
#door-list-table
|
2
|
+
%table#door-list.table
|
3
|
+
%thead
|
4
|
+
%tr
|
5
|
+
%th
|
6
|
+
%th First
|
7
|
+
%th Last
|
8
|
+
%th Email
|
9
|
+
%th Section
|
10
|
+
%th Method
|
11
|
+
%th Price
|
12
|
+
%tbody
|
13
|
+
- door_list_items.each do |door_list_item|
|
14
|
+
%tr
|
15
|
+
%td= "☐"
|
16
|
+
%td= door_list_item.buyer.first_name
|
17
|
+
%td= door_list_item.buyer.last_name
|
18
|
+
%td= door_list_item.buyer.email
|
19
|
+
%td= door_list_item.ticket.section.name
|
20
|
+
%td= door_list_item.payment_method
|
21
|
+
%td= number_as_cents(door_list_item.ticket.sold_price)
|
22
|
+
%tr.no-border
|
23
|
+
%td
|
24
|
+
%td{:colspan => 6}= door_list_item.special_instructions
|
@@ -2,8 +2,9 @@
|
|
2
2
|
- tags.each do |tag|
|
3
3
|
%li.tag.deletable.rounder= tag
|
4
4
|
|
5
|
-
= form_tag new_tag_path(subject), :method => :post, :class => 'new-tag-form form-search', :remote=>'true' do
|
5
|
+
= form_tag new_tag_path(subject), :method => :post, :class => 'new-tag-form form-search', :autocomplete => 'off', :remote=>'true' do
|
6
6
|
= hidden_field_tag :subject_id, subject.id, {:id=>'subject-id-field'}
|
7
|
-
= text_field_tag :tag, nil, {:id=>'new-tag-field'}
|
7
|
+
-# = text_field_tag :tag, nil, {:id=>'new-tag-field'}
|
8
|
+
= text_field_tag :tag, "", :id=>"new-tag-field", :class => "typeahead", "data-provide"=>"typeahead", "data-items"=>"5", "data-source"=>"[" + @tags_string.html_safe + "]"
|
8
9
|
= submit_tag "Add Tag", :class => "btn"
|
9
10
|
%span.tag-error
|
@@ -1,4 +1,7 @@
|
|
1
|
-
|
1
|
+
- if controller.controller_name == "shows" && controller.action_name == "show"
|
2
|
+
%h3 Show Details
|
3
|
+
- else
|
4
|
+
%h3 At a Glance
|
2
5
|
- if report.nil?
|
3
6
|
%p Report not yet available.
|
4
7
|
- else
|
@@ -19,4 +22,7 @@
|
|
19
22
|
%tr
|
20
23
|
%td Original Potential
|
21
24
|
%td
|
22
|
-
%td= number_as_cents(report.potential_original)
|
25
|
+
%td= number_as_cents(report.potential_original)
|
26
|
+
|
27
|
+
.pull-right
|
28
|
+
=icon_link_to("View Complete Statement", statement_path(show.id), 'icon-th-list', '', '')
|
@@ -1,24 +1,31 @@
|
|
1
1
|
%table.table#ticket-type-table
|
2
2
|
-@show.chart.sections.each do |section|
|
3
3
|
%tr
|
4
|
-
%td
|
5
|
-
%strong=section.name
|
6
|
-
%td="#{number_as_cents section.price}"
|
7
|
-
%td="#{section.summary.total} tickets"
|
8
|
-
%td="#{section.summary.available} on sale"
|
9
|
-
%td="#{section.summary.sold} sold"
|
10
|
-
%td="#{section.summary.comped} comped"
|
11
4
|
%td{:style => 'width: 30px'}
|
12
5
|
%ul.nav.in-table
|
13
6
|
%li.dropdown{:id => "#menu#{section.id}"}
|
14
7
|
=icon_link_to(' ', "#menu#{section.id}", 'icon-asterisk', 'dropdown-toggle dropdown btn btn-mini', '')
|
15
8
|
%ul.dropdown-menu
|
9
|
+
%li
|
10
|
+
=link_to "Edit", edit_section_path(section.id, :format => :html), 'data-remote' => 'true', :class => 'add-new-ticket-type-link'
|
16
11
|
%li
|
17
12
|
=link_to "Put on sale", "#putOnSale#{section.id}", 'data-toggle' => 'modal'
|
18
13
|
%li
|
19
14
|
=link_to "Take off sale", "#takeOffSale#{section.id}", 'data-toggle' => 'modal'
|
20
15
|
%li
|
21
16
|
=link_to "Add tickets", "#addTickets#{section.id}", 'data-toggle' => 'modal'
|
17
|
+
%td
|
18
|
+
- section.channels.each do |channel, icon|
|
19
|
+
%a{:href => "#", :class => "artfully-tooltip", :rel => "tooltip", "data-original-title" => "This ticket type is #{"not" unless section.send(channel)} shown in your #{channel_text channel}", "data-trigger" => "hover"}
|
20
|
+
%span.badge{:class => "#{'badge-success' if section.send(channel)}"}=icon
|
21
|
+
|
22
|
+
%td
|
23
|
+
%strong=truncate(section.name, :length => 20, :separator => ' ', :omission => '...')
|
24
|
+
%td="#{number_as_cents section.price}"
|
25
|
+
%td="#{section.summary.total} tickets"
|
26
|
+
%td="#{section.summary.available} on sale"
|
27
|
+
%td="#{section.summary.sold} sold"
|
28
|
+
%td="#{section.summary.comped} comp"
|
22
29
|
|
23
30
|
-@show.chart.sections.each do |section|
|
24
31
|
.modal{:id => "addTickets#{section.id}", :style => "width: 650px"}
|
@@ -39,7 +46,7 @@
|
|
39
46
|
= submit_tag "Go", :class => "btn"
|
40
47
|
.row-fluid
|
41
48
|
.span6
|
42
|
-
%h6="About #{section.name}"
|
49
|
+
%h6="About #{truncate(section.name, :length => 20, :separator => ' ', :omission => '...')}"
|
43
50
|
= render :partial => 'shared/section_summary', :locals => { :section => section }
|
44
51
|
.span6
|
45
52
|
%h6 About this show
|
@@ -61,7 +68,7 @@
|
|
61
68
|
Take off sale
|
62
69
|
.row-fluid
|
63
70
|
.span6
|
64
|
-
%h6="About #{section.name}"
|
71
|
+
%h6="About #{truncate(section.name, :length => 20, :separator => ' ', :omission => '...')}"
|
65
72
|
= render :partial => 'shared/section_summary', :locals => { :section => section }
|
66
73
|
.span6
|
67
74
|
%h6 About this show
|
@@ -83,7 +90,7 @@
|
|
83
90
|
Put on sale
|
84
91
|
.row-fluid
|
85
92
|
.span6
|
86
|
-
%h6="About #{section.name}"
|
93
|
+
%h6="About #{truncate(section.name, :length => 20, :separator => ' ', :omission => '...')}"
|
87
94
|
= render :partial => 'shared/section_summary', :locals => { :section => section }
|
88
95
|
.span6
|
89
96
|
%h6 About this show
|