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.
- data/README.md +238 -21
- data/bootstrap-generators.gemspec +3 -3
- data/lib/bootstrap-generators.rb +0 -1
- data/lib/bootstrap/generators/version.rb +1 -1
- data/lib/generators/bootstrap/install/install_generator.rb +5 -12
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css +5 -5
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.less +119 -0
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.scss +5 -5
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css +0 -5
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.less +114 -0
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +0 -5
- data/lib/generators/bootstrap/install/templates/config/initializers/simple_form.rb +118 -40
- data/lib/generators/bootstrap/install/templates/config/locales/simple_form.en.yml +24 -0
- data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb +9 -8
- data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +8 -7
- data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb +5 -7
- data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml +6 -7
- data/lib/generators/bootstrap/install/templates/layouts/fluid.html.erb +50 -47
- data/lib/generators/bootstrap/install/templates/layouts/fluid.html.haml +75 -55
- data/lib/generators/bootstrap/install/templates/layouts/hero.html.erb +11 -14
- data/lib/generators/bootstrap/install/templates/layouts/hero.html.haml +9 -11
- data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/edit.html.erb +8 -2
- data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb +5 -2
- data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/new.html.erb +4 -1
- data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/show.html.erb +8 -2
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/edit.html.haml +6 -2
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml +4 -2
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/new.html.haml +3 -1
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/show.html.haml +6 -2
- data/test/lib/generators/bootstrap/install_generator_test.rb +6 -20
- data/test/test_helper.rb +1 -1
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +91 -0
- data/vendor/assets/javascripts/bootstrap-button.js +98 -0
- data/vendor/assets/javascripts/bootstrap-carousel.js +154 -0
- data/vendor/assets/javascripts/bootstrap-collapse.js +136 -0
- data/vendor/assets/javascripts/bootstrap-dropdown.js +58 -21
- data/vendor/assets/javascripts/bootstrap-modal.js +63 -114
- data/vendor/assets/javascripts/bootstrap-popover.js +38 -33
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +62 -44
- data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
- data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
- data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
- data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
- data/vendor/assets/javascripts/bootstrap.js +11 -6
- data/vendor/assets/stylesheets/bootstrap.css +2497 -1602
- data/vendor/assets/stylesheets/less/accordion.less +28 -0
- data/vendor/assets/stylesheets/less/alerts.less +70 -0
- data/vendor/assets/stylesheets/less/bootstrap.less +62 -0
- data/vendor/assets/stylesheets/less/breadcrumbs.less +22 -0
- data/vendor/assets/stylesheets/less/button-groups.less +147 -0
- data/vendor/assets/stylesheets/less/buttons.less +165 -0
- data/vendor/assets/stylesheets/less/carousel.less +121 -0
- data/vendor/assets/stylesheets/less/close.less +18 -0
- data/vendor/assets/stylesheets/less/code.less +44 -0
- data/vendor/assets/stylesheets/less/component-animations.less +18 -0
- data/vendor/assets/stylesheets/less/dropdowns.less +131 -0
- data/vendor/assets/stylesheets/less/forms.less +515 -0
- data/vendor/assets/stylesheets/less/grid.less +8 -0
- data/vendor/assets/stylesheets/less/hero-unit.less +20 -0
- data/vendor/assets/stylesheets/less/labels.less +16 -0
- data/vendor/assets/stylesheets/less/layouts.less +17 -0
- data/vendor/assets/stylesheets/less/mixins.less +537 -0
- data/vendor/assets/stylesheets/less/modals.less +72 -0
- data/vendor/assets/stylesheets/less/navbar.less +292 -0
- data/vendor/assets/stylesheets/less/navs.less +344 -0
- data/vendor/assets/stylesheets/less/pager.less +30 -0
- data/vendor/assets/stylesheets/less/pagination.less +55 -0
- data/vendor/assets/stylesheets/less/popovers.less +49 -0
- data/vendor/assets/stylesheets/less/progress-bars.less +95 -0
- data/vendor/assets/stylesheets/less/reset.less +126 -0
- data/vendor/assets/stylesheets/less/responsive.less +323 -0
- data/vendor/assets/stylesheets/less/scaffolding.less +29 -0
- data/vendor/assets/stylesheets/less/sprites.less +156 -0
- data/vendor/assets/stylesheets/less/tables.less +139 -0
- data/vendor/assets/stylesheets/less/thumbnails.less +35 -0
- data/vendor/assets/stylesheets/less/tooltip.less +35 -0
- data/vendor/assets/stylesheets/less/type.less +217 -0
- data/vendor/assets/stylesheets/less/utilities.less +23 -0
- data/vendor/assets/stylesheets/less/variables.less +99 -0
- data/vendor/assets/stylesheets/less/wells.less +17 -0
- metadata +62 -33
- data/lib/bootstrap/helpers/form_builder.rb +0 -26
- data/lib/generators/bootstrap/install/templates/app/inputs/boolean_input.rb +0 -12
- data/lib/generators/bootstrap/install/templates/app/inputs/collection_input.rb +0 -12
- data/lib/generators/bootstrap/install/templates/app/inputs/date_time_input.rb +0 -16
- data/lib/generators/bootstrap/install/templates/app/inputs/file_input.rb +0 -16
- data/lib/generators/bootstrap/install/templates/app/inputs/numeric_input.rb +0 -16
- data/lib/generators/bootstrap/install/templates/app/inputs/password_input.rb +0 -16
- data/lib/generators/bootstrap/install/templates/app/inputs/string_input.rb +0 -16
- data/lib/generators/bootstrap/install/templates/app/inputs/text_input.rb +0 -16
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/container-app.css +0 -53
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/container-app.css.scss +0 -55
- data/lib/generators/bootstrap/install/templates/layouts/container-app.html.erb +0 -58
- data/lib/generators/bootstrap/install/templates/layouts/container-app.html.haml +0 -46
- data/vendor/assets/javascripts/bootstrap-alerts.js +0 -113
- data/vendor/assets/javascripts/bootstrap-buttons.js +0 -62
- data/vendor/assets/javascripts/bootstrap-tabs.js +0 -80
- data/vendor/assets/javascripts/bootstrap-twipsy.js +0 -321
- data/vendor/assets/stylesheets/bootstrap.min.css +0 -356
@@ -1,18 +1,16 @@
|
|
1
|
-
<%%= simple_form_for(@<%= singular_table_name
|
1
|
+
<%%= simple_form_for(@<%= singular_table_name %>, :defaults => { :input_html => { :class => 'input-xxlarge' } }) do |f| %>
|
2
2
|
<%% if @<%= singular_table_name %>.errors.any? %>
|
3
|
-
<div class="alert-
|
3
|
+
<div class="alert alert-error">
|
4
|
+
<a class="close" data-dismiss="alert" href="#">×</a>
|
4
5
|
<%%= f.error_notification %>
|
5
6
|
</div>
|
6
7
|
<%% end %>
|
7
8
|
|
8
|
-
<div class="inputs">
|
9
9
|
<%- attributes.each do |attribute| -%>
|
10
10
|
<%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
|
11
11
|
<%- end -%>
|
12
|
-
</div>
|
13
12
|
|
14
|
-
<div class="actions">
|
15
|
-
<%%= f.button :submit, :class => "btn primary" %>
|
13
|
+
<div class="form-actions">
|
14
|
+
<%%= f.button :submit, :class => "btn btn-primary" %>
|
16
15
|
</div>
|
17
16
|
<%% end %>
|
18
|
-
|
@@ -1,13 +1,12 @@
|
|
1
|
-
= simple_form_for(@<%= singular_table_name
|
1
|
+
= simple_form_for(@<%= singular_table_name %>, :defaults => { :input_html => { :class => 'input-xxlarge' } }) do |f|
|
2
2
|
-if @<%= singular_table_name %>.errors.any?
|
3
|
-
.alert-
|
3
|
+
.alert.alert-error
|
4
|
+
%a.close{:href => "#", :"data-dismiss" => "alert"} ×
|
4
5
|
= f.error_notification
|
5
6
|
|
6
|
-
.inputs
|
7
7
|
<%- attributes.each do |attribute| -%>
|
8
|
-
|
8
|
+
= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
|
9
9
|
<%- end -%>
|
10
10
|
|
11
|
-
.actions
|
12
|
-
= f.button :submit, :class => "btn primary"
|
13
|
-
|
11
|
+
.form-actions
|
12
|
+
= f.button :submit, :class => "btn btn-primary"
|
@@ -16,61 +16,64 @@
|
|
16
16
|
<%%= csrf_meta_tags %>
|
17
17
|
</head>
|
18
18
|
<body>
|
19
|
-
<div class="
|
20
|
-
<div class="
|
19
|
+
<div class="navbar navbar-fixed-top">
|
20
|
+
<div class="navbar-inner">
|
21
21
|
<div class="container-fluid">
|
22
|
-
<a class="
|
23
|
-
|
24
|
-
<
|
25
|
-
<
|
26
|
-
|
27
|
-
|
28
|
-
<
|
22
|
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
23
|
+
<span class="icon-bar"></span>
|
24
|
+
<span class="icon-bar"></span>
|
25
|
+
<span class="icon-bar"></span>
|
26
|
+
</a>
|
27
|
+
<%%= link_to "Project name", "#", :class => "brand" %>
|
28
|
+
<div class="nav-collapse">
|
29
|
+
<ul class="nav">
|
30
|
+
<li class="active"><a href="#">Home</a></li>
|
31
|
+
<li><a href="#about">About</a></li>
|
32
|
+
<li><a href="#contact">Contact</a></li>
|
33
|
+
</ul>
|
34
|
+
<p class="navbar-text pull-right">Logged in as <a href="#">username</a></p>
|
35
|
+
</div>
|
29
36
|
</div>
|
30
37
|
</div>
|
31
38
|
</div>
|
32
39
|
<div class="container-fluid">
|
33
|
-
<div class="
|
34
|
-
<div class="
|
35
|
-
<
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
<li><a href="#">Link</a></li>
|
55
|
-
</ul>
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
<%% flash.each do |name, msg| %>
|
59
|
-
<%%= content_tag :div, :class => "container alert-message #{name == :error ? "error" : "success" }", :"data-alert" => "alert" do %>
|
60
|
-
<a class="close" href="#">×</a>
|
61
|
-
<p><%%= msg %></p>
|
62
|
-
<%% end %>
|
63
|
-
<%% end %>
|
64
|
-
<div class="content">
|
65
|
-
<div class="row">
|
66
|
-
<div class="span16">
|
67
|
-
<%%= yield %>
|
40
|
+
<div class="row-fluid">
|
41
|
+
<div class="span3">
|
42
|
+
<div class="well sidebar-nav">
|
43
|
+
<ul class="nav nav-list">
|
44
|
+
<li class="nav-header">Sidebar</li>
|
45
|
+
<li class="active"><a href="#">Link</a></li>
|
46
|
+
<li><a href="#">Link</a></li>
|
47
|
+
<li><a href="#">Link</a></li>
|
48
|
+
<li><a href="#">Link</a></li>
|
49
|
+
<li class="nav-header">Sidebar</li>
|
50
|
+
<li><a href="#">Link</a></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 class="nav-header">Sidebar</li>
|
57
|
+
<li><a href="#">Link</a></li>
|
58
|
+
<li><a href="#">Link</a></li>
|
59
|
+
<li><a href="#">Link</a></li>
|
60
|
+
</ul>
|
68
61
|
</div>
|
69
62
|
</div>
|
70
|
-
<
|
71
|
-
|
72
|
-
|
63
|
+
<div class="span9">
|
64
|
+
<%% flash.each do |name, msg| %>
|
65
|
+
<%%= content_tag :div, :class => "alert #{name == :error ? "alert-error" : "alert-success" }" do %>
|
66
|
+
<a class="close" data-dismiss="alert" href="#">×</a>
|
67
|
+
<%%= msg %>
|
68
|
+
<%% end %>
|
69
|
+
<%% end %>
|
70
|
+
<%%= yield %>
|
71
|
+
</div>
|
73
72
|
</div>
|
73
|
+
<hr>
|
74
|
+
<footer>
|
75
|
+
<p>© Company 2012</p>
|
76
|
+
</footer>
|
74
77
|
</div>
|
75
78
|
</body>
|
76
79
|
</html>
|
@@ -13,61 +13,81 @@
|
|
13
13
|
= javascript_include_tag "application"
|
14
14
|
= csrf_meta_tags
|
15
15
|
%body
|
16
|
-
.
|
17
|
-
.
|
16
|
+
.navbar.navbar-fixed-top
|
17
|
+
.navbar-inner
|
18
18
|
.container-fluid
|
19
|
+
%a.btn.btn-navbar{:"data-toggle" => "collapse", :"data-target" => ".nav-collapse"}
|
20
|
+
%span.icon-bar
|
21
|
+
%span.icon-bar
|
22
|
+
%span.icon-bar
|
19
23
|
%a.brand{:href => "#"} Project name
|
20
|
-
|
21
|
-
%
|
22
|
-
%
|
23
|
-
|
24
|
-
%
|
25
|
-
|
26
|
-
%
|
27
|
-
|
28
|
-
|
29
|
-
|
24
|
+
.nav-collapse
|
25
|
+
%ul.nav
|
26
|
+
%li.active
|
27
|
+
%a{:href => "#"} Home
|
28
|
+
%li
|
29
|
+
%a{:href => "#about"} About
|
30
|
+
%li
|
31
|
+
%a{:href => "#contact"} Contact
|
32
|
+
%p.navbar-text.pull-right
|
33
|
+
Logged in as
|
34
|
+
%a{:href => "#"} username
|
30
35
|
.container-fluid
|
31
|
-
.
|
32
|
-
.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
%
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
%
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
%
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
%
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
36
|
+
.row-fluid
|
37
|
+
.span3
|
38
|
+
.well.sidebar-nav
|
39
|
+
%ul.nav.nav-list
|
40
|
+
%li.nav-header
|
41
|
+
Sidebar
|
42
|
+
%li.active
|
43
|
+
%a{:href => "#"}
|
44
|
+
Link
|
45
|
+
%li
|
46
|
+
%a{:href => "#"}
|
47
|
+
Link
|
48
|
+
%li
|
49
|
+
%a{:href => "#"}
|
50
|
+
Link
|
51
|
+
%li
|
52
|
+
%a{:href => "#"}
|
53
|
+
Link
|
54
|
+
%li.nav-header
|
55
|
+
Sidebar
|
56
|
+
%li
|
57
|
+
%a{:href => "#"}
|
58
|
+
Link
|
59
|
+
%li
|
60
|
+
%a{:href => "#"}
|
61
|
+
Link
|
62
|
+
%li
|
63
|
+
%a{:href => "#"}
|
64
|
+
Link
|
65
|
+
%li
|
66
|
+
%a{:href => "#"}
|
67
|
+
Link
|
68
|
+
%li
|
69
|
+
%a{:href => "#"}
|
70
|
+
Link
|
71
|
+
%li
|
72
|
+
%a{:href => "#"}
|
73
|
+
Link
|
74
|
+
%li.nav-header
|
75
|
+
Sidebar
|
76
|
+
%li
|
77
|
+
%a{:href => "#"}
|
78
|
+
Link
|
79
|
+
%li
|
80
|
+
%a{:href => "#"}
|
81
|
+
Link
|
82
|
+
%li
|
83
|
+
%a{:href => "#"}
|
84
|
+
Link
|
85
|
+
.span9
|
86
|
+
- flash.each do |name, msg|
|
87
|
+
= content_tag :div, :class => "alert #{name == :error ? "alert-error" : "alert-success" }" do
|
88
|
+
%a.close{:href => "#", :"data-dismiss" => "alert"} ×
|
89
|
+
= msg
|
90
|
+
= yield
|
91
|
+
%hr
|
92
|
+
%footer
|
93
|
+
%p © Company 2012
|
@@ -16,8 +16,8 @@
|
|
16
16
|
<%%= csrf_meta_tags %>
|
17
17
|
</head>
|
18
18
|
<body>
|
19
|
-
<div class="
|
20
|
-
<div class="
|
19
|
+
<div class="navbar navbar-fixed-top">
|
20
|
+
<div class="navbar-inner">
|
21
21
|
<div class="container">
|
22
22
|
<%%= link_to "Project name", "#", :class => "brand" %>
|
23
23
|
<ul class="nav">
|
@@ -28,20 +28,17 @@
|
|
28
28
|
</div>
|
29
29
|
</div>
|
30
30
|
</div>
|
31
|
-
<%% flash.each do |name, msg| %>
|
32
|
-
<%%= content_tag :div, :class => "container alert-message #{name == :error ? "error" : "success" }", :"data-alert" => "alert" do %>
|
33
|
-
<a class="close" href="#">×</a>
|
34
|
-
<p><%%= msg %></p>
|
35
|
-
<%% end %>
|
36
|
-
<%% end %>
|
37
31
|
<div class="container">
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
32
|
+
<%% flash.each do |name, msg| %>
|
33
|
+
<%%= content_tag :div, :class => "alert #{name == :error ? "alert-error" : "alert-success" }" do %>
|
34
|
+
<a class="close" data-dismiss="alert" href="#">×</a>
|
35
|
+
<%%= msg %>
|
36
|
+
<%% end %>
|
37
|
+
<%% end %>
|
38
|
+
<%%= yield %>
|
39
|
+
<hr>
|
43
40
|
<footer>
|
44
|
-
<p>© Company
|
41
|
+
<p>© Company 2012</p>
|
45
42
|
</footer>
|
46
43
|
</div>
|
47
44
|
</body>
|
@@ -13,8 +13,8 @@
|
|
13
13
|
= javascript_include_tag "application"
|
14
14
|
= csrf_meta_tags
|
15
15
|
%body
|
16
|
-
.
|
17
|
-
.
|
16
|
+
.navbar.navbar-fixed-top
|
17
|
+
.navbar-inner
|
18
18
|
.container
|
19
19
|
= link_to "Project name", "#", :class => "brand"
|
20
20
|
%ul.nav
|
@@ -24,14 +24,12 @@
|
|
24
24
|
%a{:href => "#about"} About
|
25
25
|
%li
|
26
26
|
%a{:href => "#contact"} Contact
|
27
|
-
- flash.each do |name, msg|
|
28
|
-
= content_tag :div, :class => "container alert-message #{name == :error ? "error" : "success" }", :"data-alert" => "alert" do
|
29
|
-
%a.close{:href => "#"} ×
|
30
|
-
%p= msg
|
31
27
|
.container
|
32
|
-
.
|
33
|
-
|
34
|
-
|
28
|
+
- flash.each do |name, msg|
|
29
|
+
= content_tag :div, :class => "alert #{name == :error ? "alert-error" : "alert-success" }" do
|
30
|
+
%a.close{:href => "#", :"data-dismiss" => "alert"} ×
|
31
|
+
= msg
|
32
|
+
= yield
|
33
|
+
%hr
|
35
34
|
%footer
|
36
|
-
%p
|
37
|
-
|
35
|
+
%p © Company 2012
|
@@ -1,6 +1,12 @@
|
|
1
1
|
<div class="page-header">
|
2
|
-
<%%= link_to
|
3
|
-
|
2
|
+
<%%= link_to <%= index_helper %>_path, :class => 'btn' do %>
|
3
|
+
<i class="icon-list-alt"></i>
|
4
|
+
Back
|
5
|
+
<%% end %>
|
6
|
+
<%%= link_to @<%= singular_table_name %>, :class => 'btn btn-primary' do %>
|
7
|
+
<i class="icon-info-sign icon-white"></i>
|
8
|
+
Show
|
9
|
+
<%% end %>
|
4
10
|
<h1>Editing <%= singular_table_name %></h1>
|
5
11
|
</div>
|
6
12
|
|
@@ -1,9 +1,12 @@
|
|
1
1
|
<div class="page-header">
|
2
|
-
<%%= link_to
|
2
|
+
<%%= link_to new_<%= singular_table_name %>_path, :class => 'btn btn-primary' do %>
|
3
|
+
<i class="icon-plus icon-white"></i>
|
4
|
+
New <%= human_name %>
|
5
|
+
<%% end %>
|
3
6
|
<h1>Listing <%= plural_table_name %></h1>
|
4
7
|
</div>
|
5
8
|
|
6
|
-
<table class="
|
9
|
+
<table class="table table-bordered table-striped">
|
7
10
|
<thead>
|
8
11
|
<tr>
|
9
12
|
<% attributes.each do |attribute| -%>
|
@@ -1,6 +1,12 @@
|
|
1
1
|
<div class="page-header">
|
2
|
-
<%%= link_to
|
3
|
-
|
2
|
+
<%%= link_to <%= index_helper %>_path, :class => 'btn' do %>
|
3
|
+
<i class="icon-list-alt"></i>
|
4
|
+
Back
|
5
|
+
<%% end %>
|
6
|
+
<%%= link_to edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), :class => 'btn btn-primary' do %>
|
7
|
+
<i class="icon-pencil icon-white"></i>
|
8
|
+
Edit
|
9
|
+
<%% end %>
|
4
10
|
<h1>Listing <%= plural_table_name %></h1>
|
5
11
|
</div>
|
6
12
|
|
@@ -1,6 +1,10 @@
|
|
1
1
|
.page-header
|
2
|
-
= link_to
|
3
|
-
|
2
|
+
= link_to <%= index_helper %>_path, :class => 'btn' do
|
3
|
+
%i.icon-list-alt
|
4
|
+
Back
|
5
|
+
= link_to @<%= singular_table_name %>, :class => 'btn btn-primary' do
|
6
|
+
%i.icon-info-sign.icon-white
|
7
|
+
Show
|
4
8
|
%h1 Editing <%= singular_table_name %>
|
5
9
|
|
6
10
|
= render 'form'
|
@@ -1,8 +1,10 @@
|
|
1
1
|
.page-header
|
2
|
-
= link_to
|
2
|
+
= link_to new_<%= singular_table_name %>_path, :class => 'btn btn-primary' do
|
3
|
+
%i.icon-plus.icon-white
|
4
|
+
New <%= human_name %>
|
3
5
|
%h1 Listing <%= plural_table_name %>
|
4
6
|
|
5
|
-
%table.
|
7
|
+
%table.table.table-bordered.table-striped
|
6
8
|
%thead
|
7
9
|
%tr
|
8
10
|
<% for attribute in attributes -%>
|