bootstrap-generators 2.3.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +12 -2
  3. data/{LICENSE.txt → MIT-LICENSE} +1 -3
  4. data/README.md +19 -64
  5. data/Rakefile +24 -22
  6. data/bootstrap-generators.gemspec +3 -1
  7. data/lib/bootstrap-generators.rb +12 -1
  8. data/lib/bootstrap/generators/version.rb +1 -1
  9. data/lib/generators/bootstrap/install/install_generator.rb +9 -24
  10. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +498 -179
  11. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.scss +620 -0
  12. data/lib/generators/bootstrap/install/templates/assets/stylesheets/{fluid.css → starter.css} +6 -6
  13. data/lib/generators/bootstrap/install/templates/assets/stylesheets/{fluid.css.less → starter.less} +7 -7
  14. data/lib/generators/bootstrap/install/templates/assets/stylesheets/{fluid.css.scss → starter.scss} +7 -8
  15. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb +11 -9
  16. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +9 -8
  17. data/lib/generators/bootstrap/install/templates/layouts/starter.html.erb +50 -0
  18. data/lib/generators/bootstrap/install/templates/layouts/{hero.html.haml → starter.html.haml} +0 -0
  19. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/edit.html.erb +3 -3
  20. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb +25 -25
  21. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/new.html.erb +2 -2
  22. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/show.html.erb +5 -5
  23. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/edit.html.haml +3 -3
  24. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml +20 -19
  25. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/new.html.haml +2 -2
  26. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/show.html.haml +5 -5
  27. data/readme-template.md.erb +5 -48
  28. data/test/lib/generators/bootstrap/install_generator_test.rb +3 -33
  29. data/vendor/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  30. data/vendor/assets/fonts/glyphicons-halflings-regular.svg +228 -0
  31. data/vendor/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  32. data/vendor/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  33. data/vendor/assets/javascripts/bootstrap-ie.js +2 -0
  34. data/vendor/assets/javascripts/bootstrap-ie/html5shiv.js +8 -0
  35. data/vendor/assets/javascripts/bootstrap-ie/respond.min.js +6 -0
  36. data/vendor/assets/javascripts/bootstrap.js +12 -13
  37. data/vendor/assets/javascripts/bootstrap/affix.js +126 -0
  38. data/vendor/assets/javascripts/{bootstrap-alert.js → bootstrap/alert.js} +35 -36
  39. data/vendor/assets/javascripts/bootstrap/button.js +109 -0
  40. data/vendor/assets/javascripts/bootstrap/carousel.js +217 -0
  41. data/vendor/assets/javascripts/bootstrap/collapse.js +179 -0
  42. data/vendor/assets/javascripts/bootstrap/dropdown.js +154 -0
  43. data/vendor/assets/javascripts/bootstrap/modal.js +246 -0
  44. data/vendor/assets/javascripts/bootstrap/popover.js +117 -0
  45. data/vendor/assets/javascripts/bootstrap/scrollspy.js +158 -0
  46. data/vendor/assets/javascripts/bootstrap/tab.js +135 -0
  47. data/vendor/assets/javascripts/bootstrap/tooltip.js +386 -0
  48. data/vendor/assets/javascripts/bootstrap/transition.js +56 -0
  49. data/vendor/assets/stylesheets/bootstrap.css +4638 -4000
  50. data/vendor/twitter/bootstrap/less/alerts.less +46 -58
  51. data/vendor/twitter/bootstrap/less/badges.less +51 -0
  52. data/vendor/twitter/bootstrap/less/bootstrap.less +27 -31
  53. data/vendor/twitter/bootstrap/less/breadcrumbs.less +7 -8
  54. data/vendor/twitter/bootstrap/less/button-groups.less +173 -154
  55. data/vendor/twitter/bootstrap/less/buttons.less +97 -165
  56. data/vendor/twitter/bootstrap/less/carousel.less +115 -64
  57. data/vendor/twitter/bootstrap/less/close.less +20 -19
  58. data/vendor/twitter/bootstrap/less/code.less +17 -22
  59. data/vendor/twitter/bootstrap/less/component-animations.less +10 -3
  60. data/vendor/twitter/bootstrap/less/dropdowns.less +92 -147
  61. data/vendor/twitter/bootstrap/less/forms.less +224 -561
  62. data/vendor/twitter/bootstrap/less/glyphicons.less +232 -0
  63. data/vendor/twitter/bootstrap/less/grid.less +336 -11
  64. data/vendor/twitter/bootstrap/less/input-groups.less +127 -0
  65. data/vendor/twitter/bootstrap/less/jumbotron.less +40 -0
  66. data/vendor/twitter/bootstrap/less/labels.less +58 -0
  67. data/vendor/twitter/bootstrap/less/list-group.less +88 -0
  68. data/vendor/twitter/bootstrap/less/media.less +8 -7
  69. data/vendor/twitter/bootstrap/less/mixins.less +487 -466
  70. data/vendor/twitter/bootstrap/less/modals.less +98 -52
  71. data/vendor/twitter/bootstrap/less/navbar.less +507 -383
  72. data/vendor/twitter/bootstrap/less/navs.less +169 -349
  73. data/vendor/twitter/bootstrap/less/normalize.less +396 -0
  74. data/vendor/twitter/bootstrap/less/pager.less +45 -33
  75. data/vendor/twitter/bootstrap/less/pagination.less +65 -105
  76. data/vendor/twitter/bootstrap/less/panels.less +148 -0
  77. data/vendor/twitter/bootstrap/less/popovers.less +51 -51
  78. data/vendor/twitter/bootstrap/less/print.less +100 -0
  79. data/vendor/twitter/bootstrap/less/progress-bars.less +28 -55
  80. data/vendor/twitter/bootstrap/less/responsive-utilities.less +195 -34
  81. data/vendor/twitter/bootstrap/less/scaffolding.less +101 -24
  82. data/vendor/twitter/bootstrap/less/tables.less +170 -178
  83. data/vendor/twitter/bootstrap/less/theme.less +232 -0
  84. data/vendor/twitter/bootstrap/less/thumbnails.less +11 -33
  85. data/vendor/twitter/bootstrap/less/tooltip.less +45 -20
  86. data/vendor/twitter/bootstrap/less/type.less +100 -109
  87. data/vendor/twitter/bootstrap/less/utilities.less +19 -7
  88. data/vendor/twitter/bootstrap/less/variables.less +498 -179
  89. data/vendor/twitter/bootstrap/less/wells.less +7 -7
  90. data/vendor/twitter/bootstrap/sass/_alerts.scss +46 -58
  91. data/vendor/twitter/bootstrap/sass/_badges.scss +51 -0
  92. data/vendor/twitter/bootstrap/sass/_breadcrumbs.scss +8 -9
  93. data/vendor/twitter/bootstrap/sass/_button-groups.scss +173 -154
  94. data/vendor/twitter/bootstrap/sass/_buttons.scss +97 -165
  95. data/vendor/twitter/bootstrap/sass/_carousel.scss +116 -65
  96. data/vendor/twitter/bootstrap/sass/_close.scss +9 -8
  97. data/vendor/twitter/bootstrap/sass/_code.scss +16 -21
  98. data/vendor/twitter/bootstrap/sass/_component-animations.scss +10 -3
  99. data/vendor/twitter/bootstrap/sass/_dropdowns.scss +94 -148
  100. data/vendor/twitter/bootstrap/sass/_forms.scss +220 -559
  101. data/vendor/twitter/bootstrap/sass/_glyphicons.scss +232 -0
  102. data/vendor/twitter/bootstrap/sass/_grid.scss +336 -11
  103. data/vendor/twitter/bootstrap/sass/_input-groups.scss +127 -0
  104. data/vendor/twitter/bootstrap/sass/_jumbotron.scss +40 -0
  105. data/vendor/twitter/bootstrap/sass/_labels.scss +58 -0
  106. data/vendor/twitter/bootstrap/sass/_list-group.scss +88 -0
  107. data/vendor/twitter/bootstrap/sass/_media.scss +8 -7
  108. data/vendor/twitter/bootstrap/sass/_mixins.scss +465 -433
  109. data/vendor/twitter/bootstrap/sass/_modals.scss +102 -52
  110. data/vendor/twitter/bootstrap/sass/_navbar.scss +511 -383
  111. data/vendor/twitter/bootstrap/sass/_navs.scss +169 -349
  112. data/vendor/twitter/bootstrap/sass/_normalize.scss +396 -0
  113. data/vendor/twitter/bootstrap/sass/_pager.scss +45 -33
  114. data/vendor/twitter/bootstrap/sass/_pagination.scss +65 -105
  115. data/vendor/twitter/bootstrap/sass/_panels.scss +148 -0
  116. data/vendor/twitter/bootstrap/sass/_popovers.scss +51 -51
  117. data/vendor/twitter/bootstrap/sass/_print.scss +100 -0
  118. data/vendor/twitter/bootstrap/sass/_progress-bars.scss +28 -55
  119. data/vendor/twitter/bootstrap/sass/_responsive-utilities.scss +180 -45
  120. data/vendor/twitter/bootstrap/sass/_scaffolding.scss +101 -24
  121. data/vendor/twitter/bootstrap/sass/_tables.scss +169 -168
  122. data/vendor/twitter/bootstrap/sass/_theme.scss +232 -0
  123. data/vendor/twitter/bootstrap/sass/_thumbnails.scss +11 -33
  124. data/vendor/twitter/bootstrap/sass/_tooltip.scss +45 -20
  125. data/vendor/twitter/bootstrap/sass/_type.scss +101 -110
  126. data/vendor/twitter/bootstrap/sass/_utilities.scss +19 -22
  127. data/vendor/twitter/bootstrap/sass/_variables.scss +498 -179
  128. data/vendor/twitter/bootstrap/sass/_wells.scss +7 -7
  129. data/vendor/twitter/bootstrap/sass/bootstrap.scss +29 -33
  130. metadata +47 -56
  131. data/lib/bootstrap/generators/engine.rb +0 -14
  132. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +0 -301
  133. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css +0 -18
  134. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.less +0 -19
  135. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +0 -19
  136. data/lib/generators/bootstrap/install/templates/config/initializers/simple_form.rb +0 -176
  137. data/lib/generators/bootstrap/install/templates/config/locales/simple_form.en.yml +0 -24
  138. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb +0 -13
  139. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml +0 -10
  140. data/lib/generators/bootstrap/install/templates/layouts/fluid.html.erb +0 -80
  141. data/lib/generators/bootstrap/install/templates/layouts/fluid.html.haml +0 -94
  142. data/lib/generators/bootstrap/install/templates/layouts/hero.html.erb +0 -53
  143. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  144. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  145. data/vendor/assets/javascripts/bootstrap-affix.js +0 -117
  146. data/vendor/assets/javascripts/bootstrap-button.js +0 -105
  147. data/vendor/assets/javascripts/bootstrap-carousel.js +0 -207
  148. data/vendor/assets/javascripts/bootstrap-collapse.js +0 -167
  149. data/vendor/assets/javascripts/bootstrap-dropdown.js +0 -169
  150. data/vendor/assets/javascripts/bootstrap-modal.js +0 -247
  151. data/vendor/assets/javascripts/bootstrap-popover.js +0 -114
  152. data/vendor/assets/javascripts/bootstrap-scrollspy.js +0 -162
  153. data/vendor/assets/javascripts/bootstrap-tab.js +0 -144
  154. data/vendor/assets/javascripts/bootstrap-tooltip.js +0 -361
  155. data/vendor/assets/javascripts/bootstrap-transition.js +0 -60
  156. data/vendor/assets/javascripts/bootstrap-typeahead.js +0 -335
  157. data/vendor/assets/stylesheets/bootstrap-responsive.css +0 -1109
  158. data/vendor/twitter/bootstrap/less/accordion.less +0 -34
  159. data/vendor/twitter/bootstrap/less/hero-unit.less +0 -25
  160. data/vendor/twitter/bootstrap/less/labels-badges.less +0 -84
  161. data/vendor/twitter/bootstrap/less/layouts.less +0 -16
  162. data/vendor/twitter/bootstrap/less/reset.less +0 -216
  163. data/vendor/twitter/bootstrap/less/responsive-1200px-min.less +0 -28
  164. data/vendor/twitter/bootstrap/less/responsive-767px-max.less +0 -193
  165. data/vendor/twitter/bootstrap/less/responsive-768px-979px.less +0 -19
  166. data/vendor/twitter/bootstrap/less/responsive-navbar.less +0 -189
  167. data/vendor/twitter/bootstrap/less/responsive.less +0 -48
  168. data/vendor/twitter/bootstrap/less/sprites.less +0 -197
  169. data/vendor/twitter/bootstrap/sass/_accordion.scss +0 -34
  170. data/vendor/twitter/bootstrap/sass/_hero-unit.scss +0 -25
  171. data/vendor/twitter/bootstrap/sass/_labels-badges.scss +0 -83
  172. data/vendor/twitter/bootstrap/sass/_layouts.scss +0 -16
  173. data/vendor/twitter/bootstrap/sass/_reset.scss +0 -216
  174. data/vendor/twitter/bootstrap/sass/_responsive-1200px-min.scss +0 -28
  175. data/vendor/twitter/bootstrap/sass/_responsive-767px-max.scss +0 -193
  176. data/vendor/twitter/bootstrap/sass/_responsive-768px-979px.scss +0 -19
  177. data/vendor/twitter/bootstrap/sass/_responsive-navbar.scss +0 -189
  178. data/vendor/twitter/bootstrap/sass/_sprites.scss +0 -197
  179. data/vendor/twitter/bootstrap/sass/responsive.scss +0 -48
@@ -1,18 +0,0 @@
1
- /*
2
- *= require bootstrap
3
- *= require_self
4
- *= require bootstrap-responsive
5
- */
6
-
7
- body {
8
- padding-top: 60px;
9
- padding-bottom: 40px;
10
- }
11
-
12
- .page-header a.btn {
13
- float: right;
14
- }
15
-
16
- .page-header a.btn + a.btn {
17
- margin-right: 8px;
18
- }
@@ -1,19 +0,0 @@
1
- @import "bootstrap";
2
-
3
- body {
4
- padding-top: @navbarHeight + 20px;
5
- padding-bottom: 40px;
6
- }
7
-
8
- @import "responsive";
9
- @import "bootstrap-variables";
10
-
11
- .page-header {
12
- a.btn {
13
- float: right;
14
- }
15
-
16
- a.btn + a.btn {
17
- margin-right: 8px;
18
- }
19
- }
@@ -1,19 +0,0 @@
1
- @import "bootstrap-variables";
2
- @import "bootstrap.scss";
3
-
4
- body {
5
- padding-top: $navbarHeight + 20px;
6
- padding-bottom: 40px;
7
- }
8
-
9
- @import "responsive";
10
-
11
- .page-header {
12
- a.btn {
13
- float: right;
14
- }
15
-
16
- a.btn + a.btn {
17
- margin-right: 8px;
18
- }
19
- }
@@ -1,176 +0,0 @@
1
- # Use this setup block to configure all options available in SimpleForm.
2
- SimpleForm.setup do |config|
3
- # Wrappers are used by the form builder to generate a
4
- # complete input. You can remove any component from the
5
- # wrapper, change the order or even add your own to the
6
- # stack. The options given below are used to wrap the
7
- # whole input.
8
- config.wrappers :default, :class => :input,
9
- :hint_class => :field_with_hint, :error_class => :field_with_errors do |b|
10
- ## Extensions enabled by default
11
- # Any of these extensions can be disabled for a
12
- # given input by passing: `f.input EXTENSION_NAME => false`.
13
- # You can make any of these extensions optional by
14
- # renaming `b.use` to `b.optional`.
15
-
16
- # Determines whether to use HTML5 (:email, :url, ...)
17
- # and required attributes
18
- b.use :html5
19
-
20
- # Calculates placeholders automatically from I18n
21
- # You can also pass a string as f.input :placeholder => "Placeholder"
22
- b.use :placeholder
23
-
24
- ## Optional extensions
25
- # They are disabled unless you pass `f.input EXTENSION_NAME => :lookup`
26
- # to the input. If so, they will retrieve the values from the model
27
- # if any exists. If you want to enable the lookup for any of those
28
- # extensions by default, you can change `b.optional` to `b.use`.
29
-
30
- # Calculates maxlength from length validations for string inputs
31
- b.optional :maxlength
32
-
33
- # Calculates pattern from format validations for string inputs
34
- b.optional :pattern
35
-
36
- # Calculates min and max from length validations for numeric inputs
37
- b.optional :min_max
38
-
39
- # Calculates readonly automatically from readonly attributes
40
- b.optional :readonly
41
-
42
- ## Inputs
43
- b.use :label_input
44
- b.use :hint, :wrap_with => { :tag => :span, :class => :hint }
45
- b.use :error, :wrap_with => { :tag => :span, :class => :error }
46
- end
47
-
48
- config.wrappers :bootstrap, :tag => 'div', :class => 'control-group', :error_class => 'error' do |b|
49
- b.use :html5
50
- b.use :placeholder
51
- b.use :label
52
- b.wrapper :tag => 'div', :class => 'controls' do |ba|
53
- ba.use :input
54
- ba.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
55
- ba.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' }
56
- end
57
- end
58
-
59
- config.wrappers :prepend, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
60
- b.use :html5
61
- b.use :placeholder
62
- b.use :label
63
- b.wrapper :tag => 'div', :class => 'controls' do |input|
64
- input.wrapper :tag => 'div', :class => 'input-prepend' do |prepend|
65
- prepend.use :input
66
- end
67
- input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' }
68
- input.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
69
- end
70
- end
71
-
72
- config.wrappers :append, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
73
- b.use :html5
74
- b.use :placeholder
75
- b.use :label
76
- b.wrapper :tag => 'div', :class => 'controls' do |input|
77
- input.wrapper :tag => 'div', :class => 'input-append' do |append|
78
- append.use :input
79
- end
80
- input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' }
81
- input.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
82
- end
83
- end
84
-
85
- # Wrappers for forms and inputs using the Twitter Bootstrap toolkit.
86
- # Check the Bootstrap docs (http://twitter.github.com/bootstrap)
87
- # to learn about the different styles for forms and inputs,
88
- # buttons and other elements.
89
- config.default_wrapper = :bootstrap
90
-
91
- # Define the way to render check boxes / radio buttons with labels.
92
- # Defaults to :nested for bootstrap config.
93
- # :inline => input + label
94
- # :nested => label > input
95
- config.boolean_style = :nested
96
-
97
- # Default class for buttons
98
- config.button_class = 'btn'
99
-
100
- # Method used to tidy up errors.
101
- # config.error_method = :first
102
-
103
- # Default tag used for error notification helper.
104
- config.error_notification_tag = :div
105
-
106
- # CSS class to add for error notification helper.
107
- config.error_notification_class = 'alert alert-error'
108
-
109
- # ID to add for error notification helper.
110
- # config.error_notification_id = nil
111
-
112
- # Series of attempts to detect a default label method for collection.
113
- # config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
114
-
115
- # Series of attempts to detect a default value method for collection.
116
- # config.collection_value_methods = [ :id, :to_s ]
117
-
118
- # You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
119
- # config.collection_wrapper_tag = nil
120
-
121
- # You can define the class to use on all collection wrappers. Defaulting to none.
122
- # config.collection_wrapper_class = nil
123
-
124
- # You can wrap each item in a collection of radio/check boxes with a tag,
125
- # defaulting to :span. Please note that when using :boolean_style = :nested,
126
- # SimpleForm will force this option to be a label.
127
- # config.item_wrapper_tag = :span
128
-
129
- # You can define a class to use in all item wrappers. Defaulting to none.
130
- # config.item_wrapper_class = nil
131
-
132
- # How the label text should be generated altogether with the required text.
133
- # config.label_text = lambda { |label, required| "#{required} #{label}" }
134
-
135
- # You can define the class to use on all labels. Default is nil.
136
- config.label_class = 'control-label'
137
-
138
- # You can define the class to use on all forms. Default is simple_form.
139
- config.form_class = 'form-horizontal'
140
-
141
- # You can define which elements should obtain additional classes
142
- # config.generate_additional_classes_for = [:wrapper, :label, :input]
143
-
144
- # Whether attributes are required by default (or not). Default is true.
145
- # config.required_by_default = true
146
-
147
- # Tell browsers whether to use default HTML5 validations (novalidate option).
148
- # Default is enabled.
149
- config.browser_validations = false
150
-
151
- # Collection of methods to detect if a file type was given.
152
- # config.file_methods = [ :mounted_as, :file?, :public_filename ]
153
-
154
- # Custom mappings for input types. This should be a hash containing a regexp
155
- # to match as key, and the input type that will be used when the field name
156
- # matches the regexp as value.
157
- # config.input_mappings = { /count/ => :integer }
158
-
159
- # Default priority for time_zone inputs.
160
- # config.time_zone_priority = nil
161
-
162
- # Default priority for country inputs.
163
- # config.country_priority = nil
164
-
165
- # Default size for text inputs.
166
- # config.default_input_size = 50
167
-
168
- # When false, do not use translations for labels.
169
- # config.translate_labels = true
170
-
171
- # Automatically discover new inputs in Rails' autoload path.
172
- # config.inputs_discovery = true
173
-
174
- # Cache SimpleForm inputs discovery
175
- # config.cache_discovery = !Rails.env.development?
176
- end
@@ -1,24 +0,0 @@
1
- en:
2
- simple_form:
3
- "yes": 'Yes'
4
- "no": 'No'
5
- required:
6
- text: 'required'
7
- mark: '*'
8
- # You can uncomment the line below if you need to overwrite the whole required html.
9
- # When using html, text and mark won't be used.
10
- # html: '<abbr title="required">*</abbr>'
11
- error_notification:
12
- default_message: "Some errors were found, please take a look:"
13
- # Labels and hints examples
14
- # labels:
15
- # password: 'Password'
16
- # user:
17
- # new:
18
- # email: 'E-mail para efetuar o sign in.'
19
- # edit:
20
- # email: 'E-mail.'
21
- # hints:
22
- # username: 'User name to sign in.'
23
- # password: 'No special characters, please.'
24
-
@@ -1,13 +0,0 @@
1
- <%%= simple_form_for(@<%= singular_table_name %>, :defaults => { :input_html => { :class => 'input-xxlarge' } }) do |f| %>
2
- <%%= f.error_notification %>
3
-
4
- <div class="form-inputs">
5
- <%- attributes.each do |attribute| -%>
6
- <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
7
- <%- end -%>
8
- </div>
9
-
10
- <div class="form-actions">
11
- <%%= f.button :submit, :class => "btn-primary" %>
12
- </div>
13
- <%% end %>
@@ -1,10 +0,0 @@
1
- = simple_form_for(@<%= singular_table_name %>, :defaults => { :input_html => { :class => 'input-xxlarge' } }) do |f|
2
- = f.error_notification
3
-
4
- .form-inputs
5
- <%- attributes.each do |attribute| -%>
6
- = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
7
- <%- end -%>
8
-
9
- .form-actions
10
- = f.button :submit, :class => "btn-primary"
@@ -1,80 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>Bootstrap, from Twitter</title>
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <meta name="description" content="">
8
- <meta name="author" content="">
9
-
10
- <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
11
- <!--[if lt IE 9]>
12
- <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
13
- <![endif]-->
14
-
15
- <%%= stylesheet_link_tag "application" %>
16
- <%%= javascript_include_tag "application" %>
17
- <%%= csrf_meta_tags %>
18
- </head>
19
- <body>
20
- <div class="navbar navbar-fixed-top">
21
- <div class="navbar-inner">
22
- <div class="container-fluid">
23
- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
24
- <span class="icon-bar"></span>
25
- <span class="icon-bar"></span>
26
- <span class="icon-bar"></span>
27
- </a>
28
- <%%= link_to "Project name", "#", :class => "brand" %>
29
- <div class="nav-collapse">
30
- <ul class="nav">
31
- <li class="active"><a href="#">Home</a></li>
32
- <li><a href="#about">About</a></li>
33
- <li><a href="#contact">Contact</a></li>
34
- </ul>
35
- <p class="navbar-text pull-right">Logged in as <a href="#">username</a></p>
36
- </div>
37
- </div>
38
- </div>
39
- </div>
40
- <div class="container-fluid">
41
- <div class="row-fluid">
42
- <div class="span3">
43
- <div class="well sidebar-nav">
44
- <ul class="nav nav-list">
45
- <li class="nav-header">Sidebar</li>
46
- <li class="active"><a href="#">Link</a></li>
47
- <li><a href="#">Link</a></li>
48
- <li><a href="#">Link</a></li>
49
- <li><a href="#">Link</a></li>
50
- <li class="nav-header">Sidebar</li>
51
- <li><a href="#">Link</a></li>
52
- <li><a href="#">Link</a></li>
53
- <li><a href="#">Link</a></li>
54
- <li><a href="#">Link</a></li>
55
- <li><a href="#">Link</a></li>
56
- <li><a href="#">Link</a></li>
57
- <li class="nav-header">Sidebar</li>
58
- <li><a href="#">Link</a></li>
59
- <li><a href="#">Link</a></li>
60
- <li><a href="#">Link</a></li>
61
- </ul>
62
- </div>
63
- </div>
64
- <div class="span9">
65
- <%% flash.each do |name, msg| %>
66
- <%%= content_tag :div, :class => "alert #{name == :error ? "alert-error" : "alert-success" }" do %>
67
- <a class="close" data-dismiss="alert" href="#">×</a>
68
- <%%= msg %>
69
- <%% end %>
70
- <%% end %>
71
- <%%= yield %>
72
- </div>
73
- </div>
74
- <hr>
75
- <footer>
76
- <p>&copy; Company 2012</p>
77
- </footer>
78
- </div>
79
- </body>
80
- </html>
@@ -1,94 +0,0 @@
1
- !!!
2
- %html
3
- %head
4
- %meta{:charset => "utf-8"}
5
- %title Bootstrap, from Twitter
6
- %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
7
- %meta{:content => "", :name => "description"}
8
- %meta{:content => "", :name => "author"}
9
-
10
- / Le HTML5 shim, for IE6-8 support of HTML5 elements
11
- /[if lt IE 9]
12
- <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
13
- = stylesheet_link_tag "application"
14
- = javascript_include_tag "application"
15
- = csrf_meta_tags
16
- %body
17
- .navbar.navbar-fixed-top
18
- .navbar-inner
19
- .container-fluid
20
- %a.btn.btn-navbar{:"data-toggle" => "collapse", :"data-target" => ".nav-collapse"}
21
- %span.icon-bar
22
- %span.icon-bar
23
- %span.icon-bar
24
- %a.brand{:href => "#"} Project name
25
- .nav-collapse
26
- %ul.nav
27
- %li.active
28
- %a{:href => "#"} Home
29
- %li
30
- %a{:href => "#about"} About
31
- %li
32
- %a{:href => "#contact"} Contact
33
- %p.navbar-text.pull-right
34
- Logged in as
35
- %a{:href => "#"} username
36
- .container-fluid
37
- .row-fluid
38
- .span3
39
- .well.sidebar-nav
40
- %ul.nav.nav-list
41
- %li.nav-header
42
- Sidebar
43
- %li.active
44
- %a{:href => "#"}
45
- Link
46
- %li
47
- %a{:href => "#"}
48
- Link
49
- %li
50
- %a{:href => "#"}
51
- Link
52
- %li
53
- %a{:href => "#"}
54
- Link
55
- %li.nav-header
56
- Sidebar
57
- %li
58
- %a{:href => "#"}
59
- Link
60
- %li
61
- %a{:href => "#"}
62
- Link
63
- %li
64
- %a{:href => "#"}
65
- Link
66
- %li
67
- %a{:href => "#"}
68
- Link
69
- %li
70
- %a{:href => "#"}
71
- Link
72
- %li
73
- %a{:href => "#"}
74
- Link
75
- %li.nav-header
76
- Sidebar
77
- %li
78
- %a{:href => "#"}
79
- Link
80
- %li
81
- %a{:href => "#"}
82
- Link
83
- %li
84
- %a{:href => "#"}
85
- Link
86
- .span9
87
- - flash.each do |name, msg|
88
- = content_tag :div, :class => "alert #{name == :error ? "alert-error" : "alert-success" }" do
89
- %a.close{:href => "#", :"data-dismiss" => "alert"} ×
90
- = msg
91
- = yield
92
- %hr
93
- %footer
94
- %p &copy; Company 2012