artfully_ose 1.2.0.pre.8 → 1.2.0.pre.9

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
- Y2U1Njk3MDg2YWQyMzMzNDg0ODQwMmVlZjRiMDAxZDNkMDc3NWQ3Zg==
4
+ MGVjMmI2YmJlZWYwYjExYjE4MjhhNjUxNzRjMWNhM2U4ZGQ4ZmY1YQ==
5
5
  data.tar.gz: !binary |-
6
- OGU0NjI2ZGVjZmNkY2E2MWYzM2RiYWUxMjdjZTFhMmZlZmI5ZGZiZg==
6
+ NGI3YjdjMTg2ODgwMzk1MDg4MjkzMjIyOTdkYzFhM2JiZWIwZjI0Yg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NzNkMzk2OWY1ZjY1YzQxNWJlNmU1NWMwNDVjOWU2MzMzMDkxNzFiMTk1YmNl
10
- NjRiMDBkZTUwODIxMTUxZDMzZmJiZGE0ZTJlNzIwNzBiNjg0MWIzNTEyNzk5
11
- ODBmMDJhMTQxMDU5ZWM0ODMxODBhNWUyOWMxNmNiMmEwOTFkYTE=
9
+ NjZhZWRlOTRlMDQxNjdhNzVmMmUyOTUwYTc3MTZmZjYwYmM2MjYzYWJlZWEy
10
+ ZjZkMzAwN2M4NTc3YTc1MjE5ZTU4YjhlZWNhY2ZjNzIyMTNiMDc3NWM2ZjUx
11
+ MDNiNjZmZTMwM2U2NmJkZTZiNmU4NmJlYjkzYzNmNTgwM2EyODE=
12
12
  data.tar.gz: !binary |-
13
- ZmQyYWU3ZTA5NzM4M2E3MWM5YjRmZDAwZDQ1NTdlZWRhY2NiM2QyZGIzYWJk
14
- ODRkNDA4YjFhMDNjOTMzNjc5MGYxOGJiMGE0ZjUxNTkzYmI4ZmMxNDUzOGQ1
15
- MGNmOWU1YmRjYzEyNmRhZTIxNDM1NGI4NTk1MjMzNTQ4MjJlOWY=
13
+ YTA5YTgwODY5MDdlMjljOWU0YTc4ZWJlZDU0YTc0ODFkOTUzMWFlZmM5Nzk3
14
+ MTg5ZDYyMGExOGE1YzU2NGI4YjU4YzA5MmVhZmUxNWE5NzJjMDg3YTAzOTQ5
15
+ MzE0MzBiMzE2NDAwZGFjYTNjZjBmMDMyZGQ0ZTAyOTBhMDIyNzI=
@@ -20,6 +20,13 @@ class MembershipTypesController < ArtfullyOseController
20
20
  @membership_type = MembershipType.find(params[:id])
21
21
  end
22
22
 
23
+ def update
24
+ @membership_type = MembershipType.find(params[:id])
25
+ @membership_type.update_attributes(params[:membership_type])
26
+ flash[:notice] = "Your changes have been saved"
27
+ redirect_to membership_types_path
28
+ end
29
+
23
30
  private
24
31
  def with_type_selected
25
32
  render :type and return if params[:type].blank?
@@ -17,7 +17,7 @@ class MembershipsController < ArtfullyOseController
17
17
  def extend_memberships(params)
18
18
 
19
19
  #I hate how these are tied to the button text
20
- if params[:commit].eql? "Extend Memberships"
20
+ if params[:commit].eql? "Change Expiration"
21
21
  params[:membership_ids].each do |membership_id|
22
22
  Membership.find(membership_id).adjust_expiration_to(params[:ends_at])
23
23
  end
@@ -29,6 +29,11 @@ class Store::CheckoutsController < Store::StoreController
29
29
  redirect_to store_order_path
30
30
  end
31
31
 
32
+ def dook
33
+ @order = Order.find(154)
34
+ render :thanks
35
+ end
36
+
32
37
  def filter(params)
33
38
  filters = Rails.application.config.filter_parameters
34
39
  f = ActionDispatch::Http::ParameterFilter.new filters
@@ -1,5 +1,5 @@
1
1
  =form_for @membership_type, :as => :membership_type, :html => { :class => 'form-horizontal' } do |f|
2
- =f.hidden_field :type, :value => params[:type]
2
+ =f.hidden_field :type, :value => @membership_type.type
3
3
  %fieldset
4
4
  .control-group
5
5
  = f.label :name, "Name", :class => 'control-label'
@@ -32,4 +32,8 @@
32
32
  = f.check_box :on_sale
33
33
  .form-actions
34
34
  =f.submit "Save", :class => "btn btn-primary"
35
- =link_to "Cancel", "", :class => "btn"
35
+ =link_to "Cancel", membership_types_path, :class => "btn"
36
+
37
+ -content_for :custom_js do
38
+ :javascript
39
+ touchCurrency();
@@ -48,6 +48,19 @@
48
48
  %td.price.right=number_as_cents membership.sold_price
49
49
  %td.fee.right TODO
50
50
 
51
+ #extend.modal
52
+ .modal-header
53
+ .close{'data-dismiss'=>'modal'} x
54
+ %h3 Change Expiration
55
+ .modal-body
56
+ .control-group
57
+ %label Change the expiration of these memberships to:
58
+ .controls
59
+ =text_field_tag "ends_at", "", :class => "datepicker"
60
+ .modal-footer
61
+ =submit_tag "Change Expiration", :class => "btn btn-success"
62
+ =link_to "Cancel", "#", :class => "btn btn-danger", 'data-dismiss'=>'modal'
63
+
51
64
  #full-refund.modal
52
65
  .modal-header
53
66
  .close{'data-dismiss'=>'modal'} x
@@ -128,19 +141,6 @@
128
141
  =link_to "Cancel Memberhships", "#", :class => "btn btn-success", 'data-dismiss'=>'modal'
129
142
  =link_to "Cancel", "#", :class => "btn btn-danger", 'data-dismiss'=>'modal'
130
143
 
131
- #extend.modal
132
- .modal-header
133
- .close{'data-dismiss'=>'modal'} x
134
- %h3 Change Expiration
135
- .modal-body
136
- .control-group
137
- %label Change the expiration of these memberships to:
138
- .controls
139
- =text_field_tag "ends_at", "", :class => "datepicker"
140
- .modal-footer
141
- =submit_tag "Change Expiration", :class => "btn btn-success"
142
- =link_to "Cancel", "#", :class => "btn btn-danger", 'data-dismiss'=>'modal'
143
-
144
144
  -content_for :custom_js do
145
145
  :javascript
146
146
  $(".payment-method").change(function(){
@@ -45,10 +45,19 @@
45
45
  -unless @order.memberships.empty?
46
46
  %h4 Memberships
47
47
  %table.table
48
- -current_cart.memberships.each do |membership|
48
+ -@order.memberships.each do |item|
49
49
  %tr
50
- %td=membership.membership_type.membershipize
51
- %td.right=number_as_cents membership.membership_type.price
50
+ %td=item.product.membership_type.membershipize
51
+ %td.right=number_as_cents item.product.membership_type.price
52
+ .membership-message
53
+ .center{:style => 'text-align:center'}
54
+ =icon_tag "18-envelope@2x", {:align => "center"}
55
+ .center{:style => 'text-align:center'}
56
+ %h4 Thanks for becoming a member!
57
+ .message
58
+ We've sent an email to
59
+ %b=@order.person.email
60
+ and that email includes instructions to setup your login and password so you can access our exclusive member site. Purchase member tickets, find exclusive member events, update your address, and more!
52
61
 
53
62
  -unless @order.donations.empty?
54
63
  %h4 Donations
data/config/routes.rb CHANGED
@@ -32,7 +32,10 @@ Rails.application.routes.draw do
32
32
  namespace :store do
33
33
  resources :events, :only => :show, :as => :old_storefront_event
34
34
  resources :shows, :only => :show
35
- resource :checkout, :only => :create
35
+ # resource :checkout, :only => :create
36
+ resource :checkout, :only => :create do
37
+ get "dook", :to => "checkouts#dook"
38
+ end
36
39
  end
37
40
 
38
41
  devise_for :members, :controllers => { :invitations => "members/invitations" }
@@ -1,3 +1,3 @@
1
1
  module ArtfullyOse
2
- VERSION = "1.2.0.pre.8"
2
+ VERSION = "1.2.0.pre.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artfully_ose
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.pre.8
4
+ version: 1.2.0.pre.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artful.ly