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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38c2e6fc54bba620d514ac8e2735a1016dc1f7d7675ce513c5562a7243fc2ba3
4
- data.tar.gz: b5786c72f152f9f6264a617884c26900493819c33ffefd304a009f831efe2df6
3
+ metadata.gz: a1fd925a86ff13a3822f2e3dfc41845ededd3ab561c9416930ec2ec64411cd4e
4
+ data.tar.gz: de1912a4a53ca6c5b0fd9bdb8dc3d4e2c3b1211cba41f75e5fd10ebabe5f0bb9
5
5
  SHA512:
6
- metadata.gz: 073b846d4fe8f4ef5e3f3dcbced8a87be8e7d16f7589706999a5d8350be334ab644f16be8d68523c1e0cfcfc897aa27849da24260cf65cbed82af827f3e24c64
7
- data.tar.gz: 51a3dd30de836dfe12bea35b0ad8caaa2f0d6eadec7b66796de54a91c2a026206710f2e62ee662c5b037fc4bdafdbb26ab89a29625a5e7c354f9eb0f96e1e435
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
- console.log(object_type);
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
- hash_for_site_path(:id => device_role).merge(:auth_object => device_role, :authorizer => authorizer),
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',
@@ -10,7 +10,7 @@
10
10
  :class => 'btn btn-warning'
11
11
  ),
12
12
  display_fake_delete_if_authorized(
13
- hash_for_site_path(id: @device_role),
13
+ hash_for_device_role_path(id: @device_role),
14
14
  class: 'btn btn-danger',
15
15
  id: 'init-modal',
16
16
  href: '#',
@@ -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
- hash_for_site_path(:id => device_type).merge(:auth_object => device_type, :authorizer => authorizer),
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',
@@ -10,7 +10,7 @@
10
10
  :class => 'btn btn-warning'
11
11
  ),
12
12
  display_fake_delete_if_authorized(
13
- hash_for_site_path(id: @device_type),
13
+ hash_for_device_type_path(id: @device_type),
14
14
  class: 'btn btn-danger',
15
15
  id: 'init-modal',
16
16
  href: '#',
@@ -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
- hash_for_site_path(:id => device).merge(:auth_object => device, :authorizer => authorizer),
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
- hash_for_site_path(:id => manufacturer).merge(:auth_object => manufacturer, :authorizer => authorizer),
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',
@@ -10,7 +10,7 @@
10
10
  :class => 'btn btn-warning'
11
11
  ),
12
12
  display_fake_delete_if_authorized(
13
- hash_for_site_path(id: @manufacturer),
13
+ hash_for_manufacturer_path(id: @manufacturer),
14
14
  class: 'btn btn-danger',
15
15
  id: 'init-modal',
16
16
  href: '#',
@@ -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
- hash_for_site_path(:id => platform).merge(:auth_object => platform, :authorizer => authorizer),
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',
@@ -10,7 +10,7 @@
10
10
  :class => 'btn btn-warning'
11
11
  ),
12
12
  display_fake_delete_if_authorized(
13
- hash_for_site_path(id: @platform),
13
+ hash_for_platform_path(id: @platform),
14
14
  class: 'btn btn-danger',
15
15
  id: 'init-modal',
16
16
  href: '#',
@@ -1,3 +1,3 @@
1
1
  module ForemanDatacenter
2
- VERSION = '1.16.6'.freeze
2
+ VERSION = '1.16.7'.freeze
3
3
  end
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.6
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 00:00:00.000000000 Z
12
+ date: 2019-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: prawn