inline_forms 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. data/lib/app/assets/images/jquery.ui/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  2. data/lib/app/assets/images/jquery.ui/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  3. data/lib/app/assets/images/jquery.ui/ui-bg_flat_10_000000_40x100.png +0 -0
  4. data/lib/app/assets/images/jquery.ui/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  5. data/lib/app/assets/images/jquery.ui/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  6. data/lib/app/assets/images/jquery.ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  7. data/lib/app/assets/images/jquery.ui/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  8. data/lib/app/assets/images/jquery.ui/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  9. data/lib/app/assets/images/jquery.ui/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  10. data/lib/app/assets/images/jquery.ui/ui-icons_222222_256x240.png +0 -0
  11. data/lib/app/assets/images/jquery.ui/ui-icons_228ef1_256x240.png +0 -0
  12. data/lib/app/assets/images/jquery.ui/ui-icons_ef8c08_256x240.png +0 -0
  13. data/lib/app/assets/images/jquery.ui/ui-icons_ffd27a_256x240.png +0 -0
  14. data/lib/app/assets/images/jquery.ui/ui-icons_ffffff_256x240.png +0 -0
  15. data/lib/app/assets/stylesheets/inline_forms.css +11 -0
  16. data/lib/app/assets/stylesheets/inline_forms_application.css +1 -1
  17. data/lib/app/assets/stylesheets/{jquery-ui-1.8.16.custom.css → ui-lightness/jquery-ui-1.8.17.custom.css} +247 -39
  18. data/lib/app/helpers/form_elements/slider_with_values.rb +46 -13
  19. data/lib/app/helpers/inline_forms_helper.rb +8 -2
  20. data/lib/inline_forms/version.rb +1 -1
  21. metadata +19 -5
@@ -347,3 +347,14 @@ ul.checklist li {
347
347
  .ckeditor_area .cke_top, .ckeditor_area .cke_bottom, .ckeditor_area .cke_border {
348
348
  display: none;
349
349
  }
350
+
351
+ /* jQuery ui Slider 8 */
352
+ .slider {
353
+ width: 300px;
354
+ float: left;
355
+ }
356
+ .slider_value {
357
+ float: left;
358
+ min-width: 60px;
359
+ text-align: right;
360
+ }
@@ -4,5 +4,5 @@
4
4
  * the top of the compiled file, but it's generally better to create a new file per style scope.
5
5
  *= require 'inline_forms'
6
6
  *= require 'validation_tooltips'
7
- *= require 'jquery-ui-1.8.16.custom.css'
7
+ *= require 'ui-lightness/jquery-ui-1.8.17.custom.css'
8
8
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * jQuery UI CSS Framework 1.8.16
2
+ * jQuery UI CSS Framework 1.8.17
3
3
  *
4
4
  * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -13,12 +13,9 @@
13
13
  .ui-helper-hidden { display: none; }
14
14
  .ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
15
15
  .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
16
- .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
17
- .ui-helper-clearfix { display: inline-block; }
18
- /* required comment for clearfix to work in Opera \*/
19
- * html .ui-helper-clearfix { height:1%; }
20
- .ui-helper-clearfix { display:block; }
21
- /* end clearfix */
16
+ .ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
17
+ .ui-helper-clearfix:after { clear: both; }
18
+ .ui-helper-clearfix { zoom: 1; }
22
19
  .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
23
20
 
24
21
 
@@ -42,7 +39,7 @@
42
39
 
43
40
 
44
41
  /*
45
- * jQuery UI CSS Framework 1.8.16
42
+ * jQuery UI CSS Framework 1.8.17
46
43
  *
47
44
  * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
48
45
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -50,35 +47,35 @@
50
47
  *
51
48
  * http://docs.jquery.com/UI/Theming/API
52
49
  *
53
- * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Segoe%20UI,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=8px&bgColorHeader=817865&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=45&borderColorHeader=494437&fcHeader=ffffff&iconColorHeader=fadc7a&bgColorContent=feeebd&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=8e846b&fcContent=383838&iconColorContent=d19405&bgColorDefault=fece2f&bgTextureDefault=12_gloss_wave.png&bgImgOpacityDefault=60&borderColorDefault=d19405&fcDefault=4c3000&iconColorDefault=3d3d3d&bgColorHover=ffdd57&bgTextureHover=12_gloss_wave.png&bgImgOpacityHover=70&borderColorHover=a45b13&fcHover=381f00&iconColorHover=bd7b00&bgColorActive=ffffff&bgTextureActive=05_inset_soft.png&bgImgOpacityActive=30&borderColorActive=655e4e&fcActive=0074c7&iconColorActive=eb990f&bgColorHighlight=fff9e5&bgTextureHighlight=12_gloss_wave.png&bgImgOpacityHighlight=90&borderColorHighlight=eeb420&fcHighlight=1f1f1f&iconColorHighlight=ed9f26&bgColorError=d34d17&bgTextureError=07_diagonals_medium.png&bgImgOpacityError=20&borderColorError=ffb73d&fcError=ffffff&iconColorError=ffe180&bgColorOverlay=5c5c5c&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=50&opacityOverlay=80&bgColorShadow=cccccc&bgTextureShadow=01_flat.png&bgImgOpacityShadow=30&opacityShadow=60&thicknessShadow=7px&offsetTopShadow=-7px&offsetLeftShadow=-7px&cornerRadiusShadow=8px
50
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
54
51
  */
55
52
 
56
53
 
57
54
  /* Component containers
58
55
  ----------------------------------*/
59
- .ui-widget { font-family: Segoe UI, Arial, sans-serif; font-size: 1.1em; }
56
+ .ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; }
60
57
  .ui-widget .ui-widget { font-size: 1em; }
