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.
@@ -1,3 +1,3 @@
1
1
  module ConteRailsTemplate
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.11"
3
3
  end
@@ -1,2 +1,3 @@
1
- <%%= render 'form' %>
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
- <%%= render 'form' %>
2
-
1
+ <div id="content">
2
+ <%%= render 'form' %>
3
+ </div>
@@ -49,9 +49,7 @@
49
49
 
50
50
  <%= render :partial => 'shared/notification' %>
51
51
 
52
- <div id="content">
53
- <%= yield %>
54
- </div>
52
+ <%= yield %>
55
53
  </div>
56
54
  </div>
57
55
  </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.9
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-25 00:00:00.000000000 Z
12
+ date: 2013-01-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties