bootbox_crud 0.1.1.3 → 0.1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootbox_crud/version.rb +1 -1
- data/lib/templates/haml/scaffold/index.html.haml +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2151d8412c22e57b5db6843096a39f506488ee2e
|
4
|
+
data.tar.gz: acf811760e07a07c9412785c43f2ee79b00f4420
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e85e6b4f5dca7a58ff176156ead11422f59ff16134aa5ee9332fa839a3ba20340c585c9e3530a5d74d80ed6d61ee1328fb0690dc546deb906e941e54600f7516
|
7
|
+
data.tar.gz: 4f55f8e0c2551fb184ffbb51e60cf2b24f588f2f0306140dcab533e4b5233f4f25e994d72aae14151da8835270b6c65d3eabc20fb56e8710361451b6cf9d950b
|
data/lib/bootbox_crud/version.rb
CHANGED
@@ -28,10 +28,10 @@
|
|
28
28
|
<% if has_name -%>
|
29
29
|
%td
|
30
30
|
= <%= singular_table_name %>.id
|
31
|
-
%td{data:{value: <%= singular_table_name %>.name.gsub(' ', '').downcase, entity: '<%=
|
31
|
+
%td{data:{value: <%= singular_table_name %>.name.gsub(' ', '').downcase, entity: '<%= class_name %>', action: 'show', id: (<%= singular_table_name %>.id) }}
|
32
32
|
= link_to <%= singular_table_name %>.name, '#'
|
33
33
|
<% else -%>
|
34
|
-
%td{data:{ entity: '<%=
|
34
|
+
%td{data:{ entity: '<%= class_name %>', action: 'show', id: (<%= singular_table_name %>.id) }}
|
35
35
|
= link_to <%= singular_table_name %>.id, '#'
|
36
36
|
<% end -%>
|
37
37
|
|
@@ -40,12 +40,12 @@
|
|
40
40
|
%td= <%= singular_table_name %>.<%= attribute.name %>
|
41
41
|
<% end -%>
|
42
42
|
%td
|
43
|
-
= link_to '#', :class => 'btn-sm btn-primary', data: { entity: '<%=
|
43
|
+
= link_to '#', :class => 'btn-sm btn-primary', data: { entity: '<%= class_name %>', action: 'update', id: (<%= singular_table_name %>.id) } do
|
44
44
|
%i.fa.fa-edit
|
45
45
|
EDIT
|
46
46
|
|
47
47
|
%hr
|
48
48
|
%p
|
49
|
-
= link_to '#', :class => 'btn btn-success', data: { entity: '<%=
|
49
|
+
= link_to '#', :class => 'btn btn-success', data: { entity: '<%= class_name %>', action: 'create' } do
|
50
50
|
%i.fa.fa-plus
|
51
51
|
= 'New <%= human_name %>'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootbox_crud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jiri Kaipr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|