tramway-admin 1.3.1 → 1.3.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92e33c7141ed033f22d5d70be6877e0ea59f40f069096fe430186225c1cf64e3
|
4
|
+
data.tar.gz: ecca3521c16b44a4bbf51eac1a10a81ca30f13ae9607a7e004e80de70089d7eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09ee5d37010a5b918b71c0bfe1641b10b7de3e925409b6bc8bbb23ce253c16e2f9b592887424225c48ef8b39ce32db63391bbc320ad1567fcb756d4df57c3064'
|
7
|
+
data.tar.gz: cc320b57afd212bbc95535c70cbc2b68eff56e807e7d5cc3ae63f07f91fa85133e9b872806d263c748f6aeb9ea19e9d808905765c0220a84165dcd90c3ed35e5
|
@@ -18,6 +18,6 @@
|
|
18
18
|
- tabs.each_with_index do |tab, index|
|
19
19
|
%li.nav-item
|
20
20
|
= link_to admin_index_path_of_model(model_class, tab), class: "#{active_tab(tab, index)} nav-link" do
|
21
|
-
|
21
|
+
!= tab_title(model_class, tab, @counts[tab], state_method)
|
22
22
|
%div{ id: (params[:search] ? :search : params[:scope]) }
|
23
23
|
= render 'list'
|
@@ -2,8 +2,8 @@
|
|
2
2
|
- form_object = instance_variable_get "@#{object}_form"
|
3
3
|
- case type
|
4
4
|
- when :default
|
5
|
-
= form.input property, input_html: { name: "#{object}[#{property}]", id: "#{object}_#{property}", value: (form_object.model.send(property) || value) }, selected: (form_object.model.send(property) || value)
|
5
|
+
= form.input property, input_html: { name: "#{object}[#{property}]", id: "#{object}_#{property}", value: (form_object.send(property) || form_object.model.send(property) || value) }, selected: (form_object.model.send(property) || value)
|
6
6
|
- when :association
|
7
|
-
= form.association property, input_html: { name: "#{object}[#{property}]", id: "#{object}_#{property}", value: (form_object.model.send("#{property}_id") || value) }, selected: (form_object.model.send("#{property}_id") || value)#, collection: property.to_s.camelize.constantize.active
|
7
|
+
= form.association property, input_html: { name: "#{object}[#{property}]", id: "#{object}_#{property}", value: (form_object.send(property) || form_object.model.send("#{property}_id") || value) }, selected: (form_object.model.send("#{property}_id") || value)#, collection: property.to_s.camelize.constantize.active
|
8
8
|
- else
|
9
|
-
= form.input property, as: type, input_html: { name: "#{object}[#{property}]", id: "#{object}_#{property}", value: (form_object.model.send(property) || value) }
|
9
|
+
= form.input property, as: type, input_html: { name: "#{object}[#{property}]", id: "#{object}_#{property}", value: (form_object.send(property) || form_object.model.send(property) || value) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap-kaminari-views
|