<% @orm.columns.each_with_index do |column, i| -%> <% end -%> <%% @<%= @orm.name_plural %>.each do |<%= @orm.name_singular %>| %> <%- @orm.columns.each_with_index do |column, i| -%> <%- if column.name == "created_at" || column.name == "updated_at" -%> <%- elsif column.type == :boolean -%> <%- else -%> <%- end -%> <%- end -%> <%% end %>
<%%= mat(:<%= @orm.name_singular %>, :<%= column.name %>) %>
<%%= check_box_tag '<%= @orm.name_singular %>_ids[]', :value => <%= @orm.name_singular %>.id, :class => 'list-selectable-checkbox' %> <%%= time_ago_in_words <%= @orm.name_singular %>.<%= column.name %> %> <%%= <%= @orm.name_singular %>.<%= column.name %> ? tag_icon(:ok) : tag_icon(:remove) %> <%%= <%= @orm.name_singular %>.<%= column.name %> %>
<%%= link_to tag_icon(:edit), :href => url(:<%= @orm.name_plural %>, :edit, :id => <%= @orm.name_singular %>.id), :rel => :tooltip, :title => "#{pat(:edit)} <%= @orm.name_singular %>", :class => 'list-row-action-wrapper-link' %> <%%= link_to tag_icon('trash-o'), :rel => :tooltip, :title => "#{pat(:delete)} <%= @orm.name_singular %>", :class => 'list-row-action-delete-one list-row-action-wrapper-link' %>

<%%= pat(:delete, :model => "<%= @orm.name_singular %>") %>

<%% form_tag url(:<%= @orm.name_plural %>, :destroy, :id => <%= @orm.name_singular %>.id), :method => :delete do %> <%%= submit_tag pat(:delete), :class =>'list-row-action-popover-delete-one-btn btn btn-danger btn-small' %>
<%%= pat(:cancel) %>
<%% end %>