thecore_ui_rails_admin 2.5.1 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/rails_admin/custom/theming.scss +1 -1
- data/app/assets/stylesheets/thecore_ui_rails_admin/thecore_rails_admin.scss +1 -81
- metadata +1 -6
- data/app/views/rails_admin.old/main/_card.html.haml +0 -18
- data/app/views/rails_admin.old/main/_dashboard_block.html.haml +0 -9
- data/app/views/rails_admin.old/main/_modal_interaction.html.erb +0 -53
- data/app/views/rails_admin.old/main/dashboard.html.haml +0 -28
- data/app/views/rails_admin.old/main/index.html.haml +0 -108
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d56abc0ad1a082f1c477523437ecb5590e7d6adc982705580671abe1844ff3ee
|
4
|
+
data.tar.gz: cc97cf07a201e1bae3e6a13ed68f9d7b1d1b2293fd1002f129087e6e72dbc586
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 490070007ec09e792a512232755af25bbbc8353fb09ee8dd40b89b02dab0f590838062394ac9e17aa3d829e506133b9a1c5519b28b7189022d6fa6eedaa77f12
|
7
|
+
data.tar.gz: 56ee296df7dc9dd50a532ccecc3903ea328f280a1f36adb395f46a7220a19c40c3d3dc8b4b6e2f2333a3a35611062718a3fed2a3851e770c46d5fa72734b9859
|
@@ -151,87 +151,7 @@ a.delete {
|
|
151
151
|
color: $text-highlight;
|
152
152
|
}
|
153
153
|
|
154
|
-
|
155
|
-
border-radius: 1em;
|
156
|
-
display: block;
|
157
|
-
padding: 15px;
|
158
|
-
margin-bottom: 30px;
|
159
|
-
border: 1px solid $element-border;
|
160
|
-
position: relative;
|
161
|
-
min-height: 15em;
|
162
|
-
transition: all 0.3s ease;
|
163
|
-
background-color: lighten($element, 25%);
|
164
|
-
color: $element-text;
|
165
|
-
overflow: hidden;
|
166
|
-
&:hover, &:focus {
|
167
|
-
border-color: $shadows;
|
168
|
-
.icon-bg {
|
169
|
-
transform: scale(1.5) rotate(20deg);
|
170
|
-
}
|
171
|
-
}
|
172
|
-
p {
|
173
|
-
min-height: 30px;
|
174
|
-
font-size: 15px;
|
175
|
-
font-weight: 600;
|
176
|
-
a.btn {
|
177
|
-
border-radius: 3px;
|
178
|
-
color: rgba($text-highlight,0.7) !important;
|
179
|
-
display: inline-block;
|
180
|
-
margin-bottom: 0;
|
181
|
-
font-weight: normal;
|
182
|
-
text-align: center;
|
183
|
-
vertical-align: middle;
|
184
|
-
cursor: pointer;
|
185
|
-
background-color: rgba($shadows, 0.19);
|
186
|
-
border: 1px solid transparent;
|
187
|
-
white-space: nowrap;
|
188
|
-
padding: 6px 12px;
|
189
|
-
font-size: 14px;
|
190
|
-
line-height: 1.42857143;
|
191
|
-
border-radius: 4px;
|
192
|
-
-webkit-user-select: none;
|
193
|
-
-moz-user-select: none;
|
194
|
-
-ms-user-select: none;
|
195
|
-
user-select: none;
|
196
|
-
}
|
197
|
-
}
|
198
|
-
strong.count {
|
199
|
-
font-size: 10em;
|
200
|
-
font-weight: 600;
|
201
|
-
}
|
202
|
-
p.model,
|
203
|
-
strong.count {
|
204
|
-
color: $element-text;
|
205
|
-
&:hover {
|
206
|
-
color: $element-text-highlight;
|
207
|
-
}
|
208
|
-
}
|
209
|
-
.icon-bg {
|
210
|
-
position: absolute;
|
211
|
-
right: 0;
|
212
|
-
bottom: 0;
|
213
|
-
font-size: 15em;
|
214
|
-
color: $element-text;
|
215
|
-
opacity: 0.20;
|
216
|
-
filter: alpha(opacity=20);
|
217
|
-
transition: all 1s ease;
|
218
|
-
}
|
219
|
-
&.bg-info {
|
220
|
-
background-color: $info;
|
221
|
-
}
|
222
|
-
&.bg-success {
|
223
|
-
background-color: $success;
|
224
|
-
}
|
225
|
-
&.bg-warning {
|
226
|
-
background-color: $warning;
|
227
|
-
}
|
228
|
-
&.bg-danger {
|
229
|
-
background-color: $danger;
|
230
|
-
}
|
231
|
-
&.bg-clear {
|
232
|
-
background-color: $neutral;
|
233
|
-
}
|
234
|
-
}
|
154
|
+
|
235
155
|
|
236
156
|
/* User sign in and sign forms. */
|
237
157
|
.border-form-div {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_ui_rails_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
@@ -170,11 +170,6 @@ files:
|
|
170
170
|
- app/views/layouts.old/rails_admin/_user_navigation.html.haml
|
171
171
|
- app/views/layouts.old/rails_admin/application.html.haml
|
172
172
|
- app/views/layouts.old/rails_admin/pjax.html.haml
|
173
|
-
- app/views/rails_admin.old/main/_card.html.haml
|
174
|
-
- app/views/rails_admin.old/main/_dashboard_block.html.haml
|
175
|
-
- app/views/rails_admin.old/main/_modal_interaction.html.erb
|
176
|
-
- app/views/rails_admin.old/main/dashboard.html.haml
|
177
|
-
- app/views/rails_admin.old/main/index.html.haml
|
178
173
|
- app/views/shared/_flash.html.erb
|
179
174
|
- config/initializers/rails_admin.rb
|
180
175
|
- config/initializers/thecore_concern.rb
|
@@ -1,18 +0,0 @@
|
|
1
|
-
%div.panel
|
2
|
-
%div.panel-heading
|
3
|
-
%ul.inline.list-inline.pull-right
|
4
|
-
= menu_for :member, @abstract_model, object, true
|
5
|
-
%h4.panel-title
|
6
|
-
= check_box_tag "bulk_ids[]", object.id, false, id: "bulk_ids_#{object.id}"
|
7
|
-
%a{:"data-toggle" => "collapse", href: "#object-id-#{object.id}"}
|
8
|
-
= (object.resume rescue false || object.display_name rescue false || object.title rescue false || object.name rescue false || object.code rescue false)
|
9
|
-
%b.caret
|
10
|
-
%div{id: "object-id-#{object.id}", class: "panel-collapse collapse"}
|
11
|
-
%div.panel-body
|
12
|
-
- properties.map{ |property| property.bind(:object, object) }.each do |property|
|
13
|
-
- key = capitalize_first_letter(property.label)
|
14
|
-
- value = property.pretty_value
|
15
|
-
%p.card-text{class: "#{property.css_class} #{property.type_css_class}", title: strip_tags(value.to_s)}
|
16
|
-
%strong
|
17
|
-
= key + ":"
|
18
|
-
= value
|
@@ -1,9 +0,0 @@
|
|
1
|
-
- @abstract_models.each do |abstract_model|
|
2
|
-
- index_path = index_path(model_name: abstract_model.to_param)
|
3
|
-
- if authorized?(:index, abstract_model)
|
4
|
-
.col-sm-4
|
5
|
-
%a.box.pjax{href: index_path}
|
6
|
-
%i{class: "icon-bg #{abstract_model.config.navigation_icon.present? ? abstract_model.config.navigation_icon : 'file' }"}
|
7
|
-
.text-center
|
8
|
-
%p.model= capitalize_first_letter(abstract_model.config.label_plural)
|
9
|
-
%strong.count= @count[abstract_model.model.name].to_s
|
@@ -1,53 +0,0 @@
|
|
1
|
-
<div id="modal-interaction" class="modal fade" tabindex="-1" role="dialog">
|
2
|
-
<div class="modal-dialog" role="document">
|
3
|
-
<div class="modal-content">
|
4
|
-
<div class="modal-header">
|
5
|
-
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
6
|
-
<span aria-hidden="true">×</span>
|
7
|
-
</button>
|
8
|
-
<h4 class="modal-title" id="modal-interaction-label"> </h4>
|
9
|
-
</div>
|
10
|
-
<div class="modal-body" id="modal-interaction-body">
|
11
|
-
|
12
|
-
</div>
|
13
|
-
<div class="modal-footer" id="modal-interaction-footer">
|
14
|
-
<button type="button" class="btn btn-default" data-dismiss="modal" id="modal-interaction-secondary"> </button>
|
15
|
-
<button type="button" class="btn btn-primary" id="modal-interaction-primary"> </button>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
<!-- /.modal-content -->
|
19
|
-
</div>
|
20
|
-
<!-- /.modal-dialog -->
|
21
|
-
</div>
|
22
|
-
<!-- /.modal -->
|
23
|
-
|
24
|
-
<script>
|
25
|
-
function openModal(title, message, buttonPrimary, buttonSecondary) {
|
26
|
-
$('#modal-interaction-label').html(title);
|
27
|
-
$('#modal-interaction-body').html(message);
|
28
|
-
if (buttonPrimary != null) {
|
29
|
-
$('#modal-interaction-primary').html(buttonPrimary.lbl);
|
30
|
-
$('#modal-interaction-primary').on('click', buttonPrimary.func);
|
31
|
-
$('#modal-interaction-primary').show();
|
32
|
-
}
|
33
|
-
if (buttonSecondary != null) {
|
34
|
-
$('#modal-interaction-secondary').html(buttonSecondary.lbl);
|
35
|
-
$('#modal-interaction-secondary').on('click', buttonSecondary.func);
|
36
|
-
$('#modal-interaction-secondary').show();
|
37
|
-
}
|
38
|
-
(buttonPrimary != null || buttonSecondary != null) ? $("#modal-interaction-footer").show() : $("#modal-interaction-footer").hide();
|
39
|
-
$('#modal-interaction').modal('show');
|
40
|
-
}
|
41
|
-
function closeModal() {
|
42
|
-
$('#modal-interaction').modal('hide');
|
43
|
-
$('#modal-interaction-label').html(" ");
|
44
|
-
$('#modal-interaction-body').html(" ");
|
45
|
-
$('#modal-interaction-primary').html(" ");
|
46
|
-
$('#modal-interaction-secondary').html(" ");
|
47
|
-
$('#modal-interaction-primary').hide();
|
48
|
-
$('#modal-interaction-secondary').hide();
|
49
|
-
$("#modal-interaction-footer").hide();
|
50
|
-
$('#modal-interaction-primary').off();
|
51
|
-
$('#modal-interaction-secondary').off();
|
52
|
-
}
|
53
|
-
</script>
|
@@ -1,28 +0,0 @@
|
|
1
|
-
= breadcrumb
|
2
|
-
- charts_high = []
|
3
|
-
- charts_medium = []
|
4
|
-
- self.methods.each do |m|
|
5
|
-
- charts_high << m if m.start_with? "charts_high_"
|
6
|
-
- charts_medium << m if m.start_with? "charts_medium_"
|
7
|
-
|
8
|
-
- charts_high.in_groups_of(2, false).each_with_index do |group, i|
|
9
|
-
.row
|
10
|
-
- group.each do |item|
|
11
|
-
.col-sm-6
|
12
|
-
.box= self.send(item)
|
13
|
-
|
14
|
-
- charts_medium.in_groups_of(3, false).each_with_index do |group, i|
|
15
|
-
.row
|
16
|
-
- group.each do |item|
|
17
|
-
.col-sm-4
|
18
|
-
.box= self.send(item)
|
19
|
-
|
20
|
-
- if @abstract_models
|
21
|
-
.row
|
22
|
-
= render partial: 'rails_admin/main/dashboard_block'
|
23
|
-
|
24
|
-
- if @auditing_adapter && authorized?(:history_index)
|
25
|
-
#block-tables.block
|
26
|
-
.content
|
27
|
-
%h2= t("admin.actions.history_index.menu")
|
28
|
-
= render partial: 'rails_admin/main/dashboard_history'
|
@@ -1,108 +0,0 @@
|
|
1
|
-
:ruby
|
2
|
-
query = params[:query]
|
3
|
-
params = request.params.except(:authenticity_token, :action, :controller, :utf8, :bulk_export, :_pjax)
|
4
|
-
params.delete(:query) if params[:query].blank?
|
5
|
-
params.delete(:sort_reverse) unless params[:sort_reverse] == 'true'
|
6
|
-
sort_reverse = params[:sort_reverse]
|
7
|
-
sort = params[:sort]
|
8
|
-
params.delete(:sort) if params[:sort] == @model_config.list.sort_by.to_s
|
9
|
-
export_action = RailsAdmin::Config::Actions.find(:export, { controller: self.controller, abstract_model: @abstract_model })
|
10
|
-
export_action = nil unless export_action && authorized?(export_action.authorization_key, @abstract_model)
|
11
|
-
bulk_delete_action = actions(:bulkable, @abstract_model).select { |action| action.action_name.to_s == "bulk_delete" }.first
|
12
|
-
description = RailsAdmin.config(@abstract_model.model_name).description
|
13
|
-
properties = @model_config.list.with(controller: self.controller, view: self, object: @abstract_model.model.new).visible_fields
|
14
|
-
checkboxes = @model_config.list.checkboxes?
|
15
|
-
# columns paginate
|
16
|
-
unless (frozen_columns = @model_config.list.sidescroll_frozen_columns)
|
17
|
-
sets = get_column_sets(properties)
|
18
|
-
properties = sets[params[:set].to_i] || []
|
19
|
-
other_left = ((params[:set].to_i - 1) >= 0) && sets[params[:set].to_i - 1].present?
|
20
|
-
other_right = sets[params[:set].to_i + 1].present?
|
21
|
-
end
|
22
|
-
|
23
|
-
- content_for :action_links do
|
24
|
-
- parent = (@abstract_model ? (@object.try(:persisted?) ? :member : :collection) : :root)
|
25
|
-
- actions = actions(parent, @abstract_model, @object).select { |a| a.http_methods.include?(:get) && a.show_in_menu && a.action_name.to_s != "export"}
|
26
|
-
- actions.collect do |action|
|
27
|
-
- wording = wording_for(:link, action)
|
28
|
-
%li{title: wording, rel: "tooltip", class: "icon #{action.key}_#{parent}_link #{'active' if current_action?(action)}", style: "float:right"}
|
29
|
-
%a{class: "#{action.pjax? ? 'pjax' : ''}", href: rails_admin.url_for(action: action.action_name, controller: 'rails_admin/main', model_name: @abstract_model.try(:to_param), id: (@object.try(:persisted?) && @object.try(:id) || nil))}
|
30
|
-
%i{class: action.link_icon}
|
31
|
-
|
32
|
-
- content_for :search_form do
|
33
|
-
%li.filer-search-form
|
34
|
-
= form_tag(index_path(params.except(*%w[page f query])), method: :get, class: "pjax-form form-inline") do
|
35
|
-
%span#filters_box{data: {options: ordered_filter_options.to_json}}
|
36
|
-
%hr.filters_box{style: "display:#{ordered_filters.blank? ? 'none' : 'block'}"}
|
37
|
-
.input-group#search-for-filter
|
38
|
-
%input.form-control.input-small{name: "query", type: "search", value: query, placeholder: t("admin.misc.filter")}
|
39
|
-
%span.input-group-btn
|
40
|
-
%button.btn.btn-primary{type: 'submit', :'data-disable-with' => '<i class="icon-white icon-refresh"></i> '.html_safe + t('admin.misc.refresh')}
|
41
|
-
%i.icon-white.icon-refresh
|
42
|
-
- if filterable_fields.present?
|
43
|
-
%button.btn.dropdown-toggle#filters-menu{ :'data-toggle' => "dropdown", :'aria-haspopup'=>"true", :'aria-expanded'=>"true"}
|
44
|
-
%i.icon-white.icon-filter
|
45
|
-
%b.caret
|
46
|
-
%ul.dropdown-menu#filters{style: 'left:auto; right:0;', :'aria-labelledby'=>"filters-menu"}
|
47
|
-
- filterable_fields.each do |field|
|
48
|
-
- field_options = case field.type
|
49
|
-
- when :enum
|
50
|
-
- options_for_select(field.with(object: @abstract_model.model.new).enum)
|
51
|
-
- else
|
52
|
-
- ''
|
53
|
-
%li
|
54
|
-
%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)
|
55
|
-
%button#remove_filter.btn.btn-info{title: "Reset filters"}
|
56
|
-
%i.icon-white.icon-remove
|
57
|
-
|
58
|
-
- content_for :contextual_tabs do
|
59
|
-
- if checkboxes && bulk_delete_action
|
60
|
-
%li.icon{style: "float:right", title: t(:delete_selected)}
|
61
|
-
= link_to '<i class="fa fa-trash"></i>'.html_safe, '#', class: 'bulk-link', data: {action: "bulk_delete"}
|
62
|
-
- if export_action
|
63
|
-
%li.dropdown{style: "float:right", title: t(:export)}
|
64
|
-
%a.pjax.dropdown-toggle#exporters-menu{ :'data-toggle' => "dropdown", :'aria-haspopup'=>"true", :'aria-expanded'=>"true", style: "float: right;"}
|
65
|
-
%i.fa.fa-external-link
|
66
|
-
%b.caret
|
67
|
-
%ul.dropdown-menu#exporters{style: 'left:auto; right:0;', :'aria-labelledby'=>"exporters-menu"}
|
68
|
-
%li= link_to t(:export_all).html_safe, rails_admin.url_for(action: "export", controller: 'rails_admin/main', model_name: @abstract_model.try(:to_param), id: (@object.try(:persisted?) && @object.try(:id) || nil)), class: "pjax"
|
69
|
-
%li= link_to t(:export_found).html_safe, export_path(params.except('set').except('page')), class: 'pjax'
|
70
|
-
%li= link_to t(:export_selected).html_safe, '#', class: 'bulk-link pjax', data: {action: "bulk_export"}
|
71
|
-
|
72
|
-
|
73
|
-
%style
|
74
|
-
- properties.select{ |p| p.column_width.present? }.each do |property|
|
75
|
-
= "#list th.#{property.css_class} { width: #{property.column_width}px; min-width: #{property.column_width}px; }"
|
76
|
-
= "#list td.#{property.css_class} { max-width: #{property.column_width}px; }"
|
77
|
-
|
78
|
-
#list
|
79
|
-
- unless @model_config.list.scopes.blank?
|
80
|
-
%ul.nav.nav-tabs.nav-justified#scope_selector
|
81
|
-
- @model_config.list.scopes.each do |scope|
|
82
|
-
- scope = '_all' if scope.nil?
|
83
|
-
%li{ class: "#{ scope.to_s == params[:scope] || (params[:scope].nil? && scope == "_all") ? "selected" : "inactive"}"}
|
84
|
-
%a.nav-link{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))
|
85
|
-
|
86
|
-
= form_tag bulk_action_path(model_name: @abstract_model.to_param), method: :post, id: "bulk_form", class: ["form", frozen_columns ? 'ra-sidescroll' : nil], data: (frozen_columns ? {ra_sidescroll: frozen_columns} : {}) do
|
87
|
-
= hidden_field_tag :bulk_action
|
88
|
-
- if description.present?
|
89
|
-
%p
|
90
|
-
%strong= description
|
91
|
-
|
92
|
-
- @objects.each do |object|
|
93
|
-
= render partial: "card", locals: {object: object, properties: properties, sort: sort, sort_reverse: sort_reverse}
|
94
|
-
|
95
|
-
- if @model_config.list.limited_pagination
|
96
|
-
.row
|
97
|
-
.col-md-6= paginate(@objects, theme: 'ra-twitter-bootstrap/without_count', total_pages: Float::INFINITY, remote: true)
|
98
|
-
|
99
|
-
- elsif @objects.respond_to?(:total_count)
|
100
|
-
- total_count = @objects.total_count.to_i
|
101
|
-
.row
|
102
|
-
.col-md-6= paginate(@objects, theme: 'ra-twitter-bootstrap', remote: true)
|
103
|
-
.row
|
104
|
-
.col-md-6= link_to(t("admin.misc.show_all"), index_path(params.merge(all: true)), class: "show-all btn btn-default clearfix pjax") unless total_count > 100 || total_count <= @objects.to_a.size
|
105
|
-
.clearfix.total-count= "#{total_count} #{@model_config.pluralize(total_count).downcase}"
|
106
|
-
|
107
|
-
- else
|
108
|
-
.clearfix.total-count= "#{@objects.size} #{@model_config.pluralize(@objects.size).downcase}"
|