kube-rails 0.0.1 → 0.0.2

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.
data/README.md CHANGED
@@ -1 +1,3 @@
1
1
  # Kube for Rails 3.1 Asset Pipeline
2
+
3
+ [![Build Status](https://secure.travis-ci.org/mmozuras/kube-rails.png)](http://travis-ci.org/mmozuras/kube-rails)
@@ -1,53 +1,27 @@
1
1
  require 'rails/generators'
2
2
 
3
- module Bootstrap
3
+ module Kube
4
4
  module Generators
5
5
  class InstallGenerator < ::Rails::Generators::Base
6
6
 
7
7
  source_root File.expand_path("../templates", __FILE__)
8
- desc "This generator installs Twitter Bootstrap to Asset Pipeline"
8
+ desc "This generator installs Kube to Asset Pipeline"
9
9
 
10
10
  def add_assets
11
-
12
- if File.exist?('app/assets/javascripts/application.js')
13
- insert_into_file "app/assets/javascripts/application.js", "//= require twitter/bootstrap\n", :after => "jquery_ujs\n"
14
- else
15
- copy_file "application.js", "app/assets/javascripts/application.js"
16
- end
17
-
18
11
  if File.exist?('app/assets/stylesheets/application.css')
19
- # Add our own require:
20
12
  content = File.read("app/assets/stylesheets/application.css")
21
- if content.match(/require_tree\s+\.\s*$/)
22
- # Good enough - that'll include our bootstrap_and_overrides.css.less
23
- else
24
- style_require_block = " *= require bootstrap_and_overrides\n"
13
+ unless content.match(/require_tree\s+\.\s*$/)
14
+ style_require_block = " *= require kube\n"
25
15
  insert_into_file "app/assets/stylesheets/application.css", style_require_block, :after => "require_self\n"
26
16
  end
27
17
  else
28
18
  copy_file "application.css", "app/assets/stylesheets/application.css"
29
19
  end
30
-
31
20
  end
32
21
 
33
- def add_bootstrap
34
- copy_file "bootstrap.coffee", "app/assets/javascripts/bootstrap.js.coffee"
35
- copy_file "bootstrap_and_overrides.less", "app/assets/stylesheets/bootstrap_and_overrides.css.less"
22
+ def add_kube
23
+ copy_file "kube.less", "app/assets/stylesheets/kube.css.less"
36
24
  end
37
-
38
- def cleanup_legacy
39
- # Remove old requires (if any) that included twitter/bootstrap directly:
40
- gsub_file("app/assets/stylesheets/application.css", %r|\s*\*=\s*twitter/bootstrap\s*\n|, "")
41
- gsub_file("app/assets/stylesheets/application.css", %r|\s*\*=\s*twitter/bootstrap_responsive\s*\n|, "")
42
- if File.exist?('app/assets/stylesheets/bootstrap_override.css.less')
43
- puts <<-EOM
44
- Warning:
45
- app/assets/stylesheets/bootstrap_override.css.less exists
46
- It should be removed, as it has been superceded by app/assets/stylesheets/bootstrap_and_overrides.css.less
47
- EOM
48
- end
49
- end
50
-
51
25
  end
52
26
  end
53
27
  end
@@ -0,0 +1 @@
1
+ @import "kube/kube";
@@ -1,7 +1,7 @@
1
1
  require 'rails/generators'
2
2
  require 'rails/generators/generated_attribute'
3
3
 
4
- module Bootstrap
4
+ module Kube
5
5
  module Generators
6
6
  class ThemedGenerator < ::Rails::Generators::Base
7
7
  source_root File.expand_path('../templates', __FILE__)
@@ -77,11 +77,11 @@ module Bootstrap
77
77
 
78
78
  def generate_views
79
79
  views = {
80
- "index.html.#{ext}" => File.join('app/views', @controller_file_path, "index.html.#{ext}"),
81
- "new.html.#{ext}" => File.join('app/views', @controller_file_path, "new.html.#{ext}"),
82
- "edit.html.#{ext}" => File.join('app/views', @controller_file_path, "edit.html.#{ext}"),
83
- "#{form_builder}_form.html.#{ext}" => File.join('app/views', @controller_file_path, "_form.html.#{ext}"),
84
- "show.html.#{ext}" => File.join('app/views', @controller_file_path, "show.html.#{ext}")}
80
+ "index.html.#{ext}" => File.join('app/views', @controller_file_path, "index.html.#{ext}"),
81
+ "new.html.#{ext}" => File.join('app/views', @controller_file_path, "new.html.#{ext}"),
82
+ "edit.html.#{ext}" => File.join('app/views', @controller_file_path, "edit.html.#{ext}"),
83
+ "_form.html.#{ext}" => File.join('app/views', @controller_file_path, "_form.html.#{ext}"),
84
+ "show.html.#{ext}" => File.join('app/views', @controller_file_path, "show.html.#{ext}")}
85
85
  selected_views = views
86
86
  options.engine == generate_erb(selected_views)
87
87
  end
@@ -95,10 +95,6 @@ module Bootstrap
95
95
  def ext
96
96
  ::Rails.application.config.generators.options[:rails][:template_engine] || :erb
97
97
  end
98
-
99
- def form_builder
100
- defined?(::SimpleForm) ? 'simple_form/' : ''
101
- end
102
98
  end
103
99
  end
104
100
  end
@@ -1,5 +1,5 @@
1
1
  module Kube
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kube-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -100,16 +100,7 @@ extra_rdoc_files: []
100
100
  files:
101
101
  - lib/generators/kube/install/install_generator.rb
102
102
  - lib/generators/kube/install/templates/application.css
103
- - lib/generators/kube/install/templates/application.js
104
- - lib/generators/kube/install/templates/bootstrap.coffee
105
- - lib/generators/kube/install/templates/bootstrap_and_overrides.less
106
- - lib/generators/kube/layout/layout_generator.rb
107
- - lib/generators/kube/layout/templates/layout.html.erb
108
- - lib/generators/kube/layout/templates/layout.html.haml
109
- - lib/generators/kube/layout/templates/layout.html.slim
110
- - lib/generators/kube/partial/partial_generator.rb
111
- - lib/generators/kube/partial/templates/_login.html.erb
112
- - lib/generators/kube/partial/templates/_navbar.html.erb
103
+ - lib/generators/kube/install/templates/kube.less
113
104
  - lib/generators/kube/themed/templates/_form.html.erb
114
105
  - lib/generators/kube/themed/templates/_form.html.haml
115
106
  - lib/generators/kube/themed/templates/_form.html.slim
@@ -125,9 +116,6 @@ files:
125
116
  - lib/generators/kube/themed/templates/show.html.erb
126
117
  - lib/generators/kube/themed/templates/show.html.haml
127
118
  - lib/generators/kube/themed/templates/show.html.slim
128
- - lib/generators/kube/themed/templates/simple_form/_form.html.erb
129
- - lib/generators/kube/themed/templates/simple_form/_form.html.haml
130
- - lib/generators/kube/themed/templates/simple_form/_form.html.slim
131
119
  - lib/generators/kube/themed/themed_generator.rb
132
120
  - lib/kube/rails/engine.rb
133
121
  - lib/kube/rails/kube.rb
@@ -1,10 +0,0 @@
1
- // This is a manifest file that'll be compiled into including all the files listed below.
2
- // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
- // be included in the compiled file accessible from http://example.com/assets/application.js
4
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
- // the compiled file.
6
- //
7
- //= require jquery
8
- //= require jquery_ujs
9
- //= require twitter/bootstrap
10
- //= require_tree .
@@ -1,4 +0,0 @@
1
- jQuery ->
2
- $("a[rel=popover]").popover()
3
- $(".tooltip").tooltip()
4
- $("a[rel=tooltip]").tooltip()
@@ -1,28 +0,0 @@
1
- @import "twitter/bootstrap/bootstrap";
2
- @import "twitter/bootstrap/responsive";
3
-
4
- // Set the correct sprite paths
5
- @iconSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings.png");
6
- @iconWhiteSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings-white.png");
7
-
8
- // Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
9
- // Note: If you use asset_path() here, your compiled boostrap_and_overrides.css will not
10
- // have the proper paths. So for now we use the absolute path.
11
- @fontAwesomeEotPath: asset-path("fontawesome-webfont.eot");
12
- @fontAwesomeWoffPath: asset-path("fontawesome-webfont.woff");
13
- @fontAwesomeTtfPath: asset-path("fontawesome-webfont.ttf");
14
- @fontAwesomeSvgPath: asset-path("fontawesome-webfont.svg");
15
-
16
- // Font Awesome
17
- @import "fontawesome";
18
-
19
- // Your custom LESS stylesheets goes here
20
- //
21
- // Since bootstrap was imported above you have access to its mixins which
22
- // you may use and inherit here
23
- //
24
- // If you'd like to override bootstrap's own variables, you can do so here as well
25
- // See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation
26
- //
27
- // Example:
28
- // @linkColor: #ff0000;
@@ -1,23 +0,0 @@
1
- require 'rails/generators'
2
-
3
- module Bootstrap
4
- module Generators
5
- class LayoutGenerator < ::Rails::Generators::Base
6
- source_root File.expand_path("../templates", __FILE__)
7
- desc "This generator generates layout file with navigation."
8
- argument :layout_name, :type => :string, :default => "application"
9
- argument :layout_type, :type => :string, :default => "fixed",
10
- :banner => "*fixed or fluid"
11
-
12
- attr_reader :app_name, :container_class
13
-
14
- def generate_layout
15
- app = ::Rails.application
16
- @app_name = app.class.to_s.split("::").first
17
- @container_class = layout_type == "fluid" ? "container-fluid" : "container"
18
- ext = app.config.generators.options[:rails][:template_engine] || :erb
19
- template "layout.html.#{ext}", "app/views/layouts/#{layout_name}.html.#{ext}"
20
- end
21
- end
22
- end
23
- end
@@ -1,108 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title><%%= content_for?(:title) ? yield(:title) : "<%= app_name %>" %></title>
8
- <%%= csrf_meta_tags %>
9
-
10
- <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
11
- <!--[if lt IE 9]>
12
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
13
- <![endif]-->
14
-
15
- <%%= stylesheet_link_tag "application", :media => "all" %>
16
-
17
- <!-- For third-generation iPad with high-resolution Retina display: -->
18
- <!-- Size should be 144 x 144 pixels -->
19
- <%%= favicon_link_tag 'images/apple-touch-icon-144x144-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '144x144' %>
20
-
21
- <!-- For iPhone with high-resolution Retina display: -->
22
- <!-- Size should be 114 x 114 pixels -->
23
- <%%= favicon_link_tag 'images/apple-touch-icon-114x114-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '114x114' %>
24
-
25
- <!-- For first- and second-generation iPad: -->
26
- <!-- Size should be 72 x 72 pixels -->
27
- <%%= favicon_link_tag 'images/apple-touch-icon-72x72-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '72x72' %>
28
-
29
- <!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
30
- <!-- Size should be 57 x 57 pixels -->
31
- <%%= favicon_link_tag 'images/apple-touch-icon-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png' %>
32
-
33
- <!-- For all other devices -->
34
- <!-- Size should be 32 x 32 pixels -->
35
- <%%= favicon_link_tag 'images/favicon.ico', :rel => 'shortcut icon' %>
36
- </head>
37
- <body>
38
-
39
- <div class="navbar navbar-fixed-top">
40
- <div class="navbar-inner">
41
- <div class="<%= container_class %>">
42
- <a class="btn btn-navbar" data-target=".nav-collapse" data-toggle="collapse">
43
- <span class="icon-bar"></span>
44
- <span class="icon-bar"></span>
45
- <span class="icon-bar"></span>
46
- </a>
47
- <a class="brand" href="#"><%= app_name %></a>
48
- <div class="<%= container_class %> nav-collapse">
49
- <ul class="nav">
50
- <li><%%= link_to "Link1", "/path1" %></li>
51
- <li><%%= link_to "Link2", "/path2" %></li>
52
- <li><%%= link_to "Link3", "/path3" %></li>
53
- </ul>
54
- </div><!--/.nav-collapse -->
55
- </div>
56
- </div>
57
- </div>
58
-
59
- <div class="<%= container_class %>">
60
- <%- if layout_type == "fluid" -%>
61
- <div class="row-fluid">
62
- <div class="span3">
63
- <div class="well sidebar-nav">
64
- <ul class="nav nav-list">
65
- <li class="nav-header">Sidebar</li>
66
- <li><%%= link_to "Link1", "/path1" %></li>
67
- <li><%%= link_to "Link2", "/path2" %></li>
68
- <li><%%= link_to "Link3", "/path3" %></li>
69
- </ul>
70
- </div><!--/.well -->
71
- </div><!--/span-->
72
- <div class="span9">
73
- <%%= bootstrap_flash %>
74
- <%%= yield %>
75
- </div>
76
- </div><!--/row-->
77
- <%- else -%>
78
- <div class="row">
79
- <div class="span9">
80
- <%%= yield %>
81
- </div>
82
- <div class="span3">
83
- <div class="well sidebar-nav">
84
- <h3>Sidebar</h3>
85
- <ul class="nav nav-list">
86
- <li class="nav-header">Sidebar</li>
87
- <li><%%= link_to "Link1", "/path1" %></li>
88
- <li><%%= link_to "Link2", "/path2" %></li>
89
- <li><%%= link_to "Link3", "/path3" %></li>
90
- </ul>
91
- </div><!--/.well -->
92
- </div><!--/span-->
93
- </div><!--/row-->
94
- <%- end -%>
95
-
96
- <footer>
97
- <p>&copy; Company 2012</p>
98
- </footer>
99
-
100
- </div> <!-- /container -->
101
-
102
- <!-- Javascripts
103
- ================================================== -->
104
- <!-- Placed at the end of the document so the pages load faster -->
105
- <%%= javascript_include_tag "application" %>
106
-
107
- </body>
108
- </html>
@@ -1,68 +0,0 @@
1
- !!! 5
2
- %html(lang="en")
3
- %head
4
- %meta(charset="utf-8")
5
- %meta(http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1")
6
- %meta(name="viewport" content="width=device-width, initial-scale=1.0")
7
- %title= content_for?(:title) ? yield(:title) : "<%= app_name %>"
8
- = csrf_meta_tags
9
- / Le HTML5 shim, for IE6-8 support of HTML elements
10
- /[if lt IE 9]
11
- = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
12
- = stylesheet_link_tag "application", :media => "all"
13
- %link(href="images/apple-touch-icon-144x144.png" rel="apple-touch-icon-precomposed" sizes="144x144")
14
- %link(href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon-precomposed" sizes="114x114")
15
- %link(href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon-precomposed" sizes="72x72")
16
- %link(href="images/apple-touch-icon.png" rel="apple-touch-icon-precomposed")
17
- %link(href="images/favicon.ico" rel="shortcut icon")
18
-
19
-
20
- %body
21
- .navbar.navbar-fixed-top
22
- .navbar-inner
23
- .<%= container_class %>
24
- %a.btn.btn-navbar(data-target=".nav-collapse" data-toggle="collapse")
25
- %span.icon-bar
26
- %span.icon-bar
27
- %span.icon-bar
28
- %a.brand(href="#") <%= app_name %>
29
- .container.nav-collapse
30
- %ul.nav
31
- %li= link_to "Link 1", "/path1"
32
- %li= link_to "Link 2", "/path2"
33
- %li= link_to "Link 3", "/path3"
34
-
35
- .<%= container_class %>
36
- <%- if layout_type == "fluid" -%>
37
-
38
- .row-fluid
39
- .span3
40
- .well.sidebar-nav
41
- %ul.nav.nav-list
42
- %li.nav-header Sidebar
43
- %li= link_to "Link 1", "/path1"
44
- %li= link_to "Link 2", "/path2"
45
- %li= link_to "Link 3", "/path3"
46
- .span9
47
- = yield
48
- <% else %>
49
- .row
50
- .span9
51
- = bootstrap_flash
52
- = yield
53
- .span3
54
- .well.sidebar-nav
55
- %h3 Sidebar
56
- %ul.nav.nav-list
57
- %li.nav-header Sidebar
58
- %li= link_to "Link 1", "/path1"
59
- %li= link_to "Link 2", "/path2"
60
- %li= link_to "Link 3", "/path3"
61
- <% end %>
62
- %footer
63
- %p &copy; Company 2012
64
- /
65
- Javascripts
66
- \==================================================
67
- / Placed at the end of the document so the pages load faster
68
- = javascript_include_tag "application"
@@ -1,68 +0,0 @@
1
- doctype html
2
- html lang="en"
3
- head
4
- meta charset="utf-8"
5
- meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"
6
- meta name="viewport" content="width=device-width, initial-scale=1.0"
7
- title= content_for?(:title) ? yield(:title) : "<%= app_name %>"
8
- = csrf_meta_tags
9
-
10
- /! Le HTML5 shim, for IE6-8 support of HTML elements
11
- /[if lt IE 9]
12
- = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
13
- = stylesheet_link_tag "application", :media => "all"
14
- link href="images/apple-touch-icon-144x144.png" rel="apple-touch-icon-precomposed" sizes="144x144"
15
- link href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon-precomposed" sizes="114x114"
16
- link href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon-precomposed" sizes="72x72"
17
- link href="images/apple-touch-icon.png" rel="apple-touch-icon-precomposed"
18
- link href="images/favicon.ico" rel="shortcut icon"
19
-
20
- body
21
- .navbar.navbar-fixed-top
22
- .navbar-inner
23
- .<%= container_class %>
24
- a.btn.btn-navbar data-target=".nav-collapse" data-toggle="collapse"
25
- span.icon-bar
26
- span.icon-bar
27
- span.icon-bar
28
- a.brand href="#"<%= app_name %>
29
- .<%=container_class%>.nav-collapse
30
- ul.nav
31
- li= link_to "Link 1", "/path1"
32
- li= link_to "Link 2", "/path2"
33
- li= link_to "Link 3", "/path3"
34
-
35
- .<%= container_class %>
36
- <%- if layout_type == "fluid" -%>
37
-
38
- .row-fluid
39
- .span3
40
- .well.sidebar-nav
41
- ul.nav.nav-list
42
- li.nav-header Sidebar
43
- li= link_to "Link 1", "/path1"
44
- li= link_to "Link 2", "/path2"
45
- li= link_to "Link 3", "/path3"
46
- .span9
47
- = yield
48
- <% else %>
49
- .row
50
- .span9
51
- = bootstrap_flash
52
- = yield
53
- .span3
54
- .well.sidebar-nav
55
- h3 Sidebar
56
- ul.nav.nav-list
57
- li.nav-header Sidebar
58
- li= link_to "Link 1", "/path1"
59
- li= link_to "Link 2", "/path2"
60
- li= link_to "Link 3", "/path3"
61
- <% end %>
62
- footer
63
- p &copy; Company 2012
64
- /!
65
- Javascripts
66
- \==================================================
67
- /! Placed at the end of the document so the pages load faster
68
- = javascript_include_tag "application"
@@ -1,20 +0,0 @@
1
- require 'rails/generators'
2
-
3
- module Bootstrap
4
- module Generators
5
- class PartialGenerator < ::Rails::Generators::Base
6
- source_root File.expand_path("../templates", __FILE__)
7
- desc "This generator generates bootstrap HTML partials"
8
- argument :component_name, :type => :string, :default => "application",
9
- :banner => "navbar, navbar-devise, carousel"
10
-
11
- attr_reader :app_name
12
-
13
- def generate_partial
14
- app = ::Rails.application
15
- ext = app.config.generators.options[:rails][:template_engine] || :erb
16
- copy_file "_#{component_name}.html.#{ext}", "app/views/shared/_#{component_name}.html.#{ext}"
17
- end
18
- end
19
- end
20
- end
@@ -1,29 +0,0 @@
1
- <h2>Sign in</h2>
2
-
3
- <%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => 'form-horizontal' }) do |f| %>
4
- <div class="control-group">
5
- <%= f.label :email, :class => 'control-label' %>
6
- <div class="controls">
7
- <%= f.email_field :email %>
8
- </div>
9
- </div>
10
- <div class="control-group">
11
- <%= f.label :password, :class => 'control-label' %>
12
- <div class="controls">
13
- <%= f.password_field :password %>
14
- </div>
15
- </div>
16
-
17
- <% if devise_mapping.rememberable? -%>
18
- <div class='control-group' >
19
- <%= f.label :remember_me, :class => 'control-label' %>
20
- <%= f.check_box :remember_me %>
21
- </div>
22
- <% end -%>
23
-
24
- <div class="form-actions">
25
- <%= f.submit "Sign in", :class => 'btn' %>
26
- </div>
27
- <% end %>
28
-
29
- <%= render :partial => "devise/shared/links" %>
@@ -1,13 +0,0 @@
1
- <div class="navbar">
2
- <div class="navbar-inner">
3
- <div class="container">
4
- <a class="brand" href="/">Brand</a>
5
- <p>
6
- " the mission "
7
- </p>
8
- <ul class="nav pull-right">
9
- <li><%= link_to "Link 1", "" %></li>
10
- </ul>
11
- </div>
12
- </div>
13
- </div>
@@ -1,14 +0,0 @@
1
- <%%= simple_form_for @<%= resource_name %>, :html => { :class => 'form-horizontal' } do |f| %>
2
- <%- columns.each do |column| -%>
3
- <%%= f.input :<%= column.name %> %>
4
- <%- end -%>
5
- <%- if ::SimpleForm::FormBuilder.instance_methods.include?(:wrapped_button) -%>
6
- <%%= f.button :wrapped, :cancel => <%= controller_routing_path %>_path %>
7
- <%- else -%>
8
- <div class="form-actions">
9
- <%%= f.button :submit, :class => 'btn-primary' %>
10
- <%%= link_to t('.cancel', :default => t("helpers.links.cancel")),
11
- <%= controller_routing_path %>_path, :class => 'btn' %>
12
- </div>
13
- <%- end -%>
14
- <%% end %>
@@ -1,11 +0,0 @@
1
- = simple_form_for @<%= resource_name %>, :html => { :class => 'form-horizontal' } do |f|
2
- <%- columns.each do |column| -%>
3
- = f.input :<%= column.name %>
4
- <%- end -%>
5
- <%- if ::SimpleForm::FormBuilder.instance_methods.include?(:wrapped_button) -%>
6
- = f.button :wrapped, :cancel => <%= controller_routing_path %>_path
7
- <%- else -%>
8
- .form-actions
9
- = f.button :submit, :class => 'btn-primary'
10
- = link_to t('.cancel', :default => t("helpers.links.cancel")), <%= controller_routing_path %>_path, :class => 'btn'
11
- <%- end -%>
@@ -1,12 +0,0 @@
1
- = simple_form_for @<%= resource_name %>, :html => { :class => "form-horizontal" } do |f|
2
- <%- columns.each do |column| -%>
3
- = f.input :<%= column.name %>
4
- <%- end -%>
5
- <%- if ::SimpleForm::FormBuilder.instance_methods.include?(:wrapped_button) -%>
6
- = f.button :wrapped, :cancel => <%= controller_routing_path %>_path
7
- <%- else -%>
8
- .form-actions
9
- = f.button :submit, :class => 'btn-primary'
10
- '
11
- = link_to t('.cancel', :default => t("helpers.links.cancel")), <%= controller_routing_path %>_path, :class => 'btn'
12
- <%- end -%>