rails_admin_json_editor 0.0.18 → 0.0.19

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
  SHA1:
3
- metadata.gz: 07a12c5089bf7d16c8178f1c1302dbccca2c64ad
4
- data.tar.gz: 6e8a935be6d1234be01ffdbeebe6bbc18ae4c513
3
+ metadata.gz: 7c83e336e73252f427077c5f2a469e580003dd18
4
+ data.tar.gz: 0a0e5baabf61d5057e5855e073224f75ce64b3f5
5
5
  SHA512:
6
- metadata.gz: d3cfc1680e7b42fcf8d3e25179507ff68abdb48b28a8ec7766aa19faa7913d0da6d4e17fe2ee64b23936ab10d6fb19eb39571169e55645cbf5997c44149f8c83
7
- data.tar.gz: f46fa9d16577223961a91d78ec4d5b70917c6dbced8d2d512ca6f21b955af3d58fc416016195bb5c52c1c30074fd3f3df571546dfe44996ecd25233fb692445f
6
+ metadata.gz: d11b349eeb13fd1da5f35167fe11f5781ab9d64198f40256ebd1149b491152c7d63217cf3e238900d0ace730617226c6c950a6180ec0b318bd544f9beb74e331
7
+ data.tar.gz: b893108e61ff91d03c593e45aa3964798ceaa6a3f1f06cf1ef346e2fc6235ec0a061f3a18c32d98fc6d6315ae60fa2828eb0f9ba26d6a055a9065045c50c2f8f
@@ -80,10 +80,6 @@ $(document).on('rails_admin.dom_ready', function() {
80
80
  properties: {}
81
81
  };
82
82
 
83
- if(enableGuids) {
84
- obj.guid = guid();
85
- }
86
-
87
83
  clonedproperties[target].push(obj);
88
84
  this.parentComponents[this.parentIndex].properties = clonedproperties;
89
85
  },
@@ -27,4 +27,12 @@ body.rails_admin .form-horizontal.denser .json-editor {
27
27
  padding: 10px;
28
28
  border-radius:5px;
29
29
  }
30
+
31
+ .guid {
32
+ display: inline-block;
33
+ background: #e9e9e9;
34
+ padding: 0.2em 0.5em;
35
+ margin-top: 5px;
36
+ margin-bottom: 0;
37
+ }
30
38
  }
@@ -12,7 +12,6 @@
12
12
  <div class="component">
13
13
  <legend>
14
14
  <%= model.label %>
15
- {{ component.guid ? ' - ' + component.guid : null }}
16
15
 
17
16
  <div class="btn-group btn-group-sm pull-right">
18
17
  <% if field.orderable %>
@@ -38,6 +37,13 @@
38
37
  <div v-show="expanded">
39
38
  <%= content_tag :p, model.help, class: "help-block" unless model.help.nil? %>
40
39
 
40
+ <div v-if="component.guid" class="control-group row">
41
+ <label class="col-sm-2 control-label">Identifier</label>
42
+ <div class="col-sm-10">
43
+ <pre class="guid" v-text="component.model_name + ' - ' + component.guid"></pre>
44
+ </div>
45
+ </div>
46
+
41
47
  <% model.fields.each do |f| %>
42
48
  <div class="control-group row <%= f.css_class %>">
43
49
  <label class="col-sm-2 control-label"><%= f.label %></label>
@@ -1,3 +1,3 @@
1
1
  module RailsAdminJsonEditor
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_json_editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jasper Haggenburg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-30 00:00:00.000000000 Z
11
+ date: 2015-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler