card-mod-edit 0.15.0 → 0.15.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/set/all/bridge.rb +22 -1
- data/set/all/edit_content.rb +1 -1
- data/set/all/new.rb +2 -2
- data/set/all/overlay_guide.haml +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14ca3e63260183651360806c1573e5cb7c0976d37718e17b3cddd6d8ae6c1507
|
4
|
+
data.tar.gz: b88f7f7fceea3d86c39b4c9eddc640c28122bdd0024a2e8cc21442ed6d16906f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4044f0b7fd87e52fc980ff54db2b224c275309c9aff5351853e15fea54a98d08416ba8185ffc80fe4d99a3ae4c8ef5956c7637a3145a3b32a5983842c48915fd
|
7
|
+
data.tar.gz: 0a46169f667972c861ae9ab3d8093dbbc890f66d9cbb2f8d7e88592db215d653d1d318fbcd57e9af2994d44bc853b4a1fa52fbb6f033bfffb87c838675400124
|
data/set/all/bridge.rb
CHANGED
@@ -11,7 +11,9 @@ format :html do
|
|
11
11
|
wrapper :bridge do
|
12
12
|
class_up "modal-dialog", "no-gaps"
|
13
13
|
voo.hide! :modal_footer
|
14
|
-
wrap_with_modal
|
14
|
+
wrap_with_modal(size: :full,
|
15
|
+
title: bridge_breadcrumbs,
|
16
|
+
menu: :bridge_menu) do
|
15
17
|
haml :bridge
|
16
18
|
end
|
17
19
|
end
|
@@ -45,6 +47,7 @@ format :html do
|
|
45
47
|
|
46
48
|
def bridge_link_opts opts={}
|
47
49
|
opts[:"data-slot-selector"] = bridge_slot_selector
|
50
|
+
opts[:"data-slotter-mode"] = :override
|
48
51
|
opts[:remote] = true
|
49
52
|
add_class opts, "slotter"
|
50
53
|
opts.bury :path, :layout, :overlay
|
@@ -65,4 +68,22 @@ format :html do
|
|
65
68
|
html_class ||= title.underscore
|
66
69
|
{ "data-breadcrumb": title, "data-breadcrumb-class": html_class }
|
67
70
|
end
|
71
|
+
|
72
|
+
def bridge_menu
|
73
|
+
wrap_with_modal_menu do
|
74
|
+
[
|
75
|
+
close_modal_window,
|
76
|
+
switch_to_edit_link
|
77
|
+
]
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def switch_to_edit_link
|
82
|
+
edit_link_opts = {
|
83
|
+
"data-slotter-mode": "modal-replace",
|
84
|
+
"data-modal-class": "modal-lg"
|
85
|
+
}
|
86
|
+
confirm_edit_loss(edit_link_opts)
|
87
|
+
link_to_view(:edit, menu_icon, edit_link_opts)
|
88
|
+
end
|
68
89
|
end
|
data/set/all/edit_content.rb
CHANGED
data/set/all/new.rb
CHANGED
@@ -181,7 +181,7 @@ format :html do
|
|
181
181
|
end
|
182
182
|
end
|
183
183
|
|
184
|
-
def standard_create_button
|
185
|
-
submit_button class: "submit-button create-submit-button"
|
184
|
+
def standard_create_button args={}
|
185
|
+
submit_button args.merge(class: "submit-button create-submit-button")
|
186
186
|
end
|
187
187
|
end
|
data/set/all/overlay_guide.haml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-edit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-03-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: card
|
@@ -18,42 +18,42 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.105.
|
21
|
+
version: 1.105.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.105.
|
28
|
+
version: 1.105.1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: card-mod-rules
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.15.
|
35
|
+
version: 0.15.1.1
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.15.
|
42
|
+
version: 0.15.1.1
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: card-mod-list
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.15.
|
49
|
+
version: 0.15.1.1
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.15.
|
56
|
+
version: 0.15.1.1
|
57
57
|
description: ''
|
58
58
|
email:
|
59
59
|
- info@decko.org
|