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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afce63912d505d4b4bc0ab869141825249708e5e28ada92bc52b4694ab326c8a
4
- data.tar.gz: 381d27bdb3d18ec10f272e696d33f147ed759693617fd2c27f4eb23cef38fcc5
3
+ metadata.gz: 055b0cbfc76d23e42345ac1187464ca24401146037e9b36efabb5a39a3ec731d
4
+ data.tar.gz: ddb1bc6b588eb9026b16f52cbd87a0591949f776c1c0e90c0793c4fbb925f2aa
5
5
  SHA512:
6
- metadata.gz: 40bca91d72c45a04ad34fa8c4601455552c1218ce964452f679faee3f8fa73d76f263a740c833c6683c4401d270b535ef87c33027b0d4745c8801a0b43472b00
7
- data.tar.gz: 452ed1ff6b62ffe356b753d92dce7ebb5a1270b2e47a79b8ffdbd61c6e3853eb6ef29696d4204e2713d67100389b800f09fc3e842b5889de8ff1a81f222f55c1
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 size: :full, title: bridge_breadcrumbs do
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
@@ -44,7 +44,7 @@ format :html do
44
44
 
45
45
  def edit_modal_menu
46
46
  wrap_with_modal_menu do
47
- [close_modal_window, render_bridge_link]
47
+ [close_modal_window, bridge_link(confirm: true)]
48
48
  end
49
49
  end
50
50
 
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
@@ -1,7 +1,7 @@
1
1
  %div
2
2
  .d-flex.ms-2
3
3
  .ms-auto
4
- = link_to fa_icon(:close), path: "#", "data-bs-dismiss": "overlay", class: "text-dark p-1 ms-1"
4
+ = link_to icon_tag(:close), path: "#", "data-bs-dismiss": "overlay", class: "text-dark p-1 ms-1"
5
5
 
6
6
  = guide
7
7
 
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.0
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-01-04 00:00:00.000000000 Z
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.0
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.0
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.0
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.0
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.0
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.0
56
+ version: 0.15.1
57
57
  description: ''
58
58
  email:
59
59
  - info@decko.org