foldscaf 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v0.0.7
2
+ * Mejorado boton para Ordenar
3
+ * Id de tablas ahora corresponde al tableize de la clase del elemento, en lugar de a :listado (esto permite trabajar con multiples tablas).
4
+ * Friendly Id ahora usa el identificador como slug
5
+
1
6
  ## v0.0.6
2
7
  * Botones alineados a la derecha en Administración
3
8
  * Quitado boton 'ver' de edit, ya que no existe el show
@@ -1,7 +1,7 @@
1
1
  class <%= @class %> < ActiveRecord::Base
2
2
  <%- if @con_slug -%>
3
3
  extend FriendlyId
4
- friendly_id
4
+ friendly_id :<%= @identificador %>
5
5
  <%- end -%>
6
6
  <%- atributos_con_referencia.each do |a| -%>
7
7
  belongs_to :<%= a.nombre %>
@@ -9,7 +9,7 @@
9
9
 
10
10
  <%%= render "mini_form", :<%= @singular %> => @<%= @singular %>, :url => <%= @plural_path %> %>
11
11
 
12
- <%%= content_tag :table, :id => :listado, :class => [:table, :"table-striped", :ordenable] do %>
12
+ <%%= content_tag :table, :id => @<%= @singular %>.class.name.tableize, :class => [:table, :"table-striped", :ordenable] do %>
13
13
  <%%= thead :<%= @identificador %> %>
14
14
  <%%= content_tag :tbody, render(@<%= @plural %>) %>
15
15
  <%% end %>
@@ -2,7 +2,7 @@
2
2
  <td><%%= <%= @singular %>.<%= @identificador %> %></td>
3
3
  <td style="text-align:right;">
4
4
  <%- if @con_orden -%>
5
- <%%= content_tag :i, '', :class => [:handle, :"icon-move"], :title => 'Mantenga click y arrastre para reordenar' %>
5
+ <%%= link_to icono('move', :black) + " Mover", "#", :class => 'btn btn-mini handle', :title => 'Mantenga click y arrastre para reordenar' %>
6
6
  <%- end -%>
7
7
  <%%= link_to 'Editar', <%= @edit_path %>(<%= @singular %>), :class => 'btn btn-mini' if can? :editar, <%= @singular %> %>
8
8
  <%%= link_to "Eliminar", <%= @singular_path %>(<%= @singular %>), :method => :delete, :confirm => t("confirmacion"), :remote => true, :class => 'btn btn-mini btn-danger' if can? :destroy, <%= @singular %> %>
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Foldscaf
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foldscaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
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: 2012-04-09 00:00:00.000000000 Z
12
+ date: 2012-04-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Generadores adaptados a las necesidades de Xaver
15
15
  email: