Sha256: d28a0f6dc19b4d0e775f3ac2ff3e7db68786ed935cfd06c559ebe9828b6d7f79
Contents?: true
Size: 1.68 KB
Versions: 2
Compression:
Stored size: 1.68 KB
Contents
<% if(@elements) %> <tbody> <% @elements.each do |element| %> <tr> <% @attributes.each_with_index do |attribute, index| %> <% value = element.send(attribute) %> <% # se e' un booleano %> <% if(!!value == value) %> <td data-label="<%= @head[index] %>"> <% if value %> <div class="general-status"> <div class="status round-status true"></div> </div> <% else %> <div class="general-status"> <div class="status round-status false"></div> </div> <% end %> </td> <% else %> <td data-label="<%= @head[index] %>"><%= value %></td> <% end %> <% end %> <% if @show_link || @edit_link || @delete_link %> <td class="actions"> <% if(@show_link) %> <%= link_to VIEW_LANG['index']['show'], self.show_link(element.id), class: 'lato-button button-small' %> <% end %> <% if(@edit_link) %> <%= link_to VIEW_LANG['index']['edit'], self.edit_link(element.id), class: 'lato-button button-yellow button-small' %> <% end %> <% if(@delete_link) %> <%= link_to VIEW_LANG['index']['delete'], self.delete_link(element.id), method: :delete, remote: @remote_delete, class: 'lato-button button-red button-small', data: {confirm: VIEW_LANG['input']['confirm_delete']} %> <% end %> </td> <% end %> </tr> <% end %> </tbody> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lato_view-1.1.4 | app/cells/lato_view/layout/index/views/rows.html.erb |
lato_view-1.1.3 | app/cells/lato_view/layout/index/views/rows.html.erb |