card-mod-edit 0.15.0 → 0.15.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: 055b0cbfc76d23e42345ac1187464ca24401146037e9b36efabb5a39a3ec731d
|
4
|
+
data.tar.gz: ddb1bc6b588eb9026b16f52cbd87a0591949f776c1c0e90c0793c4fbb925f2aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65077e95489a26b24249796b083a90168b90d7363e9b412b5c34850d3a999237c0db064ababceaff9d3d21543ec22f3e8c639dc87d336ccc6b67b81f084abc18
|
7
|
+
data.tar.gz: b04ce841a614fa8cbf2c8fc576f55b24b721c4d82d53931115564e91d55c58b1841351881d5d9c457411002863af054417caffcc129445a020aa44c249df1709
|
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
|
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
|
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
|
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
|
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
|
57
57
|
description: ''
|
58
58
|
email:
|
59
59
|
- info@decko.org
|