activeadmin_addons 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/fileicons/file_extension_3gp.png +0 -0
- data/app/assets/images/fileicons/file_extension_7z.png +0 -0
- data/app/assets/images/fileicons/file_extension_ace.png +0 -0
- data/app/assets/images/fileicons/file_extension_ai.png +0 -0
- data/app/assets/images/fileicons/file_extension_aif.png +0 -0
- data/app/assets/images/fileicons/file_extension_aiff.png +0 -0
- data/app/assets/images/fileicons/file_extension_amr.png +0 -0
- data/app/assets/images/fileicons/file_extension_asf.png +0 -0
- data/app/assets/images/fileicons/file_extension_asx.png +0 -0
- data/app/assets/images/fileicons/file_extension_bat.png +0 -0
- data/app/assets/images/fileicons/file_extension_bin.png +0 -0
- data/app/assets/images/fileicons/file_extension_bmp.png +0 -0
- data/app/assets/images/fileicons/file_extension_bup.png +0 -0
- data/app/assets/images/fileicons/file_extension_cab.png +0 -0
- data/app/assets/images/fileicons/file_extension_cbr.png +0 -0
- data/app/assets/images/fileicons/file_extension_cda.png +0 -0
- data/app/assets/images/fileicons/file_extension_cdl.png +0 -0
- data/app/assets/images/fileicons/file_extension_cdr.png +0 -0
- data/app/assets/images/fileicons/file_extension_chm.png +0 -0
- data/app/assets/images/fileicons/file_extension_dat.png +0 -0
- data/app/assets/images/fileicons/file_extension_divx.png +0 -0
- data/app/assets/images/fileicons/file_extension_dll.png +0 -0
- data/app/assets/images/fileicons/file_extension_dmg.png +0 -0
- data/app/assets/images/fileicons/file_extension_doc.png +0 -0
- data/app/assets/images/fileicons/file_extension_docx.png +0 -0
- data/app/assets/images/fileicons/file_extension_dss.png +0 -0
- data/app/assets/images/fileicons/file_extension_dvf.png +0 -0
- data/app/assets/images/fileicons/file_extension_dwg.png +0 -0
- data/app/assets/images/fileicons/file_extension_eml.png +0 -0
- data/app/assets/images/fileicons/file_extension_eps.png +0 -0
- data/app/assets/images/fileicons/file_extension_exe.png +0 -0
- data/app/assets/images/fileicons/file_extension_fla.png +0 -0
- data/app/assets/images/fileicons/file_extension_flv.png +0 -0
- data/app/assets/images/fileicons/file_extension_gif.png +0 -0
- data/app/assets/images/fileicons/file_extension_gz.png +0 -0
- data/app/assets/images/fileicons/file_extension_hqx.png +0 -0
- data/app/assets/images/fileicons/file_extension_htm.png +0 -0
- data/app/assets/images/fileicons/file_extension_html.png +0 -0
- data/app/assets/images/fileicons/file_extension_ifo.png +0 -0
- data/app/assets/images/fileicons/file_extension_indd.png +0 -0
- data/app/assets/images/fileicons/file_extension_iso.png +0 -0
- data/app/assets/images/fileicons/file_extension_jar.png +0 -0
- data/app/assets/images/fileicons/file_extension_jpeg.png +0 -0
- data/app/assets/images/fileicons/file_extension_jpg.png +0 -0
- data/app/assets/images/fileicons/file_extension_lnk.png +0 -0
- data/app/assets/images/fileicons/file_extension_log.png +0 -0
- data/app/assets/images/fileicons/file_extension_m4a.png +0 -0
- data/app/assets/images/fileicons/file_extension_m4b.png +0 -0
- data/app/assets/images/fileicons/file_extension_m4p.png +0 -0
- data/app/assets/images/fileicons/file_extension_m4v.png +0 -0
- data/app/assets/images/fileicons/file_extension_mcd.png +0 -0
- data/app/assets/images/fileicons/file_extension_mdb.png +0 -0
- data/app/assets/images/fileicons/file_extension_mid.png +0 -0
- data/app/assets/images/fileicons/file_extension_mov.png +0 -0
- data/app/assets/images/fileicons/file_extension_mp2.png +0 -0
- data/app/assets/images/fileicons/file_extension_mp4.png +0 -0
- data/app/assets/images/fileicons/file_extension_mpeg.png +0 -0
- data/app/assets/images/fileicons/file_extension_mpg.png +0 -0
- data/app/assets/images/fileicons/file_extension_msi.png +0 -0
- data/app/assets/images/fileicons/file_extension_mswmm.png +0 -0
- data/app/assets/images/fileicons/file_extension_ogg.png +0 -0
- data/app/assets/images/fileicons/file_extension_pdf.png +0 -0
- data/app/assets/images/fileicons/file_extension_png.png +0 -0
- data/app/assets/images/fileicons/file_extension_pps.png +0 -0
- data/app/assets/images/fileicons/file_extension_ppt.png +0 -0
- data/app/assets/images/fileicons/file_extension_pptx.png +0 -0
- data/app/assets/images/fileicons/file_extension_ps.png +0 -0
- data/app/assets/images/fileicons/file_extension_psd.png +0 -0
- data/app/assets/images/fileicons/file_extension_pst.png +0 -0
- data/app/assets/images/fileicons/file_extension_ptb.png +0 -0
- data/app/assets/images/fileicons/file_extension_pub.png +0 -0
- data/app/assets/images/fileicons/file_extension_qbb.png +0 -0
- data/app/assets/images/fileicons/file_extension_qbw.png +0 -0
- data/app/assets/images/fileicons/file_extension_qxd.png +0 -0
- data/app/assets/images/fileicons/file_extension_ram.png +0 -0
- data/app/assets/images/fileicons/file_extension_rar.png +0 -0
- data/app/assets/images/fileicons/file_extension_rm.png +0 -0
- data/app/assets/images/fileicons/file_extension_rmvb.png +0 -0
- data/app/assets/images/fileicons/file_extension_rtf.png +0 -0
- data/app/assets/images/fileicons/file_extension_sea.png +0 -0
- data/app/assets/images/fileicons/file_extension_ses.png +0 -0
- data/app/assets/images/fileicons/file_extension_sit.png +0 -0
- data/app/assets/images/fileicons/file_extension_sitx.png +0 -0
- data/app/assets/images/fileicons/file_extension_ss.png +0 -0
- data/app/assets/images/fileicons/file_extension_swf.png +0 -0
- data/app/assets/images/fileicons/file_extension_tgz.png +0 -0
- data/app/assets/images/fileicons/file_extension_thm.png +0 -0
- data/app/assets/images/fileicons/file_extension_tif.png +0 -0
- data/app/assets/images/fileicons/file_extension_tmp.png +0 -0
- data/app/assets/images/fileicons/file_extension_torrent.png +0 -0
- data/app/assets/images/fileicons/file_extension_ttf.png +0 -0
- data/app/assets/images/fileicons/file_extension_txt.png +0 -0
- data/app/assets/images/fileicons/file_extension_unknown.png +0 -0
- data/app/assets/images/fileicons/file_extension_vcd.png +0 -0
- data/app/assets/images/fileicons/file_extension_vob.png +0 -0
- data/app/assets/images/fileicons/file_extension_wav.png +0 -0
- data/app/assets/images/fileicons/file_extension_wma.png +0 -0
- data/app/assets/images/fileicons/file_extension_wmv.png +0 -0
- data/app/assets/images/fileicons/file_extension_wps.png +0 -0
- data/app/assets/images/fileicons/file_extension_xls.png +0 -0
- data/app/assets/images/fileicons/file_extension_xlsx.png +0 -0
- data/app/assets/images/fileicons/file_extension_xpi.png +0 -0
- data/app/assets/images/fileicons/file_extension_zip.png +0 -0
- data/app/assets/javascripts/activeadmin_addons/select2.js +72 -0
- data/app/inputs/search_select_input.rb +13 -0
- data/lib/activeadmin_addons/addons/enum_tag.rb +27 -0
- data/lib/activeadmin_addons/addons/paperclip_attachment.rb +57 -0
- data/lib/activeadmin_addons/engine.rb +2 -0
- data/lib/activeadmin_addons/version.rb +1 -1
- metadata +109 -3
- data/app/assets/javascripts/activeadmin_addons/select2.js.coffee +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: beddbc0bff10eff87f32a88d3f39efb756dd82b1
|
4
|
+
data.tar.gz: 0e49d15370800ab92548bc22518388dc98f5bb24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0f94ca68da948c446ed8531493ea9fee5e89db4be300489e38347febad58c993545a5b2c56b868b6699f42cf1493d64b3be231c143a64361a0c14f3c139c1e2
|
7
|
+
data.tar.gz: def44ec50b4acfb1734780c0f513a602098cb0baeecb6bfec99d765edf3bd099fd13263d5b3ddb64d7c98a7190213a46f8808a22ea8aa923830812ba938bdd28
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,72 @@
|
|
1
|
+
//= require select2
|
2
|
+
//= require_self
|
3
|
+
|
4
|
+
$(function() {
|
5
|
+
|
6
|
+
$('.select2-tags').each(function(i, el) {
|
7
|
+
$(el).select2({
|
8
|
+
width: '80%',
|
9
|
+
tags: $(el).data('collection')
|
10
|
+
});
|
11
|
+
});
|
12
|
+
|
13
|
+
$('select:not(.default-select)').each(function(i, el) {
|
14
|
+
if ($(el).closest('.filter_form').length > 0) {
|
15
|
+
$(el).select2({
|
16
|
+
width: 'resolve'
|
17
|
+
});
|
18
|
+
} else {
|
19
|
+
$(el).select2({
|
20
|
+
width: '80%'
|
21
|
+
});
|
22
|
+
}
|
23
|
+
});
|
24
|
+
|
25
|
+
$('.select2-ajax').each(function(i, el) {
|
26
|
+
var url = $(el).data('url');
|
27
|
+
var fields = $(el).data('fields');
|
28
|
+
var displayName = $(el).data('display_name');
|
29
|
+
var order = fields[0] + "_desc";
|
30
|
+
|
31
|
+
$(el).select2({
|
32
|
+
width: '80%',
|
33
|
+
initSelection: function(element, callback) {
|
34
|
+
var id = $(element).val();
|
35
|
+
var text = $(element).data("selected") || "";
|
36
|
+
callback({
|
37
|
+
id: id,
|
38
|
+
text: text
|
39
|
+
});
|
40
|
+
},
|
41
|
+
ajax: {
|
42
|
+
url: url,
|
43
|
+
dataType: 'json',
|
44
|
+
delay: 250,
|
45
|
+
data: function (term) {
|
46
|
+
var query = {m: "or"};
|
47
|
+
fields.forEach(function(field) {
|
48
|
+
query[field + "_contains"] = term;
|
49
|
+
});
|
50
|
+
|
51
|
+
return {
|
52
|
+
order: order,
|
53
|
+
q: query
|
54
|
+
};
|
55
|
+
},
|
56
|
+
results: function (data, page) {
|
57
|
+
return {
|
58
|
+
results: jQuery.map(data, function(resource) {
|
59
|
+
return {
|
60
|
+
id: resource.id,
|
61
|
+
text: resource[displayName]
|
62
|
+
}
|
63
|
+
})
|
64
|
+
};
|
65
|
+
},
|
66
|
+
cache: true
|
67
|
+
},
|
68
|
+
minimumInputLength: 1
|
69
|
+
});
|
70
|
+
});
|
71
|
+
|
72
|
+
});
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class SearchSelectInput < Formtastic::Inputs::StringInput
|
2
|
+
def input_html_options
|
3
|
+
relation = @object.send(attributized_method_name)
|
4
|
+
opts = {}
|
5
|
+
opts[:class] = "select2-ajax"
|
6
|
+
opts["data-fields"] = (@options[:fields] || []).to_json
|
7
|
+
opts["data-url"] = @options[:url] || ""
|
8
|
+
opts["data-display_name"] = @options[:display_name] || "name"
|
9
|
+
opts["data-selected"] = relation.try(opts["data-display_name"].to_sym)
|
10
|
+
super.merge opts
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module ActiveAdminAddons
|
2
|
+
module EnumTag
|
3
|
+
class << self
|
4
|
+
def tag(context, model, attribute, options)
|
5
|
+
state = model.send(attribute)
|
6
|
+
raise 'you need to install enumerize gem first' unless defined? Enumerize::Value
|
7
|
+
raise 'you need to pass an enumerize attribute' unless state.is_a?('Enumerize::Value'.constantize)
|
8
|
+
context.status_tag(state.text, state)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module ::ActiveAdmin
|
14
|
+
module Views
|
15
|
+
class TableFor
|
16
|
+
def tag_column(attribute, options = {})
|
17
|
+
column(attribute) { |model| EnumTag.tag(self, model, attribute, options) }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
class AttributesTable
|
21
|
+
def tag_row(attribute, options = {})
|
22
|
+
row(attribute) { |model| EnumTag.tag(self, model, attribute, options) }
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
module ActiveAdminAddons
|
2
|
+
module PaperclipAttachment
|
3
|
+
class << self
|
4
|
+
KNOWN_EXTENSIONS = %w{
|
5
|
+
3gp 7z ace ai aif aiff amr asf asx bat bin bmp bup cab cbr cda cdl cdr chm
|
6
|
+
dat divx dll dmg doc docx dss dvf dwg eml eps exe fla flv gif gz hqx htm html
|
7
|
+
ifo indd iso jar jpeg jpg lnk log m4a m4b m4p m4v mcd mdb mid mov mp2 mp4
|
8
|
+
mpeg mpg msi mswmm ogg pdf png pps ppt pptx ps psd pst ptb pub qbb qbw qxd ram
|
9
|
+
rar rm rmvb rtf sea ses sit sitx ss swf tgz thm tif tmp torrent ttf txt
|
10
|
+
vcd vob wav wma wmv wps xls xlsx xpi zip
|
11
|
+
}
|
12
|
+
|
13
|
+
def icon_for_filename filename
|
14
|
+
for_ext File.extname(filename)
|
15
|
+
end
|
16
|
+
|
17
|
+
def for_ext file_extension
|
18
|
+
ext = file_extension.start_with?('.') ? file_extension[1..-1] : file_extension
|
19
|
+
ext.downcase!
|
20
|
+
ext = "unknown" unless KNOWN_EXTENSIONS.include?(ext)
|
21
|
+
"fileicons/file_extension_#{ext}.png"
|
22
|
+
end
|
23
|
+
|
24
|
+
def link(context, model, attribute, options)
|
25
|
+
doc = model.send(attribute)
|
26
|
+
raise 'you need to pass a paperclip attribute' unless doc.respond_to?(:url)
|
27
|
+
|
28
|
+
icon = icon_for_filename(doc.original_filename)
|
29
|
+
icon_img = context.image_tag(icon, width: "20", height: "20", style: "margin-right: 5px; vertical-align: middle;")
|
30
|
+
file_name = (options[:truncate] == true) ? context.truncate(doc.original_filename) : doc.original_filename
|
31
|
+
label = context.content_tag(:span) do
|
32
|
+
context.concat(icon_img)
|
33
|
+
context.safe_concat(file_name)
|
34
|
+
end
|
35
|
+
|
36
|
+
context.link_to(label, doc.url, { target: "_blank" }) if doc.exists?
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
module ::ActiveAdmin
|
42
|
+
module Views
|
43
|
+
class TableFor
|
44
|
+
def attachment_column(attribute, options = {})
|
45
|
+
options[:truncate] = options.fetch(:truncate, true)
|
46
|
+
column(attribute) { |model| PaperclipAttachment.link(self, model, attribute, options) }
|
47
|
+
end
|
48
|
+
end
|
49
|
+
class AttributesTable
|
50
|
+
def attachment_row(attribute, options = {})
|
51
|
+
options[:truncate] = options.fetch(:truncate, false)
|
52
|
+
row(attribute) { |model| PaperclipAttachment.link(self, model, attribute, options) }
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -6,6 +6,8 @@ module ActiveAdminAddons
|
|
6
6
|
require_relative './set_datepicker'
|
7
7
|
require_relative './addons/bool_values'
|
8
8
|
require_relative './addons/paperclip_image'
|
9
|
+
require_relative './addons/paperclip_attachment'
|
10
|
+
require_relative './addons/enum_tag'
|
9
11
|
app.config.assets.precompile += %w(select.scss)
|
10
12
|
end
|
11
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin_addons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Platanus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -101,11 +101,117 @@ executables: []
|
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
+
- app/assets/images/fileicons/file_extension_3gp.png
|
105
|
+
- app/assets/images/fileicons/file_extension_7z.png
|
106
|
+
- app/assets/images/fileicons/file_extension_ace.png
|
107
|
+
- app/assets/images/fileicons/file_extension_ai.png
|
108
|
+
- app/assets/images/fileicons/file_extension_aif.png
|
109
|
+
- app/assets/images/fileicons/file_extension_aiff.png
|
110
|
+
- app/assets/images/fileicons/file_extension_amr.png
|
111
|
+
- app/assets/images/fileicons/file_extension_asf.png
|
112
|
+
- app/assets/images/fileicons/file_extension_asx.png
|
113
|
+
- app/assets/images/fileicons/file_extension_bat.png
|
114
|
+
- app/assets/images/fileicons/file_extension_bin.png
|
115
|
+
- app/assets/images/fileicons/file_extension_bmp.png
|
116
|
+
- app/assets/images/fileicons/file_extension_bup.png
|
117
|
+
- app/assets/images/fileicons/file_extension_cab.png
|
118
|
+
- app/assets/images/fileicons/file_extension_cbr.png
|
119
|
+
- app/assets/images/fileicons/file_extension_cda.png
|
120
|
+
- app/assets/images/fileicons/file_extension_cdl.png
|
121
|
+
- app/assets/images/fileicons/file_extension_cdr.png
|
122
|
+
- app/assets/images/fileicons/file_extension_chm.png
|
123
|
+
- app/assets/images/fileicons/file_extension_dat.png
|
124
|
+
- app/assets/images/fileicons/file_extension_divx.png
|
125
|
+
- app/assets/images/fileicons/file_extension_dll.png
|
126
|
+
- app/assets/images/fileicons/file_extension_dmg.png
|
127
|
+
- app/assets/images/fileicons/file_extension_doc.png
|
128
|
+
- app/assets/images/fileicons/file_extension_docx.png
|
129
|
+
- app/assets/images/fileicons/file_extension_dss.png
|
130
|
+
- app/assets/images/fileicons/file_extension_dvf.png
|
131
|
+
- app/assets/images/fileicons/file_extension_dwg.png
|
132
|
+
- app/assets/images/fileicons/file_extension_eml.png
|
133
|
+
- app/assets/images/fileicons/file_extension_eps.png
|
134
|
+
- app/assets/images/fileicons/file_extension_exe.png
|
135
|
+
- app/assets/images/fileicons/file_extension_fla.png
|
136
|
+
- app/assets/images/fileicons/file_extension_flv.png
|
137
|
+
- app/assets/images/fileicons/file_extension_gif.png
|
138
|
+
- app/assets/images/fileicons/file_extension_gz.png
|
139
|
+
- app/assets/images/fileicons/file_extension_hqx.png
|
140
|
+
- app/assets/images/fileicons/file_extension_htm.png
|
141
|
+
- app/assets/images/fileicons/file_extension_html.png
|
142
|
+
- app/assets/images/fileicons/file_extension_ifo.png
|
143
|
+
- app/assets/images/fileicons/file_extension_indd.png
|
144
|
+
- app/assets/images/fileicons/file_extension_iso.png
|
145
|
+
- app/assets/images/fileicons/file_extension_jar.png
|
146
|
+
- app/assets/images/fileicons/file_extension_jpeg.png
|
147
|
+
- app/assets/images/fileicons/file_extension_jpg.png
|
148
|
+
- app/assets/images/fileicons/file_extension_lnk.png
|
149
|
+
- app/assets/images/fileicons/file_extension_log.png
|
150
|
+
- app/assets/images/fileicons/file_extension_m4a.png
|
151
|
+
- app/assets/images/fileicons/file_extension_m4b.png
|
152
|
+
- app/assets/images/fileicons/file_extension_m4p.png
|
153
|
+
- app/assets/images/fileicons/file_extension_m4v.png
|
154
|
+
- app/assets/images/fileicons/file_extension_mcd.png
|
155
|
+
- app/assets/images/fileicons/file_extension_mdb.png
|
156
|
+
- app/assets/images/fileicons/file_extension_mid.png
|
157
|
+
- app/assets/images/fileicons/file_extension_mov.png
|
158
|
+
- app/assets/images/fileicons/file_extension_mp2.png
|
159
|
+
- app/assets/images/fileicons/file_extension_mp4.png
|
160
|
+
- app/assets/images/fileicons/file_extension_mpeg.png
|
161
|
+
- app/assets/images/fileicons/file_extension_mpg.png
|
162
|
+
- app/assets/images/fileicons/file_extension_msi.png
|
163
|
+
- app/assets/images/fileicons/file_extension_mswmm.png
|
164
|
+
- app/assets/images/fileicons/file_extension_ogg.png
|
165
|
+
- app/assets/images/fileicons/file_extension_pdf.png
|
166
|
+
- app/assets/images/fileicons/file_extension_png.png
|
167
|
+
- app/assets/images/fileicons/file_extension_pps.png
|
168
|
+
- app/assets/images/fileicons/file_extension_ppt.png
|
169
|
+
- app/assets/images/fileicons/file_extension_pptx.png
|
170
|
+
- app/assets/images/fileicons/file_extension_ps.png
|
171
|
+
- app/assets/images/fileicons/file_extension_psd.png
|
172
|
+
- app/assets/images/fileicons/file_extension_pst.png
|
173
|
+
- app/assets/images/fileicons/file_extension_ptb.png
|
174
|
+
- app/assets/images/fileicons/file_extension_pub.png
|
175
|
+
- app/assets/images/fileicons/file_extension_qbb.png
|
176
|
+
- app/assets/images/fileicons/file_extension_qbw.png
|
177
|
+
- app/assets/images/fileicons/file_extension_qxd.png
|
178
|
+
- app/assets/images/fileicons/file_extension_ram.png
|
179
|
+
- app/assets/images/fileicons/file_extension_rar.png
|
180
|
+
- app/assets/images/fileicons/file_extension_rm.png
|
181
|
+
- app/assets/images/fileicons/file_extension_rmvb.png
|
182
|
+
- app/assets/images/fileicons/file_extension_rtf.png
|
183
|
+
- app/assets/images/fileicons/file_extension_sea.png
|
184
|
+
- app/assets/images/fileicons/file_extension_ses.png
|
185
|
+
- app/assets/images/fileicons/file_extension_sit.png
|
186
|
+
- app/assets/images/fileicons/file_extension_sitx.png
|
187
|
+
- app/assets/images/fileicons/file_extension_ss.png
|
188
|
+
- app/assets/images/fileicons/file_extension_swf.png
|
189
|
+
- app/assets/images/fileicons/file_extension_tgz.png
|
190
|
+
- app/assets/images/fileicons/file_extension_thm.png
|
191
|
+
- app/assets/images/fileicons/file_extension_tif.png
|
192
|
+
- app/assets/images/fileicons/file_extension_tmp.png
|
193
|
+
- app/assets/images/fileicons/file_extension_torrent.png
|
194
|
+
- app/assets/images/fileicons/file_extension_ttf.png
|
195
|
+
- app/assets/images/fileicons/file_extension_txt.png
|
196
|
+
- app/assets/images/fileicons/file_extension_unknown.png
|
197
|
+
- app/assets/images/fileicons/file_extension_vcd.png
|
198
|
+
- app/assets/images/fileicons/file_extension_vob.png
|
199
|
+
- app/assets/images/fileicons/file_extension_wav.png
|
200
|
+
- app/assets/images/fileicons/file_extension_wma.png
|
201
|
+
- app/assets/images/fileicons/file_extension_wmv.png
|
202
|
+
- app/assets/images/fileicons/file_extension_wps.png
|
203
|
+
- app/assets/images/fileicons/file_extension_xls.png
|
204
|
+
- app/assets/images/fileicons/file_extension_xlsx.png
|
205
|
+
- app/assets/images/fileicons/file_extension_xpi.png
|
206
|
+
- app/assets/images/fileicons/file_extension_zip.png
|
104
207
|
- app/assets/javascripts/activeadmin_addons/all.js.coffee
|
105
|
-
- app/assets/javascripts/activeadmin_addons/select2.js
|
208
|
+
- app/assets/javascripts/activeadmin_addons/select2.js
|
106
209
|
- app/assets/stylesheets/activeadmin_addons/all.css.scss
|
210
|
+
- app/inputs/search_select_input.rb
|
107
211
|
- app/inputs/tags_input.rb
|
108
212
|
- lib/activeadmin_addons/addons/bool_values.rb
|
213
|
+
- lib/activeadmin_addons/addons/enum_tag.rb
|
214
|
+
- lib/activeadmin_addons/addons/paperclip_attachment.rb
|
109
215
|
- lib/activeadmin_addons/addons/paperclip_image.rb
|
110
216
|
- lib/activeadmin_addons/engine.rb
|
111
217
|
- lib/activeadmin_addons/set_datepicker.rb
|
@@ -1,14 +0,0 @@
|
|
1
|
-
#= require select2
|
2
|
-
#= require_self
|
3
|
-
|
4
|
-
$ ->
|
5
|
-
$('.select2-tags').each (i, el) ->
|
6
|
-
$(el).select2
|
7
|
-
width: '80%'
|
8
|
-
tags: $(el).data('collection')
|
9
|
-
|
10
|
-
$('select:not(.default-select)').each (i, el) ->
|
11
|
-
if $(el).closest('.filter_form').length > 0
|
12
|
-
$(el).select2(width: 'resolve')
|
13
|
-
else
|
14
|
-
$(el).select2(width: '80%')
|