61
- .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Segoe UI, Arial, sans-serif; font-size: 1em; }
62
- .ui-widget-content { border: 1px solid #8e846b; background: #feeebd url(jquery.ui/ui-bg_highlight-soft_100_feeebd_1x100.png) 50% top repeat-x; color: #383838; }
63
- .ui-widget-content a { color: #383838; }
64
- .ui-widget-header { border: 1px solid #494437; background: #817865 url(jquery.ui/ui-bg_gloss-wave_45_817865_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; }
58
+ .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; }
59
+ .ui-widget-content { border: 1px solid #dddddd; background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; color: #333333; }
60
+ .ui-widget-content a { color: #333333; }
61
+ .ui-widget-header { border: 1px solid #e78f08; background: #f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; }
65
62
  .ui-widget-header a { color: #ffffff; }
66
63
 
67
64
  /* Interaction states
68
65
  ----------------------------------*/
69
- .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d19405; background: #fece2f url(jquery.ui/ui-bg_gloss-wave_60_fece2f_500x100.png) 50% 50% repeat-x; font-weight: bold; color: #4c3000; }
70
- .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #4c3000; text-decoration: none; }
71
- .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #a45b13; background: #ffdd57 url(jquery.ui/ui-bg_gloss-wave_70_ffdd57_500x100.png) 50% 50% repeat-x; font-weight: bold; color: #381f00; }
72
- .ui-state-hover a, .ui-state-hover a:hover { color: #381f00; text-decoration: none; }
73
- .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #655e4e; background: #ffffff url(jquery.ui/ui-bg_inset-soft_30_ffffff_1x100.png) 50% 50% repeat-x; font-weight: bold; color: #0074c7; }
74
- .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #0074c7; text-decoration: none; }
66
+ .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1c94c4; }
67
+ .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #1c94c4; text-decoration: none; }
68
+ .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #fbcb09; background: #fdf5ce url(images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #c77405; }
69
+ .ui-state-hover a, .ui-state-hover a:hover { color: #c77405; text-decoration: none; }
70
+ .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #fbd850; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #eb8f00; }
71
+ .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #eb8f00; text-decoration: none; }
75
72
  .ui-widget :active { outline: none; }
76
73
 
77
74
  /* Interaction Cues
78
75
  ----------------------------------*/
79
- .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #eeb420; background: #fff9e5 url(jquery.ui/ui-bg_gloss-wave_90_fff9e5_500x100.png) 50% top repeat-x; color: #1f1f1f; }
80
- .ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #1f1f1f; }
81
- .ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #ffb73d; background: #d34d17 url(jquery.ui/ui-bg_diagonals-medium_20_d34d17_40x40.png) 50% 50% repeat; color: #ffffff; }
76
+ .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fed22f; background: #ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x; color: #363636; }
77
+ .ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
78
+ .ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat; color: #ffffff; }
82
79
  .ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
83
80
  .ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
84
81
  .ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
@@ -89,14 +86,14 @@
89
86
  ----------------------------------*/
90
87
 
91
88
  /* states and images */
92
- .ui-icon { width: 16px; height: 16px; background-image: url(jquery.ui/ui-icons_d19405_256x240.png); }
93
- .ui-widget-content .ui-icon {background-image: url(jquery.ui/ui-icons_d19405_256x240.png); }
94
- .ui-widget-header .ui-icon {background-image: url(jquery.ui/ui-icons_fadc7a_256x240.png); }
95
- .ui-state-default .ui-icon { background-image: url(jquery.ui/ui-icons_3d3d3d_256x240.png); }
96
- .ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(jquery.ui/ui-icons_bd7b00_256x240.png); }
97
- .ui-state-active .ui-icon {background-image: url(jquery.ui/ui-icons_eb990f_256x240.png); }
98
- .ui-state-highlight .ui-icon {background-image: url(jquery.ui/ui-icons_ed9f26_256x240.png); }
99
- .ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(jquery.ui/ui-icons_ffe180_256x240.png); }
89
+ .ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
90
+ .ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
91
+ .ui-widget-header .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
92
+ .ui-state-default .ui-icon { background-image: url(images/ui-icons_ef8c08_256x240.png); }
93
+ .ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
94
+ .ui-state-active .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
95
+ .ui-state-highlight .ui-icon {background-image: url(images/ui-icons_228ef1_256x240.png); }
96
+ .ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffd27a_256x240.png); }
100
97
 
101
98
  /* positioning */
102
99
  .ui-icon-carat-1-n { background-position: 0 0; }
@@ -280,15 +277,216 @@
280
277
  ----------------------------------*/
281
278
 
282
279
  /* Corner radius */
283
- .ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 8px; -webkit-border-top-left-radius: 8px; -khtml-border-top-left-radius: 8px; border-top-left-radius: 8px; }
284
- .ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 8px; -webkit-border-top-right-radius: 8px; -khtml-border-top-right-radius: 8px; border-top-right-radius: 8px; }
285
- .ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 8px; -webkit-border-bottom-left-radius: 8px; -khtml-border-bottom-left-radius: 8px; border-bottom-left-radius: 8px; }
286
- .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 8px; -webkit-border-bottom-right-radius: 8px; -khtml-border-bottom-right-radius: 8px; border-bottom-right-radius: 8px; }
280
+ .ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; }
281
+ .ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; }
282
+ .ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
283
+ .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
287
284
 
