tramway-admin 1.20.2.4 → 1.20.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/assets/javascripts/tramway/admin/application.js.coffee +2 -0
- data/app/assets/stylesheets/tramway/admin/application.sass +4 -0
- data/app/helpers/tramway/admin/application_helper.rb +1 -0
- data/app/views/tramway/admin/records/_list.html.haml +3 -2
- data/app/views/tramway/admin/shared/show/_attribute_tr.html.haml +1 -1
- data/lib/tramway/admin/version.rb +1 -1
- metadata +16 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb01a97126046445dc8cad97bf599ccfba88834d79fcc81f3d4fb9c69dfb88c2
|
4
|
+
data.tar.gz: a721e3e880cb80a0aa1f4de92ec69a0700acabe37a9d9079c48d192066422850
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8814ec26d243b314ebe174098446905ebaaf95c1c4cf334f537e4edb14449fd3edbc78568a2e1a168d9121cbed29122d2037379306cc85698b25b25447f3188c
|
7
|
+
data.tar.gz: 5900f6be25d35c92632a22a55ba83fc19c71365da52508f7443a3f9cf1f82920874e1f5571e7d2f8fcb016a34f7f0635ac5c6ea39e531841e15e37a22f9937ab
|
data/README.md
CHANGED
@@ -19,11 +19,12 @@
|
|
19
19
|
= record.send attribute
|
20
20
|
%td.actions
|
21
21
|
= link_to fa_icon('pencil-alt'), edit_current_model_record_path(record.id), class: 'btn btn-warning btn-xs'
|
22
|
-
=
|
22
|
+
= delete_button url: current_model_record_path(record.id), form_options: { class: :smart_button }, button_options: { class: 'btn btn-xs btn-danger' } do
|
23
|
+
= fa_icon 'trash-alt'
|
23
24
|
%br
|
24
25
|
%br
|
25
26
|
.btn-group{ data: { toggle: :buttons } }
|
26
27
|
- record.model.class.state_machines.keys.each do |state_method|
|
27
28
|
- unless state_method == :state
|
28
|
-
= state_events_buttons record, state_method: state_method, model_param_name: :record,
|
29
|
+
= state_events_buttons record, state_method: state_method, model_param_name: :record, controller: 'tramway/admin/records', action: :update, parameters: { redirect: current_model_records_path(page: params[:page], scope: params[:scope], focus: focus_selector(index)), model: record.class.model_name }, button_options: { class: :smart_button }
|
29
30
|
= paginate @records, theme: 'twitter-bootstrap-4'
|
@@ -5,4 +5,4 @@
|
|
5
5
|
= value
|
6
6
|
%td
|
7
7
|
- if attribute_name.to_s != 'state' && object.model.class.state_machines.keys.include?(attribute_name.to_sym)
|
8
|
-
= state_events_buttons object, state_method: attribute_name, model_param_name: :record,
|
8
|
+
= state_events_buttons object, state_method: attribute_name, model_param_name: :record, controller: 'tramway/admin/records', action: :update, parameters: { model: object.class.model_name }, button_options: { class: :smart_button }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.20.
|
4
|
+
version: 1.20.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
@@ -118,20 +118,28 @@ dependencies:
|
|
118
118
|
requirements:
|
119
119
|
- - ">="
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version: 0
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: 0.4.1
|
121
|
+
version: '1.0'
|
125
122
|
type: :runtime
|
126
123
|
prerelease: false
|
127
124
|
version_requirements: !ruby/object:Gem::Requirement
|
128
125
|
requirements:
|
129
126
|
- - ">="
|
130
127
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0
|
132
|
-
|
128
|
+
version: '1.0'
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: smart_buttons
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '1.0'
|
136
|
+
type: :runtime
|
137
|
+
prerelease: false
|
138
|
+
version_requirements: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
133
141
|
- !ruby/object:Gem::Version
|
134
|
-
version: 0
|
142
|
+
version: '1.0'
|
135
143
|
description: Engine for admin
|
136
144
|
email:
|
137
145
|
- kalashnikovisme@gmail.com
|