effective_products 0.0.9 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/concerns/effective_products_stamp_wizard.rb +1 -1
- data/app/models/effective/stamp.rb +1 -1
- data/app/views/effective/ring_wizards/_content.html.haml +2 -2
- data/app/views/effective/stamp_wizards/_content.html.haml +2 -2
- data/app/views/effective/stamp_wizards/_dashboard.html.haml +10 -8
- data/app/views/effective/stamp_wizards/start.html.haml +1 -1
- data/lib/effective_products/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b681cf76ca311d502dc874d3b630cbdabe95b9639cb78c0db08690af645caf5c
|
4
|
+
data.tar.gz: a582bd6f989dd4bc92d652e1879a59f35e8957c39dc0ef1532fe29b9b98c13a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b484f3e0fe7f2593fa3e8ea8c276d9b7de9c3301499d9d5832d01e379026de71f49f058ef1e2cc950d8eece9a94ce7b5b9b58f917290ae9a34fab2e2f14bdc34
|
7
|
+
data.tar.gz: '0785f496513f883c981897960a0a7a0a108c60daa3138e02fa5408e01247852066988be3076a8eff595769fd0acda3eb207c00b5dcbefa038a67a1745631137a'
|
@@ -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
|
|
@@ -1,27 +1,29 @@
|
|
1
|
-
-# In progress
|
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
|
6
|
+
%h2 In Progress Stamp Requests
|
7
7
|
|
8
|
-
%p Your
|
8
|
+
%p Your request for Professional Stamp is incomplete
|
9
9
|
|
10
10
|
%p
|
11
11
|
Please
|
12
|
-
= link_to("Continue
|
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
|
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
|
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
|
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 '
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2022-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|