288
285
  /* Overlays */
289
- .ui-widget-overlay { background: #5c5c5c url(jquery.ui/ui-bg_flat_50_5c5c5c_40x100.png) 50% 50% repeat-x; opacity: .80;filter:Alpha(Opacity=80); }
290
- .ui-widget-shadow { margin: -7px 0 0 -7px; padding: 7px; background: #cccccc url(jquery.ui/ui-bg_flat_30_cccccc_40x100.png) 50% 50% repeat-x; opacity: .60;filter:Alpha(Opacity=60); -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/*
291
- * jQuery UI Datepicker 1.8.16
286
+ .ui-widget-overlay { background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); }
287
+ .ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }/*
288
+ * jQuery UI Resizable 1.8.17
289
+ *
290
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
291
+ * Dual licensed under the MIT or GPL Version 2 licenses.
292
+ * http://jquery.org/license
293
+ *
294
+ * http://docs.jquery.com/UI/Resizable#theming
295
+ */
296
+ .ui-resizable { position: relative;}
297
+ .ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; }
298
+ .ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
299
+ .ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
300
+ .ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
301
+ .ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
302
+ .ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
303
+ .ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
304
+ .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
305
+ .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
306
+ .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
307
+ * jQuery UI Selectable 1.8.17
308
+ *
309
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
310
+ * Dual licensed under the MIT or GPL Version 2 licenses.
311
+ * http://jquery.org/license
312
+ *
313
+ * http://docs.jquery.com/UI/Selectable#theming
314
+ */
315
+ .ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
316
+ /*
317
+ * jQuery UI Accordion 1.8.17
318
+ *
319
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
320
+ * Dual licensed under the MIT or GPL Version 2 licenses.
321
+ * http://jquery.org/license
322
+ *
323
+ * http://docs.jquery.com/UI/Accordion#theming
324
+ */
325
+ /* IE/Win - Fix animation bug - #4615 */
326
+ .ui-accordion { width: 100%; }
327
+ .ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
328
+ .ui-accordion .ui-accordion-li-fix { display: inline; }
329
+ .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
330
+ .ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
331
+ .ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
332
+ .ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
333
+ .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
334
+ .ui-accordion .ui-accordion-content-active { display: block; }
335
+ /*
336
+ * jQuery UI Autocomplete 1.8.17
337
+ *
338
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
339
+ * Dual licensed under the MIT or GPL Version 2 licenses.
340
+ * http://jquery.org/license
341
+ *
342
+ * http://docs.jquery.com/UI/Autocomplete#theming
343
+ */
344
+ .ui-autocomplete { position: absolute; cursor: default; }
345
+
346
+ /* workarounds */
347
+ * html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
348
+
349
+ /*
350
+ * jQuery UI Menu 1.8.17
351
+ *
352
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
353
+ * Dual licensed under the MIT or GPL Version 2 licenses.
354
+ * http://jquery.org/license
355
+ *
356
+ * http://docs.jquery.com/UI/Menu#theming
357
+ */
358
+ .ui-menu {
359
+ list-style:none;
360
+ padding: 2px;
361
+ margin: 0;
362
+ display:block;
363
+ float: left;
364
+ }
365
+ .ui-menu .ui-menu {
366
+ margin-top: -3px;
367
+ }
368
+ .ui-menu .ui-menu-item {
369
+ margin:0;
370
+ padding: 0;
371
+ zoom: 1;
372
+ float: left;
373
+ clear: left;
374
+ width: 100%;
375
+ }
376
+ .ui-menu .ui-menu-item a {
377
+ text-decoration:none;
378
+ display:block;
379
+ padding:.2em .4em;
380
+ line-height:1.5;
381
+ zoom:1;
382
+ }
383
+ .ui-menu .ui-menu-item a.ui-state-hover,
384
+ .ui-menu .ui-menu-item a.ui-state-active {
385
+ font-weight: normal;
386
+ margin: -1px;
387
+ }
388
+ /*
389
+ * jQuery UI Button 1.8.17
390
+ *
391
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
392
+ * Dual licensed under the MIT or GPL Version 2 licenses.
393
+ * http://jquery.org/license
394
+ *
395
+ * http://docs.jquery.com/UI/Button#theming
396
+ */
397
+ .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
398
+ .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
399
+ button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
400
+ .ui-button-icons-only { width: 3.4em; }
401
+ button.ui-button-icons-only { width: 3.7em; }
402
+
403
+ /*button text element */
404
+ .ui-button .ui-button-text { display: block; line-height: 1.4; }
405
+ .ui-button-text-only .ui-button-text { padding: .4em 1em; }
406
+ .ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
407
+ .ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
408
+ .ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
409
+ .ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
410
+ /* no icon support for input elements, provide padding by default */
411
+ input.ui-button { padding: .4em 1em; }
412
+
413
+ /*button icon element(s) */
414
+ .ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
415
+ .ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
416
+ .ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
417
+ .ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
418
+ .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
419
+
420
+ /*button sets*/
421
+ .ui-buttonset { margin-right: 7px; }
422
+ .ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
423
+
424
+ /* workarounds */
425
+ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
426
+ /*
427
+ * jQuery UI Dialog 1.8.17
428
+ *
429
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
430
+ * Dual licensed under the MIT or GPL Version 2 licenses.
431
+ * http://jquery.org/license
432
+ *
433
+ * http://docs.jquery.com/UI/Dialog#theming
434
+ */
435
+ .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
436
+ .ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
437
+ .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
438
+ .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
439
+ .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
440
+ .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
441
+ .ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
442
+ .ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
443
+ .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
444
+ .ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
445
+ .ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
446
+ .ui-draggable .ui-dialog-titlebar { cursor: move; }
447
+ /*
448
+ * jQuery UI Slider 1.8.17
449
+ *
450
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
451
+ * Dual licensed under the MIT or GPL Version 2 licenses.
452
+ * http://jquery.org/license
453
+ *
454
+ * http://docs.jquery.com/UI/Slider#theming
455
+ */
456
+ .ui-slider { position: relative; text-align: left; }
457
+ .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
458
+ .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
459
+
460
+ .ui-slider-horizontal { height: .8em; }
461
+ .ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
462
+ .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
463
+ .ui-slider-horizontal .ui-slider-range-min { left: 0; }
464
+ .ui-slider-horizontal .ui-slider-range-max { right: 0; }
465
+
466
+ .ui-slider-vertical { width: .8em; height: 100px; }
467
+ .ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
468
+ .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
469
+ .ui-slider-vertical .ui-slider-range-min { bottom: 0; }
470
+ .ui-slider-vertical .ui-slider-range-max { top: 0; }/*
471
+ * jQuery UI Tabs 1.8.17
472
+ *
473
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
474
+ * Dual licensed under the MIT or GPL Version 2 licenses.
475
+ * http://jquery.org/license
476
+ *
477
+ * http://docs.jquery.com/UI/Tabs#theming
478
+ */
479
+ .ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
480
+ .ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
481
+ .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
482
+ .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
483
+ .ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
484
+ .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
485
+ .ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
486
+ .ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
487
+ .ui-tabs .ui-tabs-hide { display: none !important; }
488
+ /*
489
+ * jQuery UI Datepicker 1.8.17
292
490
  *
293
491
  * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
294
492
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -354,4 +552,14 @@
354
552
  left: -4px; /*must have*/
