conte_rails_template 0.1.9 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/conte_rails_template/version.rb +1 -1
- data/lib/generators/conte_rails_template/templates/erb/scaffold/edit.html.erb +3 -2
- data/lib/generators/conte_rails_template/templates/erb/scaffold/index.html.erb +5 -1
- data/lib/generators/conte_rails_template/templates/erb/scaffold/new.html.erb +3 -2
- data/lib/generators/conte_rails_template/templates/layout.html.erb +1 -3
- metadata +2 -2
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<div id="content">
|
2
|
+
<%%= render 'form' %>
|
3
|
+
</div>
|
@@ -2,6 +2,8 @@
|
|
2
2
|
<%%= link_to(render_icon_and_text_content('icon-plus-sign', t('model.create', :model => <%= class_name.split('::').last %>.model_name.human)), new_<%= class_name.split('::').last.underscore.downcase %>_path, :class => 'btn btn-inverse') %>
|
3
3
|
<%% end %>
|
4
4
|
|
5
|
+
<div id="content">
|
6
|
+
|
5
7
|
<%%= grid(@<%= class_name.split('::').last.underscore.downcase.pluralize %>_grid, :show_filters => :always) do |g|
|
6
8
|
<% attributes.each do |attribute| -%>
|
7
9
|
g.column :name => t('activerecord.attributes.<%= class_name.split('::').last.underscore.downcase %>.<%= attribute.name %>'), :html => {:class => "grid-cell"} do |<%= class_name.split('::').last.underscore.downcase %>|
|
@@ -15,4 +17,6 @@
|
|
15
17
|
content << link_to(render_icon_content('icon-trash'), <%= singular_table_name %>_path(<%= class_name.split('::').last.underscore.downcase %>), :method => :delete, :confirm => t("confirms.delete"), :class => 'btn btn-link', :rel => 'tooltip', :title => t('buttons.delete'))
|
16
18
|
content_tag :div, content.join('').html_safe, class: 'btn-group'
|
17
19
|
end
|
18
|
-
end -%>
|
20
|
+
end -%>
|
21
|
+
|
22
|
+
</div>
|
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<div id="content">
|
2
|
+
<%%= render 'form' %>
|
3
|
+
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conte_rails_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|