repsheet_visualizer 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +25 -1
- data/bin/repsheet_visualizer +10 -8
- data/config.ru +8 -0
- data/lib/repsheet_visualizer/application/app.rb +120 -107
- data/lib/repsheet_visualizer/application/views/404.erb +66 -0
- data/lib/repsheet_visualizer/application/views/500.erb +66 -0
- data/lib/repsheet_visualizer/version.rb +1 -1
- metadata +4 -245
- data/redesign/actor.html +0 -237
- data/redesign/blacklist.html +0 -274
- data/redesign/css/App.css +0 -3436
- data/redesign/css/Login.css +0 -88
- data/redesign/css/bootstrap.min.css +0 -9
- data/redesign/css/custom.css +0 -0
- data/redesign/css/font-awesome.min.css +0 -395
- data/redesign/fonts/FontAwesome.otf +0 -0
- data/redesign/fonts/fontawesome-webfont.eot +0 -0
- data/redesign/fonts/fontawesome-webfont.svg +0 -414
- data/redesign/fonts/fontawesome-webfont.ttf +0 -0
- data/redesign/fonts/fontawesome-webfont.woff +0 -0
- data/redesign/fonts/glyphicons-halflings-regular.eot +0 -0
- data/redesign/fonts/glyphicons-halflings-regular.svg +0 -228
- data/redesign/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/redesign/fonts/glyphicons-halflings-regular.woff +0 -0
- data/redesign/img/jquery/handle-vertical.png +0 -0
- data/redesign/img/jquery/handle.png +0 -0
- data/redesign/img/layout/sidebar-bg.png +0 -0
- data/redesign/img/loaders/ajax-loader.gif +0 -0
- data/redesign/img/photos/map.png +0 -0
- data/redesign/index.html +0 -333
- data/redesign/js/App.js +0 -372
- data/redesign/js/Login.js +0 -17
- data/redesign/js/demos/buttons.js +0 -7
- data/redesign/js/demos/calendar.js +0 -142
- data/redesign/js/demos/charts/flot/area.js +0 -73
- data/redesign/js/demos/charts/flot/chart1.js +0 -77
- data/redesign/js/demos/charts/flot/chart2.js +0 -70
- data/redesign/js/demos/charts/flot/chart3.js +0 -71
- data/redesign/js/demos/charts/flot/chart4.js +0 -69
- data/redesign/js/demos/charts/flot/donut.js +0 -49
- data/redesign/js/demos/charts/flot/horizontal.js +0 -56
- data/redesign/js/demos/charts/flot/line.js +0 -76
- data/redesign/js/demos/charts/flot/pie.js +0 -50
- data/redesign/js/demos/charts/flot/scatter.js +0 -62
- data/redesign/js/demos/charts/flot/stacked-area.js +0 -86
- data/redesign/js/demos/charts/flot/stacked-horizontal.js +0 -60
- data/redesign/js/demos/charts/flot/stacked-vertical.js +0 -75
- data/redesign/js/demos/charts/flot/vertical.js +0 -70
- data/redesign/js/demos/charts/morris/area.js +0 -28
- data/redesign/js/demos/charts/morris/bar.js +0 -29
- data/redesign/js/demos/charts/morris/donut.js +0 -26
- data/redesign/js/demos/charts/morris/line.js +0 -30
- data/redesign/js/demos/dashboard.js +0 -26
- data/redesign/js/demos/form-extended.js +0 -61
- data/redesign/js/demos/popups.js +0 -16
- data/redesign/js/demos/pricing.js +0 -10
- data/redesign/js/demos/sliders.js +0 -77
- data/redesign/js/libs/bootstrap.js +0 -1999
- data/redesign/js/libs/bootstrap.min.js +0 -6
- data/redesign/js/libs/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/redesign/js/libs/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/redesign/js/libs/css/ui-lightness/jquery-ui-1.9.2.custom.css +0 -294
- data/redesign/js/libs/css/ui-lightness/jquery-ui-1.9.2.custom.min.css +0 -7
- data/redesign/js/libs/jquery-1.9.1.min.js +0 -5
- data/redesign/js/libs/jquery-ui-1.9.2.custom.min.js +0 -6
- data/redesign/js/libs/jquery.min.map +0 -1
- data/redesign/js/libs/raphael-2.1.2.min.js +0 -11
- data/redesign/js/plugins/autosize/jquery.autosize.min.js +0 -7
- data/redesign/js/plugins/datatables/DT_bootstrap.js +0 -148
- data/redesign/js/plugins/datatables/img/Sorting icons.psd +0 -0
- data/redesign/js/plugins/datatables/img/back_disabled.png +0 -0
- data/redesign/js/plugins/datatables/img/back_enabled.png +0 -0
- data/redesign/js/plugins/datatables/img/back_enabled_hover.png +0 -0
- data/redesign/js/plugins/datatables/img/datatable-row-openclose.png +0 -0
- data/redesign/js/plugins/datatables/img/favicon.ico +0 -0
- data/redesign/js/plugins/datatables/img/forward_disabled.png +0 -0
- data/redesign/js/plugins/datatables/img/forward_enabled.png +0 -0
- data/redesign/js/plugins/datatables/img/forward_enabled_hover.png +0 -0
- data/redesign/js/plugins/datatables/img/sort_asc.png +0 -0
- data/redesign/js/plugins/datatables/img/sort_asc_disabled.png +0 -0
- data/redesign/js/plugins/datatables/img/sort_both.png +0 -0
- data/redesign/js/plugins/datatables/img/sort_desc.png +0 -0
- data/redesign/js/plugins/datatables/img/sort_desc_disabled.png +0 -0
- data/redesign/js/plugins/datatables/jquery.dataTables.min.js +0 -155
- data/redesign/js/plugins/datepicker/bootstrap-datepicker.js +0 -1258
- data/redesign/js/plugins/datepicker/datepicker.css +0 -481
- data/redesign/js/plugins/datepicker/less/datepicker.less +0 -122
- data/redesign/js/plugins/fileupload/bootstrap-fileupload.css +0 -132
- data/redesign/js/plugins/fileupload/bootstrap-fileupload.js +0 -169
- data/redesign/js/plugins/fileupload/bootstrap-fileupload.min.css +0 -31
- data/redesign/js/plugins/fileupload/bootstrap-fileupload.min.js +0 -7
- data/redesign/js/plugins/flot/jquery.flot.js +0 -2599
- data/redesign/js/plugins/flot/jquery.flot.orderBars.js +0 -186
- data/redesign/js/plugins/flot/jquery.flot.pie.js +0 -750
- data/redesign/js/plugins/flot/jquery.flot.resize.js +0 -57
- data/redesign/js/plugins/flot/jquery.flot.stack.js +0 -184
- data/redesign/js/plugins/flot/jquery.flot.tooltip.min.js +0 -14
- data/redesign/js/plugins/fullcalendar/fullcalendar.css +0 -589
- data/redesign/js/plugins/fullcalendar/fullcalendar.js +0 -6110
- data/redesign/js/plugins/fullcalendar/fullcalendar.min.js +0 -7
- data/redesign/js/plugins/fullcalendar/fullcalendar.print.css +0 -32
- data/redesign/js/plugins/fullcalendar/gcal.js +0 -107
- data/redesign/js/plugins/howl/howl.js +0 -70
- data/redesign/js/plugins/howl/howl.min.js +0 -2
- data/redesign/js/plugins/icheck/jquery.icheck.js +0 -462
- data/redesign/js/plugins/icheck/jquery.icheck.min.js +0 -11
- data/redesign/js/plugins/icheck/skins/all.css +0 -61
- data/redesign/js/plugins/icheck/skins/flat/_all.css +0 -540
- data/redesign/js/plugins/icheck/skins/flat/aero.css +0 -54
- data/redesign/js/plugins/icheck/skins/flat/aero.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/aero@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/blue.css +0 -54
- data/redesign/js/plugins/icheck/skins/flat/blue.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/blue@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/flat.css +0 -54
- data/redesign/js/plugins/icheck/skins/flat/flat.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/flat@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/green.css +0 -54
- data/redesign/js/plugins/icheck/skins/flat/green.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/green@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/grey.css +0 -54
- data/redesign/js/plugins/icheck/skins/flat/grey.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/grey@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/orange.css +0 -54
- data/redesign/js/plugins/icheck/skins/flat/orange.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/orange@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/pink.css +0 -54
- data/redesign/js/plugins/icheck/skins/flat/pink.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/pink@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/purple.css +0 -54
- data/redesign/js/plugins/icheck/skins/flat/purple.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/purple@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/red.css +0 -54
- data/redesign/js/plugins/icheck/skins/flat/red.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/red@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/yellow.css +0 -54
- data/redesign/js/plugins/icheck/skins/flat/yellow.png +0 -0
- data/redesign/js/plugins/icheck/skins/flat/yellow@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/futurico/futurico.css +0 -54
- data/redesign/js/plugins/icheck/skins/futurico/futurico.png +0 -0
- data/redesign/js/plugins/icheck/skins/futurico/futurico@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/line/_all.css +0 -740
- data/redesign/js/plugins/icheck/skins/line/aero.css +0 -74
- data/redesign/js/plugins/icheck/skins/line/blue.css +0 -74
- data/redesign/js/plugins/icheck/skins/line/green.css +0 -74
- data/redesign/js/plugins/icheck/skins/line/grey.css +0 -74
- data/redesign/js/plugins/icheck/skins/line/line.css +0 -74
- data/redesign/js/plugins/icheck/skins/line/line.png +0 -0
- data/redesign/js/plugins/icheck/skins/line/line@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/line/orange.css +0 -74
- data/redesign/js/plugins/icheck/skins/line/pink.css +0 -74
- data/redesign/js/plugins/icheck/skins/line/purple.css +0 -74
- data/redesign/js/plugins/icheck/skins/line/red.css +0 -74
- data/redesign/js/plugins/icheck/skins/line/yellow.css +0 -74
- data/redesign/js/plugins/icheck/skins/minimal/_all.css +0 -600
- data/redesign/js/plugins/icheck/skins/minimal/aero.css +0 -60
- data/redesign/js/plugins/icheck/skins/minimal/aero.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/aero@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/blue.css +0 -60
- data/redesign/js/plugins/icheck/skins/minimal/blue.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/blue@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/green.css +0 -60
- data/redesign/js/plugins/icheck/skins/minimal/green.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/green@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/grey.css +0 -60
- data/redesign/js/plugins/icheck/skins/minimal/grey.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/grey@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/minimal.css +0 -60
- data/redesign/js/plugins/icheck/skins/minimal/minimal.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/minimal@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/orange.css +0 -60
- data/redesign/js/plugins/icheck/skins/minimal/orange.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/orange@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/pink.css +0 -60
- data/redesign/js/plugins/icheck/skins/minimal/pink.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/pink@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/purple.css +0 -60
- data/redesign/js/plugins/icheck/skins/minimal/purple.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/purple@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/red.css +0 -60
- data/redesign/js/plugins/icheck/skins/minimal/red.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/red@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/yellow.css +0 -60
- data/redesign/js/plugins/icheck/skins/minimal/yellow.png +0 -0
- data/redesign/js/plugins/icheck/skins/minimal/yellow@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/polaris/polaris.css +0 -60
- data/redesign/js/plugins/icheck/skins/polaris/polaris.png +0 -0
- data/redesign/js/plugins/icheck/skins/polaris/polaris@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/_all.css +0 -600
- data/redesign/js/plugins/icheck/skins/square/aero.css +0 -60
- data/redesign/js/plugins/icheck/skins/square/aero.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/aero@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/blue.css +0 -60
- data/redesign/js/plugins/icheck/skins/square/blue.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/blue@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/green.css +0 -60
- data/redesign/js/plugins/icheck/skins/square/green.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/green@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/grey.css +0 -60
- data/redesign/js/plugins/icheck/skins/square/grey.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/grey@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/orange.css +0 -60
- data/redesign/js/plugins/icheck/skins/square/orange.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/orange@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/pink.css +0 -60
- data/redesign/js/plugins/icheck/skins/square/pink.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/pink@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/purple.css +0 -60
- data/redesign/js/plugins/icheck/skins/square/purple.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/purple@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/red.css +0 -60
- data/redesign/js/plugins/icheck/skins/square/red.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/red@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/square.css +0 -60
- data/redesign/js/plugins/icheck/skins/square/square.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/square@2x.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/yellow.css +0 -60
- data/redesign/js/plugins/icheck/skins/square/yellow.png +0 -0
- data/redesign/js/plugins/icheck/skins/square/yellow@2x.png +0 -0
- data/redesign/js/plugins/magnific/jquery.magnific-popup.js +0 -2026
- data/redesign/js/plugins/magnific/jquery.magnific-popup.min.js +0 -4
- data/redesign/js/plugins/magnific/magnific-popup.css +0 -396
- data/redesign/js/plugins/morris/morris.css +0 -1
- data/redesign/js/plugins/morris/morris.min.js +0 -1
- data/redesign/js/plugins/parsley/parsley.js +0 -1363
- data/redesign/js/plugins/select2/select2-spinner.gif +0 -0
- data/redesign/js/plugins/select2/select2.css +0 -615
- data/redesign/js/plugins/select2/select2.js +0 -3217
- data/redesign/js/plugins/select2/select2.min.js +0 -22
- data/redesign/js/plugins/select2/select2.png +0 -0
- data/redesign/js/plugins/select2/select2x2.png +0 -0
- data/redesign/js/plugins/simplecolorpicker/jquery.simplecolorpicker.css +0 -98
- data/redesign/js/plugins/simplecolorpicker/jquery.simplecolorpicker.js +0 -211
- data/redesign/js/plugins/sparkline/jquery.sparkline.min.js +0 -5
- data/redesign/js/plugins/tableCheckable/jquery.tableCheckable.js +0 -122
- data/redesign/js/plugins/textarea-counter/jquery.textarea-counter.js +0 -163
- data/redesign/js/plugins/timepicker/bootstrap-timepicker.css +0 -121
- data/redesign/js/plugins/timepicker/bootstrap-timepicker.js +0 -893
- data/redesign/suspects.html +0 -273
- data/redesign/whitelist.html +0 -273
@@ -1,122 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Datepicker for Bootstrap
|
3
|
-
*
|
4
|
-
* Copyright 2012 Stefan Petre
|
5
|
-
* Licensed under the Apache License v2.0
|
6
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
-
*
|
8
|
-
*/
|
9
|
-
|
10
|
-
.datepicker {
|
11
|
-
top: 0;
|
12
|
-
left: 0;
|
13
|
-
padding: 4px;
|
14
|
-
margin-top: 1px;
|
15
|
-
.border-radius(4px);
|
16
|
-
&:before {
|
17
|
-
content: '';
|
18
|
-
display: inline-block;
|
19
|
-
border-left: 7px solid transparent;
|
20
|
-
border-right: 7px solid transparent;
|
21
|
-
border-bottom: 7px solid #ccc;
|
22
|
-
border-bottom-color: rgba(0,0,0,.2);
|
23
|
-
position: absolute;
|
24
|
-
top: -7px;
|
25
|
-
left: 6px;
|
26
|
-
}
|
27
|
-
&:after {
|
28
|
-
content: '';
|
29
|
-
display: inline-block;
|
30
|
-
border-left: 6px solid transparent;
|
31
|
-
border-right: 6px solid transparent;
|
32
|
-
border-bottom: 6px solid @white;
|
33
|
-
position: absolute;
|
34
|
-
top: -6px;
|
35
|
-
left: 7px;
|
36
|
-
}
|
37
|
-
>div {
|
38
|
-
display: none;
|
39
|
-
}
|
40
|
-
table{
|
41
|
-
width: 100%;
|
42
|
-
margin: 0;
|
43
|
-
}
|
44
|
-
td,
|
45
|
-
th{
|
46
|
-
text-align: center;
|
47
|
-
width: 20px;
|
48
|
-
height: 20px;
|
49
|
-
.border-radius(4px);
|
50
|
-
}
|
51
|
-
td {
|
52
|
-
&.day:hover {
|
53
|
-
background: @grayLighter;
|
54
|
-
cursor: pointer;
|
55
|
-
}
|
56
|
-
&.day.disabled {
|
57
|
-
color: @grayLighter;
|
58
|
-
}
|
59
|
-
&.old,
|
60
|
-
&.new {
|
61
|
-
color: @grayLight;
|
62
|
-
}
|
63
|
-
&.active,
|
64
|
-
&.active:hover {
|
65
|
-
.buttonBackground(@btnPrimaryBackground, spin(@btnPrimaryBackground, 20));
|
66
|
-
color: #fff;
|
67
|
-
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
68
|
-
}
|
69
|
-
span {
|
70
|
-
display: block;
|
71
|
-
width: 47px;
|
72
|
-
height: 54px;
|
73
|
-
line-height: 54px;
|
74
|
-
float: left;
|
75
|
-
margin: 2px;
|
76
|
-
cursor: pointer;
|
77
|
-
.border-radius(4px);
|
78
|
-
&:hover {
|
79
|
-
background: @grayLighter;
|
80
|
-
}
|
81
|
-
&.active {
|
82
|
-
.buttonBackground(@btnPrimaryBackground, spin(@btnPrimaryBackground, 20));
|
83
|
-
color: #fff;
|
84
|
-
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
85
|
-
}
|
86
|
-
&.old {
|
87
|
-
color: @grayLight;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
th {
|
93
|
-
&.switch {
|
94
|
-
width: 145px;
|
95
|
-
}
|
96
|
-
&.next,
|
97
|
-
&.prev {
|
98
|
-
font-size: @baseFontSize * 1.5;
|
99
|
-
}
|
100
|
-
}
|
101
|
-
|
102
|
-
thead tr:first-child th {
|
103
|
-
cursor: pointer;
|
104
|
-
&:hover{
|
105
|
-
background: @grayLighter;
|
106
|
-
}
|
107
|
-
}
|
108
|
-
/*.dow {
|
109
|
-
border-top: 1px solid #ddd !important;
|
110
|
-
}*/
|
111
|
-
}
|
112
|
-
.input-append,
|
113
|
-
.input-prepend {
|
114
|
-
&.date {
|
115
|
-
.add-on i {
|
116
|
-
display: block;
|
117
|
-
cursor: pointer;
|
118
|
-
width: 16px;
|
119
|
-
height: 16px;
|
120
|
-
}
|
121
|
-
}
|
122
|
-
}
|
@@ -1,132 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Bootstrap v2.3.1-j6
|
3
|
-
*
|
4
|
-
* Copyright 2012 Twitter, Inc
|
5
|
-
* Licensed under the Apache License v2.0
|
6
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
-
*
|
8
|
-
* Designed and built with all the love in the world by @mdo and @fat, extended by @ArnoldDaniels.
|
9
|
-
*/
|
10
|
-
.clearfix {
|
11
|
-
*zoom: 1;
|
12
|
-
}
|
13
|
-
.clearfix:before,
|
14
|
-
.clearfix:after {
|
15
|
-
display: table;
|
16
|
-
content: "";
|
17
|
-
line-height: 0;
|
18
|
-
}
|
19
|
-
.clearfix:after {
|
20
|
-
clear: both;
|
21
|
-
}
|
22
|
-
.hide-text {
|
23
|
-
font: 0/0 a;
|
24
|
-
color: transparent;
|
25
|
-
text-shadow: none;
|
26
|
-
background-color: transparent;
|
27
|
-
border: 0;
|
28
|
-
}
|
29
|
-
.input-block-level {
|
30
|
-
display: block;
|
31
|
-
width: 100%;
|
32
|
-
min-height: 30px;
|
33
|
-
-webkit-box-sizing: border-box;
|
34
|
-
-moz-box-sizing: border-box;
|
35
|
-
box-sizing: border-box;
|
36
|
-
}
|
37
|
-
.btn-file {
|
38
|
-
overflow: hidden;
|
39
|
-
position: relative;
|
40
|
-
vertical-align: middle;
|
41
|
-
}
|
42
|
-
.btn-file > input {
|
43
|
-
position: absolute;
|
44
|
-
top: 0;
|
45
|
-
right: 0;
|
46
|
-
margin: 0;
|
47
|
-
opacity: 0;
|
48
|
-
filter: alpha(opacity=0);
|
49
|
-
transform: translate(-300px, 0) scale(4);
|
50
|
-
font-size: 23px;
|
51
|
-
direction: ltr;
|
52
|
-
cursor: pointer;
|
53
|
-
}
|
54
|
-
.fileupload {
|
55
|
-
margin-bottom: 9px;
|
56
|
-
}
|
57
|
-
.fileupload .uneditable-input {
|
58
|
-
display: inline-block;
|
59
|
-
margin-bottom: 0px;
|
60
|
-
vertical-align: middle;
|
61
|
-
cursor: text;
|
62
|
-
}
|
63
|
-
.fileupload .thumbnail {
|
64
|
-
overflow: hidden;
|
65
|
-
display: inline-block;
|
66
|
-
margin-bottom: 5px;
|
67
|
-
vertical-align: middle;
|
68
|
-
text-align: center;
|
69
|
-
}
|
70
|
-
.fileupload .thumbnail > img {
|
71
|
-
display: inline-block;
|
72
|
-
vertical-align: middle;
|
73
|
-
max-height: 100%;
|
74
|
-
}
|
75
|
-
.fileupload .btn {
|
76
|
-
vertical-align: middle;
|
77
|
-
}
|
78
|
-
.fileupload-exists .fileupload-new,
|
79
|
-
.fileupload-new .fileupload-exists {
|
80
|
-
display: none;
|
81
|
-
}
|
82
|
-
.fileupload-inline .fileupload-controls {
|
83
|
-
display: inline;
|
84
|
-
}
|
85
|
-
.fileupload-new .input-append .btn-file {
|
86
|
-
-webkit-border-radius: 0 3px 3px 0;
|
87
|
-
-moz-border-radius: 0 3px 3px 0;
|
88
|
-
border-radius: 0 3px 3px 0;
|
89
|
-
}
|
90
|
-
.thumbnail-borderless .thumbnail {
|
91
|
-
border: none;
|
92
|
-
padding: 0;
|
93
|
-
-webkit-border-radius: 0;
|
94
|
-
-moz-border-radius: 0;
|
95
|
-
border-radius: 0;
|
96
|
-
-webkit-box-shadow: none;
|
97
|
-
-moz-box-shadow: none;
|
98
|
-
box-shadow: none;
|
99
|
-
}
|
100
|
-
.fileupload-new.thumbnail-borderless .thumbnail {
|
101
|
-
border: 1px solid #ddd;
|
102
|
-
}
|
103
|
-
.control-group.warning .fileupload .uneditable-input {
|
104
|
-
color: #a47e3c;
|
105
|
-
border-color: #a47e3c;
|
106
|
-
}
|
107
|
-
.control-group.warning .fileupload .fileupload-preview {
|
108
|
-
color: #a47e3c;
|
109
|
-
}
|
110
|
-
.control-group.warning .fileupload .thumbnail {
|
111
|
-
border-color: #a47e3c;
|
112
|
-
}
|
113
|
-
.control-group.error .fileupload .uneditable-input {
|
114
|
-
color: #b94a48;
|
115
|
-
border-color: #b94a48;
|
116
|
-
}
|
117
|
-
.control-group.error .fileupload .fileupload-preview {
|
118
|
-
color: #b94a48;
|
119
|
-
}
|
120
|
-
.control-group.error .fileupload .thumbnail {
|
121
|
-
border-color: #b94a48;
|
122
|
-
}
|
123
|
-
.control-group.success .fileupload .uneditable-input {
|
124
|
-
color: #468847;
|
125
|
-
border-color: #468847;
|
126
|
-
}
|
127
|
-
.control-group.success .fileupload .fileupload-preview {
|
128
|
-
color: #468847;
|
129
|
-
}
|
130
|
-
.control-group.success .fileupload .thumbnail {
|
131
|
-
border-color: #468847;
|
132
|
-
}
|
@@ -1,169 +0,0 @@
|
|
1
|
-
/* ===========================================================
|
2
|
-
* bootstrap-fileupload.js j2
|
3
|
-
* http://jasny.github.com/bootstrap/javascript.html#fileupload
|
4
|
-
* ===========================================================
|
5
|
-
* Copyright 2012 Jasny BV, Netherlands.
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License")
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
* ========================================================== */
|
19
|
-
|
20
|
-
!function ($) {
|
21
|
-
|
22
|
-
"use strict"; // jshint ;_
|
23
|
-
|
24
|
-
/* FILEUPLOAD PUBLIC CLASS DEFINITION
|
25
|
-
* ================================= */
|
26
|
-
|
27
|
-
var Fileupload = function (element, options) {
|
28
|
-
this.$element = $(element)
|
29
|
-
this.type = this.$element.data('uploadtype') || (this.$element.find('.thumbnail').length > 0 ? "image" : "file")
|
30
|
-
|
31
|
-
this.$input = this.$element.find(':file')
|
32
|
-
if (this.$input.length === 0) return
|
33
|
-
|
34
|
-
this.name = this.$input.attr('name') || options.name
|
35
|
-
|
36
|
-
this.$hidden = this.$element.find('input[type=hidden][name="'+this.name+'"]')
|
37
|
-
if (this.$hidden.length === 0) {
|
38
|
-
this.$hidden = $('<input type="hidden" />')
|
39
|
-
this.$element.prepend(this.$hidden)
|
40
|
-
}
|
41
|
-
|
42
|
-
this.$preview = this.$element.find('.fileupload-preview')
|
43
|
-
var height = this.$preview.css('height')
|
44
|
-
if (this.$preview.css('display') != 'inline' && height != '0px' && height != 'none') this.$preview.css('line-height', height)
|
45
|
-
|
46
|
-
this.original = {
|
47
|
-
'exists': this.$element.hasClass('fileupload-exists'),
|
48
|
-
'preview': this.$preview.html(),
|
49
|
-
'hiddenVal': this.$hidden.val()
|
50
|
-
}
|
51
|
-
|
52
|
-
this.$remove = this.$element.find('[data-dismiss="fileupload"]')
|
53
|
-
|
54
|
-
this.$element.find('[data-trigger="fileupload"]').on('click.fileupload', $.proxy(this.trigger, this))
|
55
|
-
|
56
|
-
this.listen()
|
57
|
-
}
|
58
|
-
|
59
|
-
Fileupload.prototype = {
|
60
|
-
|
61
|
-
listen: function() {
|
62
|
-
this.$input.on('change.fileupload', $.proxy(this.change, this))
|
63
|
-
$(this.$input[0].form).on('reset.fileupload', $.proxy(this.reset, this))
|
64
|
-
if (this.$remove) this.$remove.on('click.fileupload', $.proxy(this.clear, this))
|
65
|
-
},
|
66
|
-
|
67
|
-
change: function(e, invoked) {
|
68
|
-
if (invoked === 'clear') return
|
69
|
-
|
70
|
-
var file = e.target.files !== undefined ? e.target.files[0] : (e.target.value ? { name: e.target.value.replace(/^.+\\/, '') } : null)
|
71
|
-
|
72
|
-
if (!file) {
|
73
|
-
this.clear()
|
74
|
-
return
|
75
|
-
}
|
76
|
-
|
77
|
-
this.$hidden.val('')
|
78
|
-
this.$hidden.attr('name', '')
|
79
|
-
this.$input.attr('name', this.name)
|
80
|
-
|
81
|
-
if (this.type === "image" && this.$preview.length > 0 && (typeof file.type !== "undefined" ? file.type.match('image.*') : file.name.match(/\.(gif|png|jpe?g)$/i)) && typeof FileReader !== "undefined") {
|
82
|
-
var reader = new FileReader()
|
83
|
-
var preview = this.$preview
|
84
|
-
var element = this.$element
|
85
|
-
|
86
|
-
reader.onload = function(e) {
|
87
|
-
preview.html('<img src="' + e.target.result + '" ' + (preview.css('max-height') != 'none' ? 'style="max-height: ' + preview.css('max-height') + ';"' : '') + ' />')
|
88
|
-
element.addClass('fileupload-exists').removeClass('fileupload-new')
|
89
|
-
}
|
90
|
-
|
91
|
-
reader.readAsDataURL(file)
|
92
|
-
} else {
|
93
|
-
this.$preview.text(file.name)
|
94
|
-
this.$element.addClass('fileupload-exists').removeClass('fileupload-new')
|
95
|
-
}
|
96
|
-
},
|
97
|
-
|
98
|
-
clear: function(e) {
|
99
|
-
this.$hidden.val('')
|
100
|
-
this.$hidden.attr('name', this.name)
|
101
|
-
this.$input.attr('name', '')
|
102
|
-
|
103
|
-
//ie8+ doesn't support changing the value of input with type=file so clone instead
|
104
|
-
if (navigator.userAgent.match(/msie/i)){
|
105
|
-
var inputClone = this.$input.clone(true);
|
106
|
-
this.$input.after(inputClone);
|
107
|
-
this.$input.remove();
|
108
|
-
this.$input = inputClone;
|
109
|
-
}else{
|
110
|
-
this.$input.val('')
|
111
|
-
}
|
112
|
-
|
113
|
-
this.$preview.html('')
|
114
|
-
this.$element.addClass('fileupload-new').removeClass('fileupload-exists')
|
115
|
-
|
116
|
-
if (e) {
|
117
|
-
this.$input.trigger('change', [ 'clear' ])
|
118
|
-
e.preventDefault()
|
119
|
-
}
|
120
|
-
},
|
121
|
-
|
122
|
-
reset: function(e) {
|
123
|
-
this.clear()
|
124
|
-
|
125
|
-
this.$hidden.val(this.original.hiddenVal)
|
126
|
-
this.$preview.html(this.original.preview)
|
127
|
-
|
128
|
-
if (this.original.exists) this.$element.addClass('fileupload-exists').removeClass('fileupload-new')
|
129
|
-
else this.$element.addClass('fileupload-new').removeClass('fileupload-exists')
|
130
|
-
},
|
131
|
-
|
132
|
-
trigger: function(e) {
|
133
|
-
this.$input.trigger('click')
|
134
|
-
e.preventDefault()
|
135
|
-
}
|
136
|
-
}
|
137
|
-
|
138
|
-
|
139
|
-
/* FILEUPLOAD PLUGIN DEFINITION
|
140
|
-
* =========================== */
|
141
|
-
|
142
|
-
$.fn.fileupload = function (options) {
|
143
|
-
return this.each(function () {
|
144
|
-
var $this = $(this)
|
145
|
-
, data = $this.data('fileupload')
|
146
|
-
if (!data) $this.data('fileupload', (data = new Fileupload(this, options)))
|
147
|
-
if (typeof options == 'string') data[options]()
|
148
|
-
})
|
149
|
-
}
|
150
|
-
|
151
|
-
$.fn.fileupload.Constructor = Fileupload
|
152
|
-
|
153
|
-
|
154
|
-
/* FILEUPLOAD DATA-API
|
155
|
-
* ================== */
|
156
|
-
|
157
|
-
$(document).on('click.fileupload.data-api', '[data-provides="fileupload"]', function (e) {
|
158
|
-
var $this = $(this)
|
159
|
-
if ($this.data('fileupload')) return
|
160
|
-
$this.fileupload($this.data())
|
161
|
-
|
162
|
-
var $target = $(e.target).closest('[data-dismiss="fileupload"],[data-trigger="fileupload"]');
|
163
|
-
if ($target.length > 0) {
|
164
|
-
$target.trigger('click.fileupload')
|
165
|
-
e.preventDefault()
|
166
|
-
}
|
167
|
-
})
|
168
|
-
|
169
|
-
}(window.jQuery);
|
@@ -1,31 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Bootstrap v2.3.1-j6
|
3
|
-
*
|
4
|
-
* Copyright 2012 Twitter, Inc
|
5
|
-
* Licensed under the Apache License v2.0
|
6
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
-
*
|
8
|
-
* Designed and built with all the love in the world by @mdo and @fat, extended by @ArnoldDaniels.
|
9
|
-
*/
|
10
|
-
.clearfix{*zoom:1;}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0;}
|
11
|
-
.clearfix:after{clear:both;}
|
12
|
-
.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;}
|
13
|
-
.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}
|
14
|
-
.btn-file{overflow:hidden;position:relative;vertical-align:middle;}.btn-file>input{position:absolute;top:0;right:0;margin:0;opacity:0;filter:alpha(opacity=0);transform:translate(-300px, 0) scale(4);font-size:23px;direction:ltr;cursor:pointer;}
|
15
|
-
.fileupload{margin-bottom:9px;}.fileupload .uneditable-input{display:inline-block;margin-bottom:0px;vertical-align:middle;cursor:text;}
|
16
|
-
.fileupload .thumbnail{overflow:hidden;display:inline-block;margin-bottom:5px;vertical-align:middle;text-align:center;}.fileupload .thumbnail>img{display:inline-block;vertical-align:middle;max-height:100%;}
|
17
|
-
.fileupload .btn{vertical-align:middle;}
|
18
|
-
.fileupload-exists .fileupload-new,.fileupload-new .fileupload-exists{display:none;}
|
19
|
-
.fileupload-inline .fileupload-controls{display:inline;}
|
20
|
-
.fileupload-new .input-append .btn-file{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;}
|
21
|
-
.thumbnail-borderless .thumbnail{border:none;padding:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
|
22
|
-
.fileupload-new.thumbnail-borderless .thumbnail{border:1px solid #ddd;}
|
23
|
-
.control-group.warning .fileupload .uneditable-input{color:#a47e3c;border-color:#a47e3c;}
|
24
|
-
.control-group.warning .fileupload .fileupload-preview{color:#a47e3c;}
|
25
|
-
.control-group.warning .fileupload .thumbnail{border-color:#a47e3c;}
|
26
|
-
.control-group.error .fileupload .uneditable-input{color:#b94a48;border-color:#b94a48;}
|
27
|
-
.control-group.error .fileupload .fileupload-preview{color:#b94a48;}
|
28
|
-
.control-group.error .fileupload .thumbnail{border-color:#b94a48;}
|
29
|
-
.control-group.success .fileupload .uneditable-input{color:#468847;border-color:#468847;}
|
30
|
-
.control-group.success .fileupload .fileupload-preview{color:#468847;}
|
31
|
-
.control-group.success .fileupload .thumbnail{border-color:#468847;}
|