bootstrap-generators 1.4.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. data/README.md +238 -21
  2. data/bootstrap-generators.gemspec +3 -3
  3. data/lib/bootstrap-generators.rb +0 -1
  4. data/lib/bootstrap/generators/version.rb +1 -1
  5. data/lib/generators/bootstrap/install/install_generator.rb +5 -12
  6. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css +5 -5
  7. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.less +119 -0
  8. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.scss +5 -5
  9. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css +0 -5
  10. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.less +114 -0
  11. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +0 -5
  12. data/lib/generators/bootstrap/install/templates/config/initializers/simple_form.rb +118 -40
  13. data/lib/generators/bootstrap/install/templates/config/locales/simple_form.en.yml +24 -0
  14. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb +9 -8
  15. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +8 -7
  16. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb +5 -7
  17. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml +6 -7
  18. data/lib/generators/bootstrap/install/templates/layouts/fluid.html.erb +50 -47
  19. data/lib/generators/bootstrap/install/templates/layouts/fluid.html.haml +75 -55
  20. data/lib/generators/bootstrap/install/templates/layouts/hero.html.erb +11 -14
  21. data/lib/generators/bootstrap/install/templates/layouts/hero.html.haml +9 -11
  22. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/edit.html.erb +8 -2
  23. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb +5 -2
  24. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/new.html.erb +4 -1
  25. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/show.html.erb +8 -2
  26. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/edit.html.haml +6 -2
  27. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml +4 -2
  28. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/new.html.haml +3 -1
  29. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/show.html.haml +6 -2
  30. data/test/lib/generators/bootstrap/install_generator_test.rb +6 -20
  31. data/test/test_helper.rb +1 -1
  32. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  33. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  34. data/vendor/assets/javascripts/bootstrap-alert.js +91 -0
  35. data/vendor/assets/javascripts/bootstrap-button.js +98 -0
  36. data/vendor/assets/javascripts/bootstrap-carousel.js +154 -0
  37. data/vendor/assets/javascripts/bootstrap-collapse.js +136 -0
  38. data/vendor/assets/javascripts/bootstrap-dropdown.js +58 -21
  39. data/vendor/assets/javascripts/bootstrap-modal.js +63 -114
  40. data/vendor/assets/javascripts/bootstrap-popover.js +38 -33
  41. data/vendor/assets/javascripts/bootstrap-scrollspy.js +62 -44
  42. data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
  43. data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
  44. data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
  45. data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
  46. data/vendor/assets/javascripts/bootstrap.js +11 -6
  47. data/vendor/assets/stylesheets/bootstrap.css +2497 -1602
  48. data/vendor/assets/stylesheets/less/accordion.less +28 -0
  49. data/vendor/assets/stylesheets/less/alerts.less +70 -0
  50. data/vendor/assets/stylesheets/less/bootstrap.less +62 -0
  51. data/vendor/assets/stylesheets/less/breadcrumbs.less +22 -0
  52. data/vendor/assets/stylesheets/less/button-groups.less +147 -0
  53. data/vendor/assets/stylesheets/less/buttons.less +165 -0
  54. data/vendor/assets/stylesheets/less/carousel.less +121 -0
  55. data/vendor/assets/stylesheets/less/close.less +18 -0
  56. data/vendor/assets/stylesheets/less/code.less +44 -0
  57. data/vendor/assets/stylesheets/less/component-animations.less +18 -0
  58. data/vendor/assets/stylesheets/less/dropdowns.less +131 -0
  59. data/vendor/assets/stylesheets/less/forms.less +515 -0
  60. data/vendor/assets/stylesheets/less/grid.less +8 -0
  61. data/vendor/assets/stylesheets/less/hero-unit.less +20 -0
  62. data/vendor/assets/stylesheets/less/labels.less +16 -0
  63. data/vendor/assets/stylesheets/less/layouts.less +17 -0
  64. data/vendor/assets/stylesheets/less/mixins.less +537 -0
  65. data/vendor/assets/stylesheets/less/modals.less +72 -0
  66. data/vendor/assets/stylesheets/less/navbar.less +292 -0
  67. data/vendor/assets/stylesheets/less/navs.less +344 -0
  68. data/vendor/assets/stylesheets/less/pager.less +30 -0
  69. data/vendor/assets/stylesheets/less/pagination.less +55 -0
  70. data/vendor/assets/stylesheets/less/popovers.less +49 -0
  71. data/vendor/assets/stylesheets/less/progress-bars.less +95 -0
  72. data/vendor/assets/stylesheets/less/reset.less +126 -0
  73. data/vendor/assets/stylesheets/less/responsive.less +323 -0
  74. data/vendor/assets/stylesheets/less/scaffolding.less +29 -0
  75. data/vendor/assets/stylesheets/less/sprites.less +156 -0
  76. data/vendor/assets/stylesheets/less/tables.less +139 -0
  77. data/vendor/assets/stylesheets/less/thumbnails.less +35 -0
  78. data/vendor/assets/stylesheets/less/tooltip.less +35 -0
  79. data/vendor/assets/stylesheets/less/type.less +217 -0
  80. data/vendor/assets/stylesheets/less/utilities.less +23 -0
  81. data/vendor/assets/stylesheets/less/variables.less +99 -0
  82. data/vendor/assets/stylesheets/less/wells.less +17 -0
  83. metadata +62 -33
  84. data/lib/bootstrap/helpers/form_builder.rb +0 -26
  85. data/lib/generators/bootstrap/install/templates/app/inputs/boolean_input.rb +0 -12
  86. data/lib/generators/bootstrap/install/templates/app/inputs/collection_input.rb +0 -12
  87. data/lib/generators/bootstrap/install/templates/app/inputs/date_time_input.rb +0 -16
  88. data/lib/generators/bootstrap/install/templates/app/inputs/file_input.rb +0 -16
  89. data/lib/generators/bootstrap/install/templates/app/inputs/numeric_input.rb +0 -16
  90. data/lib/generators/bootstrap/install/templates/app/inputs/password_input.rb +0 -16
  91. data/lib/generators/bootstrap/install/templates/app/inputs/string_input.rb +0 -16
  92. data/lib/generators/bootstrap/install/templates/app/inputs/text_input.rb +0 -16
  93. data/lib/generators/bootstrap/install/templates/assets/stylesheets/container-app.css +0 -53
  94. data/lib/generators/bootstrap/install/templates/assets/stylesheets/container-app.css.scss +0 -55
  95. data/lib/generators/bootstrap/install/templates/layouts/container-app.html.erb +0 -58
  96. data/lib/generators/bootstrap/install/templates/layouts/container-app.html.haml +0 -46
  97. data/vendor/assets/javascripts/bootstrap-alerts.js +0 -113
  98. data/vendor/assets/javascripts/bootstrap-buttons.js +0 -62
  99. data/vendor/assets/javascripts/bootstrap-tabs.js +0 -80
  100. data/vendor/assets/javascripts/bootstrap-twipsy.js +0 -321
  101. data/vendor/assets/stylesheets/bootstrap.min.css +0 -356
