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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjM5NDY5OGFmYWNhMDRkZTJkMjAzZTUwOGIyMDVlMjA5ZGZkNTFlOQ==
4
+ NTZhNzA2MTY4YzkyODhmMDIzZDhiZGQ4ZDhlMzE5Yjk1YWZhNDBkOA==
5
5
  data.tar.gz: !binary |-
6
- ZjI4MTRiNDUzZmY4OTU3NjEyZGQ1MjBhZTA1ZWZjZmMzMjU2YmYyZg==
6
+ OGYyZThlYTUwMzBlNDM3MmNkZGE2OGRiYzM0NTAyMjc0YjA3NGJhNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzkxNjg3YWY3NWMzNWNhOWViMWZiMjExOTE3N2NjN2MxMjQxNDI0MGRjOGE4
10
- YmUxZTdlMGRmYTFmYjBlMDg0NjA5ZjNlYWViZGRhZDU5MzM2ODY5YzVlNWFh
11
- NjlmYmI3YTJiY2U1NDJjMjI3MjYzNTQ3Y2UxMTEwNjU2MzNhNjU=
9
+ ZDNlMDZiMmJjNGYxNGUwYWNhOWZiZjJiYzFiMGYxYTE0MTQ0OGU1NTA2ZDgz
10
+ YTIxOTYxMTg3N2UwMzQ1YjhkYTVkNTA4Mjg4NGQ4ZWRmZDc1MDQ4ODQyZmJi
11
+ YmNmMTgyMmI1MWRhNzhmZWVmMzM3YTYwNDExMzU0NzBiOWMxMzA=
12
12
  data.tar.gz: !binary |-
13
- Yjc4NThiMWFkYzhjMDE1ZmQxMWJhN2RmMTYxZWUzZWFjNzJiMTViYzA3YjFk
14
- MDk4Y2I3ZmVmZDc3NjU3MjkzOWVjZjQwMmY3Nzg1YzZjMmNhZTUwZDFkYmJj
15
- ZDYxMGRkYmY2ODcwMDZhZTVmODIxNmEzN2U0MzEzZGE2MmM1MzQ=
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)").
@@ -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
- .control-group
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
- =f.label :membership_type_id, "Membership", :class => 'control-label'
11
+ =label_tag "Member ticket?", "Member ticket?", :class => 'control-label'
22
12
  .controls
23
- =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'
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
- =f.label :tickets_per_membership, "Tickets per Membership", :class => 'control-label'
25
+ =label_tag "Member ticket?", "Member ticket?", :class => 'control-label'
27
26
  .controls
28
- =f.text_field :tickets_per_membership, :class => 'input-small'
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
- %h5 Email Lists
72
- %section#subscription-listing
73
- = form_for @person do |form|
74
- - if @person.organization.kits.mailchimp
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
- = form.submit "Save", :class => 'btn btn-primary hidden'
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
- - if current_user.current_organization.kits.mailchimp
150
- .modal#subscribe-modal(role="dialog")
151
- .modal-header
152
- %button(type="button" class="close" data-dismiss="modal" aria-hidden="true") ×
153
- %h3 MailChimp List Subscription
154
- .modal-body
155
- %p #{@person} will receive an email from MailChimp confirming their addition to this list
156
- .modal-footer
157
- %button(class="btn" data-dismiss="modal" aria-hidden="true") Cancel
158
- %button(class="btn btn-primary") OK
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
@@ -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,"
@@ -1,3 +1,3 @@
1
1
  module ArtfullyOse
2
- VERSION = "1.2.0.alpha.1"
2
+ VERSION = "1.2.0.alpha.2"
3
3
  end
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.1
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-19 00:00:00.000000000 Z
11
+ date: 2014-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails