effective_products 0.0.9 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33912b031a749bc69286e6d5d04a85a67c930237b426389f0fbe890a05707e18
4
- data.tar.gz: f2ab6eaf54d5c407ab891370ceaec1d1d25d659730e12c5dd2ad9b5fb3ac7ae8
3
+ metadata.gz: b681cf76ca311d502dc874d3b630cbdabe95b9639cb78c0db08690af645caf5c
4
+ data.tar.gz: a582bd6f989dd4bc92d652e1879a59f35e8957c39dc0ef1532fe29b9b98c13a3
5
5
  SHA512:
6
- metadata.gz: 8a258133393608311a4044c421905b90e511af529ba465ba59173482722e01c63d06958434b7ee2d038a955c26205825fbb2b994e23460503ac61545a2e330c2
7
- data.tar.gz: 1a6ba5a8f9de60dab801d4c5eb7ad871d3a00e0fe9cc58b25fa751d25c6b2a154ca2eb2880c8dc566556aabe183a15737fccd64905e34a1087bb0b066414d9d2
6
+ metadata.gz: b484f3e0fe7f2593fa3e8ea8c276d9b7de9c3301499d9d5832d01e379026de71f49f058ef1e2cc950d8eece9a94ce7b5b9b58f917290ae9a34fab2e2f14bdc34
7
+ data.tar.gz: '0785f496513f883c981897960a0a7a0a108c60daa3138e02fa5408e01247852066988be3076a8eff595769fd0acda3eb207c00b5dcbefa038a67a1745631137a'
@@ -93,7 +93,7 @@ module EffectiveProductsStampWizard
93
93
 
94
94
  # Instance Methods
95
95
  def to_s
96
- 'stamp payment'
96
+ 'stamp request'
97
97
  end
98
98
 
99
99
  def in_progress?
@@ -86,7 +86,7 @@ module Effective
86
86
  # Called by an application when submitted
87
87
  # Called by a stamp wizard when submitted
88
88
  def submit!
89
- raise('expected a purchased order') unless purchased?
89
+ raise('expected a purchased order') unless (purchased? || applicant&.submit_order&.purchased?)
90
90
  submitted!
91
91
  end
92
92
 
@@ -3,8 +3,8 @@
3
3
 
4
4
  - if all_steps_content.present?
5
5
  .card.mb-4
6
- .card-body= all_steps_content
6
+ .card-body= all_steps_content.to_s
7
7
 
8
8
  - if step_content.present?
9
9
  .card.mb-4
10
- .card-body= step_content
10
+ .card-body= step_content.to_s
@@ -3,8 +3,8 @@
3
3
 
4
4
  - if all_steps_content.present?
5
5
  .card.mb-4
6
- .card-body= all_steps_content
6
+ .card-body= all_steps_content.to_s
7
7
 
8
8
  - if step_content.present?
9
9
  .card.mb-4
10
- .card-body= step_content
10
+ .card-body= step_content.to_s
@@ -1,27 +1,29 @@
1
- -# In progress payments
1
+ -# In progress
2
2
  - existing = EffectiveProducts.StampWizard.in_progress.for(current_user).first
3
3
  - datatable = EffectiveResources.best('EffectiveStampWizardsDatatable').new(self, namespace: :effective)
4
4
 
5
5
  - if existing.present?
6
- %h2 In Progress Stamp Payments
6
+ %h2 In Progress Stamp Requests
7
7
 
8
- %p Your payment for Professional Stamp is incomplete
8
+ %p Your request for Professional Stamp is incomplete
9
9
 
10
10
  %p
11
11
  Please
12
- = link_to("Continue payment for #{existing}", effective_products.stamp_wizard_build_path(existing, existing.next_step), 'data-turbolinks' => false, class: 'btn btn-primary')
12
+ = link_to("Continue #{existing}", effective_products.stamp_wizard_build_path(existing, existing.next_step), 'data-turbolinks' => false, class: 'btn btn-primary')
13
13
  or you can
14
- = link_to('Abandon payment', effective_products.stamp_wizard_path(existing), 'data-confirm': "Really delete #{existing}?", 'data-method': :delete, class: 'btn btn-danger')
14
+ = link_to('Abandon', effective_products.stamp_wizard_path(existing), 'data-confirm': "Really delete #{existing}?", 'data-method': :delete, class: 'btn btn-danger')
15
15
  to start over.
16
16
 
17
17
  %hr
18
18
 
19
- %h2 Stamp Payments
19
+ %h2 Stamp Replacement Requests
20
+
21
+ = yield
20
22
 
21
23
  - if datatable.present?
22
24
  = render_simple_datatable(datatable)
23
25
  - else
24
- %p You have no past stamp payments. When you do, we'll show them here.
26
+ %p You have no past professional stamp replacement requests. When you do, we'll show them here.
25
27
 
26
28
  - if existing.blank?
27
- %p= link_to 'Order a Professional Stamp', effective_products.new_stamp_wizard_path, class: 'btn btn-primary'
29
+ %p= link_to 'Start Stamp Replacement Request', effective_products.new_stamp_wizard_path, class: 'btn btn-primary'
@@ -5,7 +5,7 @@
5
5
  .card-body
6
6
  %p Welcome #{current_user}!
7
7
 
8
- %p You are about to purchase a Professional Stamp.
8
+ %p You are about to request a replacement Professional Stamp.
9
9
 
10
10
  = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
11
11
  = f.hidden_field :id
@@ -1,3 +1,3 @@
1
1
  module EffectiveProducts
2
- VERSION = '0.0.9'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_products
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-09 00:00:00.000000000 Z
11
+ date: 2022-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails