rails_admin_ui_index_cards 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cf34c00027aada7cd9a56e0e1e6b0dc7ef7fa08
4
- data.tar.gz: 895cfe432516b33af698df0a6e76574396221ebd
3
+ metadata.gz: 79b50dd46ed9372661c935150c8e5eda84bd5d66
4
+ data.tar.gz: c42c6e126b97599bf599ef1c55113fcdb268e28d
5
5
  SHA512:
6
- metadata.gz: b7452ec004ee478d9404263363a92d84d2d0a091fa412fe8a5c0654ea9c6d7b5fb0235dcf28acd080a2e1179613d80af54aaaf813134e2aa32a55bfe55e9073b
7
- data.tar.gz: 200f0f880cc70bea81155b6accd5beef8fe89bbf02dca9cbc8b05c311ab154ee024cc71036dda2c2ee6c03699aea6971d2383747bce94b8547ae4b26da1a33f5
6
+ metadata.gz: 9db174c49ec2cb21335dcbea988e1dcc9c3cded918763c0bcdc5747c40ebf26a56d586ce49e8f03aeacf03ba1a305f8c2319725560f2e027c9ae6f6fc73a3bbe
7
+ data.tar.gz: 401862e86e8a7856638f79ad2c132688069960888c5b2d07efc188262448345ddefca35fcf15516706519150c96f5f4b2eafbddb8fe5cd6de8a15ef4085a30ba
@@ -20,20 +20,28 @@
20
20
  = "#list td.#{property.css_class} { max-width: #{property.column_width}px; }"
21
21
  #list
22
22
  .well.well-sm
23
- - if filterable_fields.present?
23
+ - if filterable_fields.present? || !@model_config.list.scopes.empty?
24
24
  .dropdown.pull-right{style: "margin-left:0.5em"}
25
25
  %button.btn.btn-primary.dropdown-toggle#dropdownFilters{type: "button", :"data-toggle" => "dropdown", :"aria-haspopup" => "true", :"aria-expanded" => "true"}
26
26
  = t('admin.misc.add_filter')
27
27
  %b.caret
28
28
  %ul.dropdown-menu#filters{:"aria-labelledby" => "dropdownFilters"}
29
- - filterable_fields.each do |field|
30
- - field_options = case field.type
31
- - when :enum
32
- - options_for_select(field.with(object: @abstract_model.model.new).enum)
33
- - else
34
- - ''
29
+ - if filterable_fields.present?
30
+ - filterable_fields.each do |field|
31
+ - field_options = case field.type
32
+ - when :enum
33
+ - options_for_select(field.with(object: @abstract_model.model.new).enum)
34
+ - else
35
+ - ''
36
+ %li
37
+ %a{href: '#', :"data-field-label" => field.label, :"data-field-name" => field.name, :"data-field-options" => field_options.html_safe, :"data-field-type" => field.type, :"data-field-value" => "", :"data-field-datetimepicker-format" => (field.try(:parser) && field.parser.to_momentjs)}= capitalize_first_letter(field.label)
38
+ - if !@model_config.list.scopes.empty?
35
39
  %li
36
- %a{href: '#', :"data-field-label" => field.label, :"data-field-name" => field.name, :"data-field-options" => field_options.html_safe, :"data-field-type" => field.type, :"data-field-value" => "", :"data-field-datetimepicker-format" => (field.try(:parser) && field.parser.to_momentjs)}= capitalize_first_letter(field.label)
40
+ %a{href: '#'}= "--"
41
+ - @model_config.list.scopes.each_with_index do |scope, index|
42
+ - scope = '_all' if scope.nil?
43
+ %li{class: "#{'active' if scope.to_s == params[:scope] || (params[:scope].blank? && index == 0)}"}
44
+ %a{href: index_path(params.merge(scope: scope, page: nil)), class: 'pjax'}= I18n.t("admin.scopes.#{@abstract_model.to_param}.#{scope}", default: I18n.t("admin.scopes.#{scope}", default: scope.to_s.titleize))
37
45
 
38
46
  .dropdown.pull-right{style: "margin-left:0.5em"}
39
47
  %button.btn.btn-primary.dropdown-toggle#dropdownOrder{type: "button", :"data-toggle" => "dropdown", :"aria-haspopup" => "true", :"aria-expanded" => "true"}
@@ -50,21 +58,11 @@
50
58
  %span{class: "fa fa-#{sort_direction}"}
51
59
  = capitalize_first_letter(property.label)
52
60
 
53
- - unless @model_config.list.scopes.empty?
54
- .dropdown.pull-right{style: "margin-left:0.5em"}
55
- %button.btn.btn-primary.dropdown-toggle#dropdownScopes{type: "button", :"data-toggle" => "dropdown", :"aria-haspopup" => "true", :"aria-expanded" => "true"}
56
- = t('admin.misc.scopes')
57
- %b.caret
58
- %ul.dropdown-menu{:"aria-labelledby" => "dropdownScopes"}
59
- - @model_config.list.scopes.each_with_index do |scope, index|
60
- - scope = '_all' if scope.nil?
61
- %li{class: "#{'active' if scope.to_s == params[:scope] || (params[:scope].blank? && index == 0)}"}
62
- %a{href: index_path(params.merge(scope: scope, page: nil)), class: 'pjax'}= I18n.t("admin.scopes.#{@abstract_model.to_param}.#{scope}", default: I18n.t("admin.scopes.#{scope}", default: scope.to_s.titleize))
63
-
64
- - if export_action
65
- .pull-right{style: "margin-left:0.5em"}
66
- %a.btn.btn-primary{href: export_path(params.except('set').except('page'))}
67
- = t("admin.export.found")
61
+ -# Secondo me non serve perchè abbiamo già diversi export
62
+ -# - if export_action
63
+ -# .pull-right{style: "margin-left:0.5em"}
64
+ -# %a.btn.btn-primary{href: export_path(params.except('set').except('page'))}
65
+ -# = t("admin.export.found")
68
66
 
69
67
  -unless @objects.blank?
70
68
  .pull-right{style: "margin-left:0.5em"}
@@ -1,8 +1,20 @@
1
1
  it:
2
2
  admin:
3
+ actions:
4
+ new:
5
+ menu: ""
6
+ index:
7
+ menu: ""
8
+ export:
9
+ menu: ""
3
10
  export:
4
- found: Esporta trovati
11
+ found:
5
12
  misc:
6
- order_by: Ordina per
13
+ order_by:
14
+ scopes: ⋔
15
+ add_filter: ⋔
16
+ add_new: ⋔
17
+ refresh: ""
18
+ bulk_menu_title: ☰✔
7
19
  select:
8
- toggle: Inverti Selezione
20
+ toggle:
@@ -1,3 +1,3 @@
1
1
  module RailsAdminUiIndexCards
2
- VERSION = '1.1.6'.freeze
2
+ VERSION = '1.1.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_ui_index_cards
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-28 00:00:00.000000000 Z
11
+ date: 2018-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore