<% @orm.columns.each_with_index do |column, i| -%> | <%%= mat(:<%= @orm.name_singular %>, :<%= column.name %>) %> | <% end -%>|||
---|---|---|---|---|
<%%= check_box_tag '<%= @orm.name_singular %>_ids[]', :value => <%= @orm.name_singular %>.id, :class => 'list-selectable-checkbox' %> | <%- @orm.columns.each_with_index do |column, i| -%> <%- if column.name == "created_at" || column.name == "updated_at" -%><%%= time_ago_in_words <%= @orm.name_singular %>.<%= column.name %> %> | <%- elsif column.type == :boolean -%><%%= <%= @orm.name_singular %>.<%= column.name %> ? tag_icon(:ok) : tag_icon(:remove) %> | <%- else -%><%%= <%= @orm.name_singular %>.<%= column.name %> %> | <%- end -%> <%- end -%>
<%%= 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 %>
|