foreman_datacenter 1.16.6 → 1.16.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_datacenter/modal.js +2 -1
- data/app/views/foreman_datacenter/device_roles/index.html.erb +1 -1
- data/app/views/foreman_datacenter/device_roles/show.html.erb +1 -1
- data/app/views/foreman_datacenter/device_types/index.html.erb +1 -1
- data/app/views/foreman_datacenter/device_types/show.html.erb +1 -1
- data/app/views/foreman_datacenter/devices/index.html.erb +1 -1
- data/app/views/foreman_datacenter/manufacturers/index.html.erb +1 -1
- data/app/views/foreman_datacenter/manufacturers/show.html.erb +1 -1
- data/app/views/foreman_datacenter/platforms/index.html.erb +1 -1
- data/app/views/foreman_datacenter/platforms/show.html.erb +1 -1
- data/lib/foreman_datacenter/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: a1fd925a86ff13a3822f2e3dfc41845ededd3ab561c9416930ec2ec64411cd4e
|
4
|
+
data.tar.gz: de1912a4a53ca6c5b0fd9bdb8dc3d4e2c3b1211cba41f75e5fd10ebabe5f0bb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07eacefff58dd7fe1b1e39733c5216694ba442de16ad786a195669f6fc21e8cbbc183d5388a307d0074c06d06983df2262d114c3ac9700db466ad95bd9854d50
|
7
|
+
data.tar.gz: 93af2f70d018208a1fb380c1d328654f6601e6a5a21334065f899987a19102e87c37d006dd0a023f782b6b453c539a94f655290a36941b9fd3a41941897b4d3c
|
@@ -8,7 +8,7 @@ $(window).click(function(event) {
|
|
8
8
|
var pathname = window.location.pathname; // Returns path only
|
9
9
|
var str = "/" + object_id;
|
10
10
|
var patt = new RegExp(str);
|
11
|
-
|
11
|
+
var token = $('meta[name="csrf-token"]').attr('content');
|
12
12
|
if (object_type == 'device') {
|
13
13
|
var checkbox_label = 'Delete associated host ONLY and keep current device as UNASSIGNED!'
|
14
14
|
} else {
|
@@ -39,6 +39,7 @@ $(window).click(function(event) {
|
|
39
39
|
</p> \
|
40
40
|
<form class="modal-form nonpaddingbottom" action=' + pathname + ' accept-charset="UTF-8" method="post"> \
|
41
41
|
<input type="hidden" name="_method" value="delete"> \
|
42
|
+
<input type="hidden" name="authenticity_token" value=' + token + '> \
|
42
43
|
<input type="checkbox" name="object_only" id="object_only" value="true" checked="checked"> \
|
43
44
|
<label>' + checkbox_label + '</label> \
|
44
45
|
<input type="submit" name="commit" value="I understand the consequences, delete this ' + object_type + '" class="btn btn-block btn-danger modal-btn modal-btn-danger"> \
|
@@ -28,7 +28,7 @@
|
|
28
28
|
hash_for_edit_device_role_path(:id => device_role).merge(:auth_object => device_role, :authorizer => authorizer)
|
29
29
|
),
|
30
30
|
display_fake_delete_if_authorized(
|
31
|
-
|
31
|
+
hash_for_device_role_path(:id => device_role).merge(:auth_object => device_role, :authorizer => authorizer),
|
32
32
|
id: 'init-modal',
|
33
33
|
href: '#',
|
34
34
|
data: { objecttype: 'device_role',
|
@@ -34,7 +34,7 @@
|
|
34
34
|
hash_for_edit_device_type_path(:id => device_type).merge(:auth_object => device_type, :authorizer => authorizer)
|
35
35
|
),
|
36
36
|
display_fake_delete_if_authorized(
|
37
|
-
|
37
|
+
hash_for_device_type_path(:id => device_type).merge(:auth_object => device_type, :authorizer => authorizer),
|
38
38
|
id: 'init-modal',
|
39
39
|
href: '#',
|
40
40
|
data: { objecttype: 'device_type',
|
@@ -55,7 +55,7 @@
|
|
55
55
|
hash_for_edit_device_path(:id => device).merge(:auth_object => device, :authorizer => authorizer)
|
56
56
|
),
|
57
57
|
display_fake_delete_if_authorized(
|
58
|
-
|
58
|
+
hash_for_device_path(:id => device).merge(:auth_object => device, :authorizer => authorizer),
|
59
59
|
id: 'init-modal',
|
60
60
|
href: '#',
|
61
61
|
data: { objecttype: 'device',
|
@@ -30,7 +30,7 @@
|
|
30
30
|
hash_for_edit_manufacturer_path(:id => manufacturer).merge(:auth_object => manufacturer, :authorizer => authorizer)
|
31
31
|
),
|
32
32
|
display_fake_delete_if_authorized(
|
33
|
-
|
33
|
+
hash_for_manufacturer_path(:id => manufacturer).merge(:auth_object => manufacturer, :authorizer => authorizer),
|
34
34
|
id: 'init-modal',
|
35
35
|
href: '#',
|
36
36
|
data: { objecttype: 'manufacturer',
|
@@ -28,7 +28,7 @@
|
|
28
28
|
hash_for_edit_platform_path(:id => platform).merge(:auth_object => platform, :authorizer => authorizer)
|
29
29
|
),
|
30
30
|
display_fake_delete_if_authorized(
|
31
|
-
|
31
|
+
hash_for_platform_path(:id => platform).merge(:auth_object => platform, :authorizer => authorizer),
|
32
32
|
id: 'init-modal',
|
33
33
|
href: '#',
|
34
34
|
data: { objecttype: 'platform',
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_datacenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.16.
|
4
|
+
version: 1.16.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Ivanov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-06-
|
12
|
+
date: 2019-06-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: prawn
|