foldscaf 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/fold/templates/views/nombre.erb +6 -4
- data/lib/version.rb +1 -1
- metadata +1 -1
@@ -1,7 +1,9 @@
|
|
1
1
|
<%%- clase ||= 'elemento' -%>
|
2
2
|
<%%= content_tag :tr, :class => clase, :id => "elementos_#{<%= @singular %>.id}" do %>
|
3
3
|
<td><%%= <%= @singular %>.<%= @identificador %> %></td>
|
4
|
-
<td
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
<td>
|
5
|
+
<%= "<%= content_tag :i, '',:class => 'handle icon-move', :title => 'Mantenga click y arrastre para reordenar' %\>" if @con_orden %>
|
6
|
+
<%%= link_to 'Editar' , <%= @edit_path %>(<%= @singular %>), :class => 'btn btn-mini' if can? :editar, <%= @singular %> %>
|
7
|
+
<%%= link_to "Eliminar", <%= @singular_path %>(<%= @singular %>), :method => :delete, :confirm => t("confirmacion"), :remote => true, :class => 'btn btn-mini btn-danger' %>
|
8
|
+
</td>
|
9
|
+
<%% end %>
|
data/lib/version.rb
CHANGED