@@ -0,0 +1,23 @@
1
+ // UTILITY CLASSES
2
+ // ---------------
3
+
4
+ // Quick floats
5
+ .pull-right {
6
+ float: right;
7
+ }
8
+ .pull-left {
9
+ float: left;
10
+ }
11
+
12
+ // Toggling content
13
+ .hide {
14
+ display: none;
15
+ }
16
+ .show {
17
+ display: block;
18
+ }
19
+
20
+ // Visibility
21
+ .invisible {
22
+ visibility: hidden;
23
+ }
@@ -0,0 +1,99 @@
1
+ // Variables.less
2
+ // Variables to customize the look and feel of Bootstrap
3
+ // -----------------------------------------------------
4
+
5
+
6
+
7
+ // GLOBAL VALUES
8
+ // --------------------------------------------------
9
+
10
+ // Links
11
+ @linkColor: #08c;
12
+ @linkColorHover: darken(@linkColor, 15%);
13
+
14
+ // Grays
15
+ @black: #000;
16
+ @grayDarker: #222;
17
+ @grayDark: #333;
18
+ @gray: #555;
19
+ @grayLight: #999;
20
+ @grayLighter: #eee;
21
+ @white: #fff;
22
+
23
+ // Accent colors
24
+ @blue: #049cdb;
25
+ @blueDark: #0064cd;
26
+ @green: #46a546;
27
+ @red: #9d261d;
28
+ @yellow: #ffc40d;
29
+ @orange: #f89406;
30
+ @pink: #c3325f;
31
+ @purple: #7a43b6;
32
+
33
+ // Typography
34
+ @baseFontSize: 13px;
35
+ @baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
36
+ @baseLineHeight: 18px;
37
+ @textColor: @grayDark;
38
+
39
+ // Buttons
40
+ @primaryButtonBackground: @linkColor;
41
+
42
+
43
+
44
+ // COMPONENT VARIABLES
45
+ // --------------------------------------------------
46
+
47
+ // Z-index master list
48
+ // Used for a bird's eye view of components dependent on the z-axis
49
+ // Try to avoid customizing these :)
50
+ @zindexDropdown: 1000;
51
+ @zindexPopover: 1010;
52
+ @zindexTooltip: 1020;
53
+ @zindexFixedNavbar: 1030;
54
+ @zindexModalBackdrop: 1040;
55
+ @zindexModal: 1050;
56
+
57
+ // Input placeholder text color
58
+ @placeholderText: @grayLight;
59
+
60
+ // Navbar
61
+ @navbarHeight: 40px;
62
+ @navbarBackground: @grayDarker;
63
+ @navbarBackgroundHighlight: @grayDark;
64
+
65
+ @navbarText: @grayLight;
66
+ @navbarLinkColor: @grayLight;
67
+ @navbarLinkColorHover: @white;
68
+
69
+ // Form states and alerts
70
+ @warningText: #c09853;
71
+ @warningBackground: #fcf8e3;
72
+ @warningBorder: darken(spin(@warningBackground, -10), 3%);
73
+
74
+ @errorText: #b94a48;
75
+ @errorBackground: #f2dede;
76
+ @errorBorder: darken(spin(@errorBackground, -10), 3%);
77
+
78
+ @successText: #468847;
79
+ @successBackground: #dff0d8;
80
+ @successBorder: darken(spin(@successBackground, -10), 5%);
81
+
82
+ @infoText: #3a87ad;
83
+ @infoBackground: #d9edf7;
84
+ @infoBorder: darken(spin(@infoBackground, -10), 7%);
85
+
86
+
87
+
88
+ // GRID
89
+ // --------------------------------------------------
90
+
91
+ // Default 940px grid
92
+ @gridColumns: 12;
93
+ @gridColumnWidth: 60px;
94
+ @gridGutterWidth: 20px;
95
+ @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
96
+
97
+ // Fluid grid
98
+ @fluidGridColumnWidth: 6.382978723%;
99
+ @fluidGridGutterWidth: 2.127659574%;
@@ -0,0 +1,17 @@
1
+ // WELLS
2
+ // -----
3
+
4
+ .well {
5
+ min-height: 20px;
6
+ padding: 19px;
7
+ margin-bottom: 20px;
8
+ background-color: #f5f5f5;
9
+ border: 1px solid #eee;
10
+ border: 1px solid rgba(0,0,0,.05);
11
+ .border-radius(4px);
12
+ .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
13
+ blockquote {
14
+ border-color: #ddd;
15
+ border-color: rgba(0,0,0,.15);
16
+ }
17
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-13 00:00:00.000000000Z
12
+ date: 2012-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &85788610 !ruby/object:Gem::Requirement
16
+ requirement: &82266530 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *85788610
24
+ version_requirements: *82266530
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: test-unit
27
- requirement: &85788250 !ruby/object:Gem::Requirement
27
+ requirement: &82266320 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,32 +32,31 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *85788250
35
+ version_requirements: *82266320
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rails
38
- requirement: &85787880 !ruby/object:Gem::Requirement
38
+ requirement: &82266010 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: 3.1.0
43
+ version: '3.1'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *85787880
46
+ version_requirements: *82266010
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: railties
49
- requirement: &85787540 !ruby/object:Gem::Requirement
49
+ requirement: &82265740 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 3.1.0
54
+ version: '3.1'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *85787540
57
+ version_requirements: *82265740
58
58
  description: Bootstrap-generators provides Twitter Bootstrap generators for Rails
59
- 3.1. Bootstrap is a toolkit from Twitter designed to kickstart development of webapps
60
- and sites. Checkout http://twitter.github.com/bootstrap.
59
+ 3.1. Checkout http://twitter.github.com/bootstrap.
61
60
  email:
62
61
  - decio.ferreira@decioferreira.com
63
62
  executables: []
@@ -73,30 +72,20 @@ files:
73
72
  - lib/bootstrap/generators/engine.rb
74
73
  - lib/bootstrap/generators/railtie.rb
75
74
  - lib/bootstrap/generators/version.rb
76
- - lib/bootstrap/helpers/form_builder.rb
77
75
  - lib/generators/bootstrap/install/install_generator.rb
78
- - lib/generators/bootstrap/install/templates/app/inputs/boolean_input.rb
79
- - lib/generators/bootstrap/install/templates/app/inputs/collection_input.rb
80
- - lib/generators/bootstrap/install/templates/app/inputs/date_time_input.rb
81
- - lib/generators/bootstrap/install/templates/app/inputs/file_input.rb
82
- - lib/generators/bootstrap/install/templates/app/inputs/numeric_input.rb
83
- - lib/generators/bootstrap/install/templates/app/inputs/password_input.rb
84
- - lib/generators/bootstrap/install/templates/app/inputs/string_input.rb
85
- - lib/generators/bootstrap/install/templates/app/inputs/text_input.rb
86
76
  - lib/generators/bootstrap/install/templates/assets/javascripts/bootstrap-generators.js
87
- - lib/generators/bootstrap/install/templates/assets/stylesheets/container-app.css
88
- - lib/generators/bootstrap/install/templates/assets/stylesheets/container-app.css.scss
89
77
  - lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css
78
+ - lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.less
90
79
  - lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.scss
91
80
  - lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css
81
+ - lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.less
92
82
  - lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss
93
83
  - lib/generators/bootstrap/install/templates/config/initializers/simple_form.rb
84
+ - lib/generators/bootstrap/install/templates/config/locales/simple_form.en.yml
94
85
  - lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb
95
86
  - lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml
96
87
  - lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb
97
88
  - lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml
98
- - lib/generators/bootstrap/install/templates/layouts/container-app.html.erb
99
- - lib/generators/bootstrap/install/templates/layouts/container-app.html.haml
100
89
  - lib/generators/bootstrap/install/templates/layouts/fluid.html.erb
101
90
  - lib/generators/bootstrap/install/templates/layouts/fluid.html.haml
102
91
  - lib/generators/bootstrap/install/templates/layouts/hero.html.erb
@@ -114,17 +103,57 @@ files:
114
103
  - test/fixtures/routes.rb
115
104
  - test/lib/generators/bootstrap/install_generator_test.rb
116
105
  - test/test_helper.rb
117
- - vendor/assets/javascripts/bootstrap-alerts.js
118
- - vendor/assets/javascripts/bootstrap-buttons.js
106
+ - vendor/assets/images/glyphicons-halflings-white.png
107
+ - vendor/assets/images/glyphicons-halflings.png
108
+ - vendor/assets/javascripts/bootstrap-alert.js
109
+ - vendor/assets/javascripts/bootstrap-button.js
110
+ - vendor/assets/javascripts/bootstrap-carousel.js
111
+ - vendor/assets/javascripts/bootstrap-collapse.js
119
112
  - vendor/assets/javascripts/bootstrap-dropdown.js
120
113
  - vendor/assets/javascripts/bootstrap-modal.js
121
114
  - vendor/assets/javascripts/bootstrap-popover.js
122
115
  - vendor/assets/javascripts/bootstrap-scrollspy.js
123
- - vendor/assets/javascripts/bootstrap-tabs.js
124
- - vendor/assets/javascripts/bootstrap-twipsy.js
116
+ - vendor/assets/javascripts/bootstrap-tab.js
117
+ - vendor/assets/javascripts/bootstrap-tooltip.js
118
+ - vendor/assets/javascripts/bootstrap-transition.js
119
+ - vendor/assets/javascripts/bootstrap-typeahead.js
125
120
  - vendor/assets/javascripts/bootstrap.js
126
121
  - vendor/assets/stylesheets/bootstrap.css
127
- - vendor/assets/stylesheets/bootstrap.min.css
122
+ - vendor/assets/stylesheets/less/accordion.less
123
+ - vendor/assets/stylesheets/less/alerts.less
124
+ - vendor/assets/stylesheets/less/bootstrap.less
125
+ - vendor/assets/stylesheets/less/breadcrumbs.less
126
+ - vendor/assets/stylesheets/less/button-groups.less
127
+ - vendor/assets/stylesheets/less/buttons.less
128
+ - vendor/assets/stylesheets/less/carousel.less
129
+ - vendor/assets/stylesheets/less/close.less
130
+ - vendor/assets/stylesheets/less/code.less
131
+ - vendor/assets/stylesheets/less/component-animations.less
132
+ - vendor/assets/stylesheets/less/dropdowns.less
133
+ - vendor/assets/stylesheets/less/forms.less
134
+ - vendor/assets/stylesheets/less/grid.less
135
+ - vendor/assets/stylesheets/less/hero-unit.less
136
+ - vendor/assets/stylesheets/less/labels.less
137
+ - vendor/assets/stylesheets/less/layouts.less
138
+ - vendor/assets/stylesheets/less/mixins.less
139
+ - vendor/assets/stylesheets/less/modals.less
140
+ - vendor/assets/stylesheets/less/navbar.less
141
+ - vendor/assets/stylesheets/less/navs.less
142
+ - vendor/assets/stylesheets/less/pager.less
143
+ - vendor/assets/stylesheets/less/pagination.less
144
+ - vendor/assets/stylesheets/less/popovers.less
145
+ - vendor/assets/stylesheets/less/progress-bars.less
146
+ - vendor/assets/stylesheets/less/reset.less
147
+ - vendor/assets/stylesheets/less/responsive.less
148
+ - vendor/assets/stylesheets/less/scaffolding.less
149
+ - vendor/assets/stylesheets/less/sprites.less
150
+ - vendor/assets/stylesheets/less/tables.less
151
+ - vendor/assets/stylesheets/less/thumbnails.less
152
+ - vendor/assets/stylesheets/less/tooltip.less
153
+ - vendor/assets/stylesheets/less/type.less
154
+ - vendor/assets/stylesheets/less/utilities.less
155
+ - vendor/assets/stylesheets/less/variables.less
156
+ - vendor/assets/stylesheets/less/wells.less
128
157
  homepage: https://github.com/decioferreira/bootstrap-generators
129
158
  licenses: []
130
159
  post_install_message:
@@ -145,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
174
  version: '0'
146
175
  requirements: []
147
176
  rubyforge_project: bootstrap-generators
148
- rubygems_version: 1.8.10
177
+ rubygems_version: 1.8.5
149
178
  signing_key:
150
179
  specification_version: 3
151
180
  summary: Bootstrap-generators provides Twitter Bootstrap generators for Rails 3.1.
@@ -1,26 +0,0 @@
1
- require 'action_view'
2
-
3
- module Bootstrap
4
- module Helpers
5
- class FormBuilder < ActionView::Helpers::FormBuilder
6
- def text_field(method, options = {:class => "xxlarge"})
7
- super
8
- end
9
-
10
- def text_area(method, options = {:class => "xxlarge"})
11
- super
12
- end
13
-
14
- def password_field(method, options = {:class => "xxlarge"})
15
- super
16
- end
17
-
18
- def submit(value=nil, options={:class => "btn primary"})
19
- super
20
- end
21
- end
22
- end
23
- end
24
-
25
- ActionView::Base.default_form_builder = Bootstrap::Helpers::FormBuilder
26
-
@@ -1,12 +0,0 @@
1
- class BooleanInput < SimpleForm::Inputs::BooleanInput
2
- def label_input
3
- content = "".html_safe
4
- [ :input, :error, :hint ].each do |component|
5
- next if options[component] == false
6
- rendered = send(component)
7
- content.safe_concat rendered.to_s if rendered
8
- end
9
- (options[:label] == false ? "" : label) + "<div class=\"input\"><ul class=\"inputs-list\"><li><label>#{content}</label></li></ul></div>".html_safe
10
- end
11
- end
12
-
@@ -1,12 +0,0 @@
1
- class CollectionInput < SimpleForm::Inputs::CollectionInput
2
- def label_input
3
- content = "".html_safe
4
- [ :input, :error, :hint ].each do |component|
5
- next if options[component] == false
6
- rendered = send(component)
7
- content.safe_concat rendered.to_s if rendered
8
- end
9
- (options[:label] == false ? "" : label) + "<div class=\"input\">#{content}</div>".html_safe
10
- end
11
- end
12
-
@@ -1,16 +0,0 @@
1
- class DateTimeInput < SimpleForm::Inputs::DateTimeInput
2
- def label_input
3
- content = "".html_safe
4
- [ :input, :error, :hint ].each do |component|
5
- next if options[component] == false
6
- rendered = send(component)
7
- content.safe_concat rendered.to_s if rendered
8
- end
9
- (options[:label] == false ? "" : label) + "<div class=\"input\">#{content}</div>".html_safe
10
- end
11
-
12
- def input_html_classes
13
- super.unshift("small")
14
- end
15
- end
16
-
@@ -1,16 +0,0 @@
1
- class FileInput < SimpleForm::Inputs::FileInput
2
- def label_input
3
- content = "".html_safe
4
- [ :input, :error, :hint ].each do |component|
5
- next if options[component] == false
6
- rendered = send(component)
7
- content.safe_concat rendered.to_s if rendered
8
- end
9
- (options[:label] == false ? "" : label) + "<div class=\"input\">#{content}</div>".html_safe
10
- end
11
-
12
- def input_html_classes
13
- super.unshift("xxlarge")
14
- end
15
- end
16
-
@@ -1,16 +0,0 @@
1
- class NumericInput < SimpleForm::Inputs::NumericInput
2
- def label_input
3
- content = "".html_safe
4
- [ :input, :error, :hint ].each do |component|
5
- next if options[component] == false
6
- rendered = send(component)
7
- content.safe_concat rendered.to_s if rendered
8
- end
9
- (options[:label] == false ? "" : label) + "<div class=\"input\">#{content}</div>".html_safe
10
- end
11
-
12
- def input_html_classes
13
- super.unshift("xxlarge")
14
- end
15
- end
16
-
@@ -1,16 +0,0 @@
1
- class PasswordInput < SimpleForm::Inputs::PasswordInput
2
- def label_input
3
- content = "".html_safe
4
- [ :input, :error, :hint ].each do |component|
5
- next if options[component] == false
6
- rendered = send(component)
7
- content.safe_concat rendered.to_s if rendered
8
- end
9
- (options[:label] == false ? "" : label) + "<div class=\"input\">#{content}</div>".html_safe
10
- end
11
-
12
- def input_html_classes
13
- super.unshift("xxlarge")
14
- end
15
- end
16
-