artfully_ose 1.2.0.alpha.1 → 1.2.0.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/order.rb +0 -1
- data/app/models/pass_type.rb +1 -1
- data/app/views/events/_ticket_type_fields.html.haml +30 -15
- data/app/views/people/show.html.haml +16 -15
- data/config/locales/en.yml +2 -0
- data/lib/artfully_ose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTZhNzA2MTY4YzkyODhmMDIzZDhiZGQ4ZDhlMzE5Yjk1YWZhNDBkOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGYyZThlYTUwMzBlNDM3MmNkZGE2OGRiYzM0NTAyMjc0YjA3NGJhNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDNlMDZiMmJjNGYxNGUwYWNhOWZiZjJiYzFiMGYxYTE0MTQ0OGU1NTA2ZDgz
|
10
|
+
YTIxOTYxMTg3N2UwMzQ1YjhkYTVkNTA4Mjg4NGQ4ZWRmZDc1MDQ4ODQyZmJi
|
11
|
+
YmNmMTgyMmI1MWRhNzhmZWVmMzM3YTYwNDExMzU0NzBiOWMxMzA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTRjM2Q4ZGY0YzdhYmFkYmYzNTU1MDE2Zjc1YTEzMjQ3NDRmMmZkMjRjYmEy
|
14
|
+
OTIxZDA1N2M4MDMxODY3N2QzYjA2YjA1OGE3ZmM3ZWI5MzRhYWQ0MGM2ZDhh
|
15
|
+
NjE4ZTAzZTZlMDRiNWYxZjMwYmU2NTY0NGU2ZGIwZDM1MjQ1NTA=
|
data/app/models/order.rb
CHANGED
@@ -256,7 +256,6 @@ class Order < ActiveRecord::Base
|
|
256
256
|
|
257
257
|
def self.membership_sale_search(search)
|
258
258
|
standard = ::Order.
|
259
|
-
where("orders.type != ?", ::Reseller::Order.name).
|
260
259
|
joins(:items).
|
261
260
|
joins("INNER JOIN memberships ON (items.product_type = #{::Item.sanitize('Membership')} AND items.product_id = memberships.id)").
|
262
261
|
joins("INNER JOIN membership_types ON (membership_types.id = memberships.membership_type_id)").
|
data/app/models/pass_type.rb
CHANGED
@@ -8,7 +8,7 @@ class PassType < ActiveRecord::Base
|
|
8
8
|
attr_accessible :name, :description, :hide_fee, :thanks_copy, :email_copy, :sales_start_at, :sales_end_at,
|
9
9
|
:on_sale, :price, :tickets_allowed, :starts_at, :ends_at
|
10
10
|
|
11
|
-
validates :name, :description, :price, :tickets_allowed, :presence => true
|
11
|
+
validates :name, :description, :price, :tickets_allowed, :starts_at, :ends_at, :presence => true
|
12
12
|
|
13
13
|
scope :storefront, where(:on_sale => true).where("sales_start_at < ? or sales_start_at is null", DateTime.now).where("sales_end_at > ? or sales_end_at is null", DateTime.now)
|
14
14
|
scope :on_sale, where(:on_sale => true)
|
@@ -6,26 +6,41 @@
|
|
6
6
|
=f.text_field :name, :class => 'span4'
|
7
7
|
|
8
8
|
-with_kit :membership do
|
9
|
-
.
|
10
|
-
=label_tag "Member ticket?", "Member ticket?", :class => 'control-label'
|
11
|
-
.controls
|
12
|
-
%label.radio.inline
|
13
|
-
= f.radio_button :member_ticket, true, :class => "member-ticket-yes"
|
14
|
-
Yes
|
15
|
-
%label.radio.inline
|
16
|
-
= f.radio_button :member_ticket, false, :class => "member-ticket-no"
|
17
|
-
No
|
18
|
-
|
19
|
-
.membership-fields{:style => "display: none"}
|
9
|
+
- if current_user.current_organization.membership_types.empty?
|
20
10
|
.control-group
|
21
|
-
=
|
11
|
+
=label_tag "Member ticket?", "Member ticket?", :class => 'control-label'
|
22
12
|
.controls
|
23
|
-
|
13
|
+
%label.radio.inline
|
14
|
+
= f.radio_button :member_ticket, true, :class => "member-ticket-yes", :disabled => "true"
|
15
|
+
Yes
|
16
|
+
%label.radio.inline
|
17
|
+
= f.radio_button :member_ticket, false, :class => "member-ticket-no", :disabled => "true"
|
18
|
+
No
|
19
|
+
%p.muted
|
20
|
+
You need to create a membership before you can sell member tickets.
|
21
|
+
=link_to "Get started here.", new_membership_type_path
|
24
22
|
|
23
|
+
- else
|
25
24
|
.control-group
|
26
|
-
=
|
25
|
+
=label_tag "Member ticket?", "Member ticket?", :class => 'control-label'
|
27
26
|
.controls
|
28
|
-
|
27
|
+
%label.radio.inline
|
28
|
+
= f.radio_button :member_ticket, true, :class => "member-ticket-yes"
|
29
|
+
Yes
|
30
|
+
%label.radio.inline
|
31
|
+
= f.radio_button :member_ticket, false, :class => "member-ticket-no"
|
32
|
+
No
|
33
|
+
|
34
|
+
.membership-fields{:style => "display: none"}
|
35
|
+
.control-group
|
36
|
+
=f.label :membership_type_id, "Membership", :class => 'control-label'
|
37
|
+
.controls
|
38
|
+
=f.select :membership_type_id, options_from_collection_for_select(MembershipType.in_play(current_user.current_organization), 'id', 'name', f.object.membership_type_id), {}, :class => 'span4'
|
39
|
+
|
40
|
+
.control-group
|
41
|
+
=f.label :tickets_per_membership, "Tickets per Membership", :class => 'control-label'
|
42
|
+
.controls
|
43
|
+
=f.text_field :tickets_per_membership, :class => 'input-small'
|
29
44
|
|
30
45
|
.control-group
|
31
46
|
=f.label :price, "Price", :class => 'control-label'
|
@@ -68,10 +68,10 @@
|
|
68
68
|
%span Do Not Email
|
69
69
|
= form.submit "Save", :class => 'btn btn-primary hidden'
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
71
|
+
- with_kit(:mailchimp) do
|
72
|
+
%h5 Email Lists
|
73
|
+
%section#subscription-listing
|
74
|
+
= form_for @person do |form|
|
75
75
|
.mailchimp-list
|
76
76
|
- mailchimp_kit = @person.organization.kits.mailchimp
|
77
77
|
= hidden_field_tag "person[subscribed_lists][]", nil, :id => "person_subscribed_lists_empty"
|
@@ -79,7 +79,7 @@
|
|
79
79
|
= label_tag "", :class => "checkbox" do
|
80
80
|
= check_box_tag "person[subscribed_lists][]", list[:list_id], @person.subscribed_lists.include?(list[:list_id]), :class => "mail-chimp-list", :disabled => @person.do_not_email
|
81
81
|
%span= list[:list_name]
|
82
|
-
|
82
|
+
= form.submit "Save", :class => 'btn btn-primary hidden'
|
83
83
|
|
84
84
|
.span8
|
85
85
|
#notes
|
@@ -146,13 +146,14 @@
|
|
146
146
|
= render 'convert_to_company_modal'
|
147
147
|
#edit-order-popup.modal
|
148
148
|
|
149
|
-
-
|
150
|
-
.
|
151
|
-
.modal-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
149
|
+
-with_kit(:mailchimp) do
|
150
|
+
- if current_user.current_organization.kits.mailchimp
|
151
|
+
.modal#subscribe-modal(role="dialog")
|
152
|
+
.modal-header
|
153
|
+
%button(type="button" class="close" data-dismiss="modal" aria-hidden="true") ×
|
154
|
+
%h3 MailChimp List Subscription
|
155
|
+
.modal-body
|
156
|
+
%p #{@person} will receive an email from MailChimp confirming their addition to this list
|
157
|
+
.modal-footer
|
158
|
+
%button(class="btn" data-dismiss="modal" aria-hidden="true") Cancel
|
159
|
+
%button(class="btn btn-primary") OK
|
data/config/locales/en.yml
CHANGED
@@ -184,6 +184,8 @@
|
|
184
184
|
ends_at: "Membership ends"
|
185
185
|
pass_type:
|
186
186
|
tickets_allowed: "Number of Tickets"
|
187
|
+
starts_at: "Pass Starts"
|
188
|
+
ends_at: "Pass Ends"
|
187
189
|
organization:
|
188
190
|
# Blithering hack to get around Rails' miserable validation message handling
|
189
191
|
cached_slug: "Sorry,"
|
data/lib/artfully_ose/version.rb
CHANGED
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.2.0.alpha.
|
4
|
+
version: 1.2.0.alpha.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artful.ly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|