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.
Files changed (254) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +25 -1
  4. data/bin/repsheet_visualizer +10 -8
  5. data/config.ru +8 -0
  6. data/lib/repsheet_visualizer/application/app.rb +120 -107
  7. data/lib/repsheet_visualizer/application/views/404.erb +66 -0
  8. data/lib/repsheet_visualizer/application/views/500.erb +66 -0
  9. data/lib/repsheet_visualizer/version.rb +1 -1
  10. metadata +4 -245
  11. data/redesign/actor.html +0 -237
  12. data/redesign/blacklist.html +0 -274
  13. data/redesign/css/App.css +0 -3436
  14. data/redesign/css/Login.css +0 -88
  15. data/redesign/css/bootstrap.min.css +0 -9
  16. data/redesign/css/custom.css +0 -0
  17. data/redesign/css/font-awesome.min.css +0 -395
  18. data/redesign/fonts/FontAwesome.otf +0 -0
  19. data/redesign/fonts/fontawesome-webfont.eot +0 -0
  20. data/redesign/fonts/fontawesome-webfont.svg +0 -414
  21. data/redesign/fonts/fontawesome-webfont.ttf +0 -0
  22. data/redesign/fonts/fontawesome-webfont.woff +0 -0
  23. data/redesign/fonts/glyphicons-halflings-regular.eot +0 -0
  24. data/redesign/fonts/glyphicons-halflings-regular.svg +0 -228
  25. data/redesign/fonts/glyphicons-halflings-regular.ttf +0 -0
  26. data/redesign/fonts/glyphicons-halflings-regular.woff +0 -0
  27. data/redesign/img/jquery/handle-vertical.png +0 -0
  28. data/redesign/img/jquery/handle.png +0 -0
  29. data/redesign/img/layout/sidebar-bg.png +0 -0
  30. data/redesign/img/loaders/ajax-loader.gif +0 -0
  31. data/redesign/img/photos/map.png +0 -0
  32. data/redesign/index.html +0 -333
  33. data/redesign/js/App.js +0 -372
  34. data/redesign/js/Login.js +0 -17
  35. data/redesign/js/demos/buttons.js +0 -7
  36. data/redesign/js/demos/calendar.js +0 -142
  37. data/redesign/js/demos/charts/flot/area.js +0 -73
  38. data/redesign/js/demos/charts/flot/chart1.js +0 -77
  39. data/redesign/js/demos/charts/flot/chart2.js +0 -70
  40. data/redesign/js/demos/charts/flot/chart3.js +0 -71
  41. data/redesign/js/demos/charts/flot/chart4.js +0 -69
  42. data/redesign/js/demos/charts/flot/donut.js +0 -49
  43. data/redesign/js/demos/charts/flot/horizontal.js +0 -56
  44. data/redesign/js/demos/charts/flot/line.js +0 -76
  45. data/redesign/js/demos/charts/flot/pie.js +0 -50
  46. data/redesign/js/demos/charts/flot/scatter.js +0 -62
  47. data/redesign/js/demos/charts/flot/stacked-area.js +0 -86
  48. data/redesign/js/demos/charts/flot/stacked-horizontal.js +0 -60
  49. data/redesign/js/demos/charts/flot/stacked-vertical.js +0 -75
  50. data/redesign/js/demos/charts/flot/vertical.js +0 -70
  51. data/redesign/js/demos/charts/morris/area.js +0 -28
  52. data/redesign/js/demos/charts/morris/bar.js +0 -29
  53. data/redesign/js/demos/charts/morris/donut.js +0 -26
  54. data/redesign/js/demos/charts/morris/line.js +0 -30
  55. data/redesign/js/demos/dashboard.js +0 -26
  56. data/redesign/js/demos/form-extended.js +0 -61
  57. data/redesign/js/demos/popups.js +0 -16
  58. data/redesign/js/demos/pricing.js +0 -10
  59. data/redesign/js/demos/sliders.js +0 -77
  60. data/redesign/js/libs/bootstrap.js +0 -1999
  61. data/redesign/js/libs/bootstrap.min.js +0 -6
  62. data/redesign/js/libs/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  63. data/redesign/js/libs/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  64. data/redesign/js/libs/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  65. data/redesign/js/libs/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  66. data/redesign/js/libs/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  67. data/redesign/js/libs/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  68. data/redesign/js/libs/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  69. data/redesign/js/libs/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  70. data/redesign/js/libs/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  71. data/redesign/js/libs/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  72. data/redesign/js/libs/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  73. data/redesign/js/libs/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  74. data/redesign/js/libs/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  75. data/redesign/js/libs/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  76. data/redesign/js/libs/css/ui-lightness/jquery-ui-1.9.2.custom.css +0 -294
  77. data/redesign/js/libs/css/ui-lightness/jquery-ui-1.9.2.custom.min.css +0 -7
  78. data/redesign/js/libs/jquery-1.9.1.min.js +0 -5
  79. data/redesign/js/libs/jquery-ui-1.9.2.custom.min.js +0 -6
  80. data/redesign/js/libs/jquery.min.map +0 -1
  81. data/redesign/js/libs/raphael-2.1.2.min.js +0 -11
  82. data/redesign/js/plugins/autosize/jquery.autosize.min.js +0 -7
  83. data/redesign/js/plugins/datatables/DT_bootstrap.js +0 -148
  84. data/redesign/js/plugins/datatables/img/Sorting icons.psd +0 -0
  85. data/redesign/js/plugins/datatables/img/back_disabled.png +0 -0
  86. data/redesign/js/plugins/datatables/img/back_enabled.png +0 -0
  87. data/redesign/js/plugins/datatables/img/back_enabled_hover.png +0 -0
  88. data/redesign/js/plugins/datatables/img/datatable-row-openclose.png +0 -0
  89. data/redesign/js/plugins/datatables/img/favicon.ico +0 -0
  90. data/redesign/js/plugins/datatables/img/forward_disabled.png +0 -0
  91. data/redesign/js/plugins/datatables/img/forward_enabled.png +0 -0
  92. data/redesign/js/plugins/datatables/img/forward_enabled_hover.png +0 -0
  93. data/redesign/js/plugins/datatables/img/sort_asc.png +0 -0
  94. data/redesign/js/plugins/datatables/img/sort_asc_disabled.png +0 -0
  95. data/redesign/js/plugins/datatables/img/sort_both.png +0 -0
  96. data/redesign/js/plugins/datatables/img/sort_desc.png +0 -0
  97. data/redesign/js/plugins/datatables/img/sort_desc_disabled.png +0 -0
  98. data/redesign/js/plugins/datatables/jquery.dataTables.min.js +0 -155
  99. data/redesign/js/plugins/datepicker/bootstrap-datepicker.js +0 -1258
  100. data/redesign/js/plugins/datepicker/datepicker.css +0 -481
  101. data/redesign/js/plugins/datepicker/less/datepicker.less +0 -122
  102. data/redesign/js/plugins/fileupload/bootstrap-fileupload.css +0 -132
  103. data/redesign/js/plugins/fileupload/bootstrap-fileupload.js +0 -169
  104. data/redesign/js/plugins/fileupload/bootstrap-fileupload.min.css +0 -31
  105. data/redesign/js/plugins/fileupload/bootstrap-fileupload.min.js +0 -7
  106. data/redesign/js/plugins/flot/jquery.flot.js +0 -2599
  107. data/redesign/js/plugins/flot/jquery.flot.orderBars.js +0 -186
  108. data/redesign/js/plugins/flot/jquery.flot.pie.js +0 -750
  109. data/redesign/js/plugins/flot/jquery.flot.resize.js +0 -57
  110. data/redesign/js/plugins/flot/jquery.flot.stack.js +0 -184
  111. data/redesign/js/plugins/flot/jquery.flot.tooltip.min.js +0 -14
  112. data/redesign/js/plugins/fullcalendar/fullcalendar.css +0 -589
  113. data/redesign/js/plugins/fullcalendar/fullcalendar.js +0 -6110
  114. data/redesign/js/plugins/fullcalendar/fullcalendar.min.js +0 -7
  115. data/redesign/js/plugins/fullcalendar/fullcalendar.print.css +0 -32
  116. data/redesign/js/plugins/fullcalendar/gcal.js +0 -107
  117. data/redesign/js/plugins/howl/howl.js +0 -70
  118. data/redesign/js/plugins/howl/howl.min.js +0 -2
  119. data/redesign/js/plugins/icheck/jquery.icheck.js +0 -462
  120. data/redesign/js/plugins/icheck/jquery.icheck.min.js +0 -11
  121. data/redesign/js/plugins/icheck/skins/all.css +0 -61
  122. data/redesign/js/plugins/icheck/skins/flat/_all.css +0 -540
  123. data/redesign/js/plugins/icheck/skins/flat/aero.css +0 -54
  124. data/redesign/js/plugins/icheck/skins/flat/aero.png +0 -0
  125. data/redesign/js/plugins/icheck/skins/flat/aero@2x.png +0 -0
  126. data/redesign/js/plugins/icheck/skins/flat/blue.css +0 -54
  127. data/redesign/js/plugins/icheck/skins/flat/blue.png +0 -0
  128. data/redesign/js/plugins/icheck/skins/flat/blue@2x.png +0 -0
  129. data/redesign/js/plugins/icheck/skins/flat/flat.css +0 -54
  130. data/redesign/js/plugins/icheck/skins/flat/flat.png +0 -0
  131. data/redesign/js/plugins/icheck/skins/flat/flat@2x.png +0 -0
  132. data/redesign/js/plugins/icheck/skins/flat/green.css +0 -54
  133. data/redesign/js/plugins/icheck/skins/flat/green.png +0 -0
  134. data/redesign/js/plugins/icheck/skins/flat/green@2x.png +0 -0
  135. data/redesign/js/plugins/icheck/skins/flat/grey.css +0 -54
  136. data/redesign/js/plugins/icheck/skins/flat/grey.png +0 -0
  137. data/redesign/js/plugins/icheck/skins/flat/grey@2x.png +0 -0
  138. data/redesign/js/plugins/icheck/skins/flat/orange.css +0 -54
  139. data/redesign/js/plugins/icheck/skins/flat/orange.png +0 -0
  140. data/redesign/js/plugins/icheck/skins/flat/orange@2x.png +0 -0
  141. data/redesign/js/plugins/icheck/skins/flat/pink.css +0 -54
  142. data/redesign/js/plugins/icheck/skins/flat/pink.png +0 -0
  143. data/redesign/js/plugins/icheck/skins/flat/pink@2x.png +0 -0
  144. data/redesign/js/plugins/icheck/skins/flat/purple.css +0 -54
  145. data/redesign/js/plugins/icheck/skins/flat/purple.png +0 -0
  146. data/redesign/js/plugins/icheck/skins/flat/purple@2x.png +0 -0
  147. data/redesign/js/plugins/icheck/skins/flat/red.css +0 -54
  148. data/redesign/js/plugins/icheck/skins/flat/red.png +0 -0
  149. data/redesign/js/plugins/icheck/skins/flat/red@2x.png +0 -0
  150. data/redesign/js/plugins/icheck/skins/flat/yellow.css +0 -54
  151. data/redesign/js/plugins/icheck/skins/flat/yellow.png +0 -0
  152. data/redesign/js/plugins/icheck/skins/flat/yellow@2x.png +0 -0
  153. data/redesign/js/plugins/icheck/skins/futurico/futurico.css +0 -54
  154. data/redesign/js/plugins/icheck/skins/futurico/futurico.png +0 -0
  155. data/redesign/js/plugins/icheck/skins/futurico/futurico@2x.png +0 -0
  156. data/redesign/js/plugins/icheck/skins/line/_all.css +0 -740
  157. data/redesign/js/plugins/icheck/skins/line/aero.css +0 -74
  158. data/redesign/js/plugins/icheck/skins/line/blue.css +0 -74
  159. data/redesign/js/plugins/icheck/skins/line/green.css +0 -74
  160. data/redesign/js/plugins/icheck/skins/line/grey.css +0 -74
  161. data/redesign/js/plugins/icheck/skins/line/line.css +0 -74
  162. data/redesign/js/plugins/icheck/skins/line/line.png +0 -0
  163. data/redesign/js/plugins/icheck/skins/line/line@2x.png +0 -0
  164. data/redesign/js/plugins/icheck/skins/line/orange.css +0 -74
  165. data/redesign/js/plugins/icheck/skins/line/pink.css +0 -74
  166. data/redesign/js/plugins/icheck/skins/line/purple.css +0 -74
  167. data/redesign/js/plugins/icheck/skins/line/red.css +0 -74
  168. data/redesign/js/plugins/icheck/skins/line/yellow.css +0 -74
  169. data/redesign/js/plugins/icheck/skins/minimal/_all.css +0 -600
  170. data/redesign/js/plugins/icheck/skins/minimal/aero.css +0 -60
  171. data/redesign/js/plugins/icheck/skins/minimal/aero.png +0 -0
  172. data/redesign/js/plugins/icheck/skins/minimal/aero@2x.png +0 -0
  173. data/redesign/js/plugins/icheck/skins/minimal/blue.css +0 -60
  174. data/redesign/js/plugins/icheck/skins/minimal/blue.png +0 -0
  175. data/redesign/js/plugins/icheck/skins/minimal/blue@2x.png +0 -0
  176. data/redesign/js/plugins/icheck/skins/minimal/green.css +0 -60
  177. data/redesign/js/plugins/icheck/skins/minimal/green.png +0 -0
  178. data/redesign/js/plugins/icheck/skins/minimal/green@2x.png +0 -0
  179. data/redesign/js/plugins/icheck/skins/minimal/grey.css +0 -60
  180. data/redesign/js/plugins/icheck/skins/minimal/grey.png +0 -0
  181. data/redesign/js/plugins/icheck/skins/minimal/grey@2x.png +0 -0
  182. data/redesign/js/plugins/icheck/skins/minimal/minimal.css +0 -60
  183. data/redesign/js/plugins/icheck/skins/minimal/minimal.png +0 -0
  184. data/redesign/js/plugins/icheck/skins/minimal/minimal@2x.png +0 -0
  185. data/redesign/js/plugins/icheck/skins/minimal/orange.css +0 -60
  186. data/redesign/js/plugins/icheck/skins/minimal/orange.png +0 -0
  187. data/redesign/js/plugins/icheck/skins/minimal/orange@2x.png +0 -0
  188. data/redesign/js/plugins/icheck/skins/minimal/pink.css +0 -60
  189. data/redesign/js/plugins/icheck/skins/minimal/pink.png +0 -0
  190. data/redesign/js/plugins/icheck/skins/minimal/pink@2x.png +0 -0
  191. data/redesign/js/plugins/icheck/skins/minimal/purple.css +0 -60
  192. data/redesign/js/plugins/icheck/skins/minimal/purple.png +0 -0
  193. data/redesign/js/plugins/icheck/skins/minimal/purple@2x.png +0 -0
  194. data/redesign/js/plugins/icheck/skins/minimal/red.css +0 -60
  195. data/redesign/js/plugins/icheck/skins/minimal/red.png +0 -0
  196. data/redesign/js/plugins/icheck/skins/minimal/red@2x.png +0 -0
  197. data/redesign/js/plugins/icheck/skins/minimal/yellow.css +0 -60
  198. data/redesign/js/plugins/icheck/skins/minimal/yellow.png +0 -0
  199. data/redesign/js/plugins/icheck/skins/minimal/yellow@2x.png +0 -0
  200. data/redesign/js/plugins/icheck/skins/polaris/polaris.css +0 -60
  201. data/redesign/js/plugins/icheck/skins/polaris/polaris.png +0 -0
  202. data/redesign/js/plugins/icheck/skins/polaris/polaris@2x.png +0 -0
  203. data/redesign/js/plugins/icheck/skins/square/_all.css +0 -600
  204. data/redesign/js/plugins/icheck/skins/square/aero.css +0 -60
  205. data/redesign/js/plugins/icheck/skins/square/aero.png +0 -0
  206. data/redesign/js/plugins/icheck/skins/square/aero@2x.png +0 -0
  207. data/redesign/js/plugins/icheck/skins/square/blue.css +0 -60
  208. data/redesign/js/plugins/icheck/skins/square/blue.png +0 -0
  209. data/redesign/js/plugins/icheck/skins/square/blue@2x.png +0 -0
  210. data/redesign/js/plugins/icheck/skins/square/green.css +0 -60
  211. data/redesign/js/plugins/icheck/skins/square/green.png +0 -0
  212. data/redesign/js/plugins/icheck/skins/square/green@2x.png +0 -0
  213. data/redesign/js/plugins/icheck/skins/square/grey.css +0 -60
  214. data/redesign/js/plugins/icheck/skins/square/grey.png +0 -0
  215. data/redesign/js/plugins/icheck/skins/square/grey@2x.png +0 -0
  216. data/redesign/js/plugins/icheck/skins/square/orange.css +0 -60
  217. data/redesign/js/plugins/icheck/skins/square/orange.png +0 -0
  218. data/redesign/js/plugins/icheck/skins/square/orange@2x.png +0 -0
  219. data/redesign/js/plugins/icheck/skins/square/pink.css +0 -60
  220. data/redesign/js/plugins/icheck/skins/square/pink.png +0 -0
  221. data/redesign/js/plugins/icheck/skins/square/pink@2x.png +0 -0
  222. data/redesign/js/plugins/icheck/skins/square/purple.css +0 -60
  223. data/redesign/js/plugins/icheck/skins/square/purple.png +0 -0
  224. data/redesign/js/plugins/icheck/skins/square/purple@2x.png +0 -0
  225. data/redesign/js/plugins/icheck/skins/square/red.css +0 -60
  226. data/redesign/js/plugins/icheck/skins/square/red.png +0 -0
  227. data/redesign/js/plugins/icheck/skins/square/red@2x.png +0 -0
  228. data/redesign/js/plugins/icheck/skins/square/square.css +0 -60
  229. data/redesign/js/plugins/icheck/skins/square/square.png +0 -0
  230. data/redesign/js/plugins/icheck/skins/square/square@2x.png +0 -0
  231. data/redesign/js/plugins/icheck/skins/square/yellow.css +0 -60
  232. data/redesign/js/plugins/icheck/skins/square/yellow.png +0 -0
  233. data/redesign/js/plugins/icheck/skins/square/yellow@2x.png +0 -0
  234. data/redesign/js/plugins/magnific/jquery.magnific-popup.js +0 -2026
  235. data/redesign/js/plugins/magnific/jquery.magnific-popup.min.js +0 -4
  236. data/redesign/js/plugins/magnific/magnific-popup.css +0 -396
  237. data/redesign/js/plugins/morris/morris.css +0 -1
  238. data/redesign/js/plugins/morris/morris.min.js +0 -1
  239. data/redesign/js/plugins/parsley/parsley.js +0 -1363
  240. data/redesign/js/plugins/select2/select2-spinner.gif +0 -0
  241. data/redesign/js/plugins/select2/select2.css +0 -615
  242. data/redesign/js/plugins/select2/select2.js +0 -3217
  243. data/redesign/js/plugins/select2/select2.min.js +0 -22
  244. data/redesign/js/plugins/select2/select2.png +0 -0
  245. data/redesign/js/plugins/select2/select2x2.png +0 -0
  246. data/redesign/js/plugins/simplecolorpicker/jquery.simplecolorpicker.css +0 -98
  247. data/redesign/js/plugins/simplecolorpicker/jquery.simplecolorpicker.js +0 -211
  248. data/redesign/js/plugins/sparkline/jquery.sparkline.min.js +0 -5
  249. data/redesign/js/plugins/tableCheckable/jquery.tableCheckable.js +0 -122
  250. data/redesign/js/plugins/textarea-counter/jquery.textarea-counter.js +0 -163
  251. data/redesign/js/plugins/timepicker/bootstrap-timepicker.css +0 -121
  252. data/redesign/js/plugins/timepicker/bootstrap-timepicker.js +0 -893
  253. data/redesign/suspects.html +0 -273
  254. 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;}