Sha256: 28329447db0c2278f28088b2b1cd0a0fdf11237a5efca9d8e635ac2a3a6f0d42

Contents?: true

Size: 1.21 KB

Versions: 9

Compression:

Stored size: 1.21 KB

Contents

<tr class="<%= cycle('even', 'odd') %>">
<% resource_handler.attributes.each do |attribute| %>
  <td class="<%= attribute[:type] %> <%= attribute[:name] %>">
  <% if attribute[:type] == :boolean %>
    <%= resource.public_send(attribute[:name]) ? render_icon(:check) : nil %>
  <% else %>
    <%= render_attribute(resource, attribute) %>
  <% end %>
  </td>
<% end %>
  <td class="tools">
  <% if can?(:destroy, resource) %>
    <%= delete_button resource_path(resource, search_filter_params) %>
  <% end %>
  <% if can?(:edit, resource) %>
    <%= link_to_dialog render_icon(:edit),
      edit_resource_path(resource, search_filter_params),
      {
        title: Alchemy.t('Edit'),
        size: resource_window_size
      },
      title: Alchemy.t('Edit') %>
  <% end %>
    <% if can?(:show, resource) %>
      <%= link_to_dialog render_icon(:eye),
                         resource_path(resource, search_filter_params),
                         {
                             title: Alchemy.t('Show'),
                             size: resource_window_size,
                             class: "pippo"
                         },
                         title: Alchemy.t('Show')
                          %>
    <% end %>
  </td>
</tr>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy-ajax-form-1.2.1 app/views/alchemy/admin/ajax_forms/_resource.html.erb
alchemy-ajax-form-2.1.0 app/views/alchemy/admin/ajax_forms/_resource.html.erb
alchemy-ajax-form-2.0.0 app/views/alchemy/admin/ajax_forms/_resource.html.erb
alchemy-ajax-form-1.2.0 app/views/alchemy/admin/ajax_forms/_resource.html.erb
alchemy-ajax-form-1.1.5 app/views/alchemy/admin/ajax_forms/_resource.html.erb
alchemy-ajax-form-1.1.3 app/views/alchemy/admin/ajax_forms/_resource.html.erb
alchemy-ajax-form-1.1.2 app/views/alchemy/admin/ajax_forms/_resource.html.erb
alchemy-ajax-form-1.1.1 app/views/alchemy/admin/ajax_forms/_resource.html.erb
alchemy-ajax-form-1.1.0 app/views/alchemy/admin/ajax_forms/_resource.html.erb