355
553
  width: 200px; /*must have*/
356
554
  height: 200px; /*must have*/
357
- }
555
+ }/*
556
+ * jQuery UI Progressbar 1.8.17
557
+ *
558
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
559
+ * Dual licensed under the MIT or GPL Version 2 licenses.
560
+ * http://jquery.org/license
561
+ *
562
+ * http://docs.jquery.com/UI/Progressbar#theming
563
+ */
564
+ .ui-progressbar { height:2em; text-align: left; overflow: hidden; }
565
+ .ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
@@ -3,28 +3,61 @@ InlineForms::SPECIAL_COLUMN_TYPES[:slider_with_values]=:integer
3
3
  # slider_with_values
4
4
  def slider_with_values_show(object, attribute)
5
5
  values = attribute_values(object, attribute)
6
- link_to_inline_edit object, attribute, values[object.send(attribute)][1]
6
+ value = object.send(attribute)
7
+ display_value = values[value][1]
8
+ css_id = "#{object.class.to_s.underscore}_#{object.id}_#{attribute}"
9
+ if value == 0
10
+ out = "?"
11
+ else
12
+ out = "".html_safe
13
+ out << "<div class='slider slider_#{attribute.to_s}' id='slider_#{css_id}'></div>".html_safe
14
+ out << "<div class='slider_value' id='value_#{css_id}'>#{display_value}</div>".html_safe
15
+ out << "<div style='clear: both' />".html_safe
16
+ out << "<input type='hidden' name='_#{object.class.to_s.underscore}[#{attribute}]' value='0' id='input_#{css_id}' />".html_safe
17
+ out << ('<script>
18
+ $(function() {
19
+ var displayvalues = ' + values.collect {|x| x[1]}.inspect + ';
20
+ $( "#slider_' + css_id + '" ).slider(
21
+ {
22
+ value:' + object.send(attribute).to_s + ',
23
+ range: "min",
24
+ disabled: true,
25
+ min: 0,
26
+ max: 5,
27
+ step: 1,
28
+ }
29
+ );
30
+ });
31
+ </script>').html_safe
32
+ end
33
+ link_to_inline_edit object, attribute, out
7
34
  end
35
+
8
36
  def slider_with_values_edit(object, attribute)
9
37
  # the leading underscore is to avoid name conflicts, like 'email' and 'email_type' will result in 'email' and 'email[email_type_id]' in the form!
10
38
  values = attribute_values(object, attribute)
11
39
  css_id = "#{object.class.to_s.underscore}_#{object.id}_#{attribute}"
12
- out = "<div id='value_#{css_id}'>#{values[object.send(attribute)][1]}</div>".html_safe
13
- out << "<div id='slider_#{css_id}'></div>".html_safe
40
+ out = "".html_safe
41
+ out << "<div class='slider slider_#{attribute.to_s}' id='slider_#{css_id}'></div>".html_safe
42
+ out << "<div class='slider_value' id='value_#{css_id}'>#{values[object.send(attribute)][1]}</div>".html_safe
43
+ out << "<div style='clear: both' />".html_safe
14
44
  out << "<input type='hidden' name='_#{object.class.to_s.underscore}[#{attribute}]' value='0' id='input_#{css_id}' />".html_safe
15
45
  out << ('<script>
16
46
  $(function() {
17
47
  var displayvalues = ' + values.collect {|x| x[1]}.inspect + ';
18
- $( "#slider_' + css_id + '" ).slider({
19
- value:' + object.send(attribute).to_s + ',
20
- min: 0,
21
- max: 5,
22
- step: 1,
23
- slide: function( event, ui ) {
24
- $( "#value_' + css_id + '" ).html( displayvalues[ui.value] );
25
- $( "#input_' + css_id + '" ).val( ui.value );
26
- }
27
- });
48
+ $( "#slider_' + css_id + '" ).slider(
49
+ {
50
+ value:' + object.send(attribute).to_s + ',
51
+ range: "min",
52
+ min: 0,
53
+ max: 5,
54
+ step: 1,
55
+ slide: function( event, ui ) {
56
+ $( "#input_' + css_id + '" ).val( ui.value );
57
+ $( "#value_' + css_id + '" ).html( displayvalues[ui.value] );
58
+ }
59
+ }
60
+ );
28
61
  $( "#value_' + css_id + '" ).html(displayvalues[' + object.send(attribute).to_s + ']);
29
62
  $( "#input_' + css_id + '" ).val(' + object.send(attribute).to_s + ');
30
63
  });
@@ -125,15 +125,21 @@ module InlineFormsHelper
125
125
  # 2012-01-23 Use Cases
126
126
  # [ :sex , "sex", :radio_button, { 1 => 'f', 2 => 'm' } ],
127
127
  # in this case we want the attribute in the database to be 1 or 2. From that attribute, we need to find the value.
128
- # using an array, won't work, since [ 'v', 'm' ][1] would be 'm' in stead of 'v'
128
+ # using an array, won't work, since [ 'f', 'm' ][1] would be 'm' in stead of 'f'
129
129
  # so values should be a hash. BUT since we don't have sorted hashes (ruby 1,.8.7), the order of the values in the edit screen will be random.
130
- # so we DO need an array, and look up by index.
130
+ # so we DO need an array, and look up by index (or association?).
131
131
  # [[1,'v'],[2,'m]] and then use #assoc:
132
132
  # assoc(obj) → new_ary or nil
133
133
  # Searches through an array whose elements are also arrays comparing obj with the first element of each contained array using obj.==.
134
134
  # Returns the first contained array that matches (that is, the first associated array), or nil if no match is found. See also Array#rassoc.
135
135
  # like value=values.assoc(attribute_from_database)[1] (the [1] is needed since the result of #assoc = [1,'v'] and we need the 'v')
136
136
  # I feel it's ugly but it works.
137
+ # 2012-02-09 Use Case slider_with_values
138
+ # { 0 => '???', 1 => '--', 2 => '-', 3 => '+-', 4 => '+', 5 => '++' }
139
+ # In the dropdown (or the slider) we definately need the order preserverd.
140
+ # attribulte_values turns this into
141
+ # [ [0,'???'], [1, '--'] .... [5, '++'] ]
142
+
137
143
 
138
144
  attributes = @inline_forms_attribute_list || object.inline_forms_attribute_list # if we do this as a form_element, @inline.. is nil!!!
139
145
  values = attributes.assoc(attribute.to_sym)[3]
@@ -1,3 +1,3 @@
1
1
  module InlineForms
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 0
10
- version: 1.3.0
9
+ - 1
10
+ version: 1.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ace Suares
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-07 00:00:00 Z
18
+ date: 2012-02-09 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec-rails
@@ -114,21 +114,35 @@ files:
114
114
  - lib/app/assets/images/close.png
115
115
  - lib/app/assets/images/glass_plate.gif
116
116
  - lib/app/assets/images/jquery.ui/ui-bg_diagonals-medium_20_d34d17_40x40.png
117
+ - lib/app/assets/images/jquery.ui/ui-bg_diagonals-thick_18_b81900_40x40.png
118
+ - lib/app/assets/images/jquery.ui/ui-bg_diagonals-thick_20_666666_40x40.png
119
+ - lib/app/assets/images/jquery.ui/ui-bg_flat_10_000000_40x100.png
117
120
  - lib/app/assets/images/jquery.ui/ui-bg_flat_30_cccccc_40x100.png
118
121
  - lib/app/assets/images/jquery.ui/ui-bg_flat_50_5c5c5c_40x100.png
122
+ - lib/app/assets/images/jquery.ui/ui-bg_glass_100_f6f6f6_1x400.png
123
+ - lib/app/assets/images/jquery.ui/ui-bg_glass_100_fdf5ce_1x400.png
124
+ - lib/app/assets/images/jquery.ui/ui-bg_glass_65_ffffff_1x400.png
125
+ - lib/app/assets/images/jquery.ui/ui-bg_gloss-wave_35_f6a828_500x100.png
119
126
  - lib/app/assets/images/jquery.ui/ui-bg_gloss-wave_45_817865_500x100.png
120
127
  - lib/app/assets/images/jquery.ui/ui-bg_gloss-wave_60_fece2f_500x100.png
121
128
  - lib/app/assets/images/jquery.ui/ui-bg_gloss-wave_70_ffdd57_500x100.png
122
129
  - lib/app/assets/images/jquery.ui/ui-bg_gloss-wave_90_fff9e5_500x100.png
130
+ - lib/app/assets/images/jquery.ui/ui-bg_highlight-soft_100_eeeeee_1x100.png
123
131
  - lib/app/assets/images/jquery.ui/ui-bg_highlight-soft_100_feeebd_1x100.png
132
+ - lib/app/assets/images/jquery.ui/ui-bg_highlight-soft_75_ffe45c_1x100.png
124
133
  - lib/app/assets/images/jquery.ui/ui-bg_inset-soft_30_ffffff_1x100.png
134
+ - lib/app/assets/images/jquery.ui/ui-icons_222222_256x240.png
135
+ - lib/app/assets/images/jquery.ui/ui-icons_228ef1_256x240.png
125
136
  - lib/app/assets/images/jquery.ui/ui-icons_3d3d3d_256x240.png
126
137
  - lib/app/assets/images/jquery.ui/ui-icons_bd7b00_256x240.png
127
138
  - lib/app/assets/images/jquery.ui/ui-icons_d19405_256x240.png
128
139
  - lib/app/assets/images/jquery.ui/ui-icons_eb990f_256x240.png
129
140
  - lib/app/assets/images/jquery.ui/ui-icons_ed9f26_256x240.png
141
+ - lib/app/assets/images/jquery.ui/ui-icons_ef8c08_256x240.png
130
142
  - lib/app/assets/images/jquery.ui/ui-icons_fadc7a_256x240.png
143
+ - lib/app/assets/images/jquery.ui/ui-icons_ffd27a_256x240.png
131
144
  - lib/app/assets/images/jquery.ui/ui-icons_ffe180_256x240.png
145
+ - lib/app/assets/images/jquery.ui/ui-icons_ffffff_256x240.png
132
146
  - lib/app/assets/images/tooltip-bubble-down-left.png
133
147
  - lib/app/assets/images/tooltip-bubble-down-right.png
134
148
  - lib/app/assets/images/tooltip-bubble-up-left.png
@@ -141,7 +155,7 @@ files:
141
155
  - lib/app/assets/stylesheets/devise.css
142
156
  - lib/app/assets/stylesheets/inline_forms.css
143
157
  - lib/app/assets/stylesheets/inline_forms_application.css
144
- - lib/app/assets/stylesheets/jquery-ui-1.8.16.custom.css
158
+ - lib/app/assets/stylesheets/ui-lightness/jquery-ui-1.8.17.custom.css
145
159
  - lib/app/assets/stylesheets/validation_tooltips.css
146
160
  - lib/app/controllers/geo_code_curacao_controller.rb
147
161
  - lib/app/controllers/inline_forms_controller.rb