Sha256: 5bd47dbda06bf6d4e52ae55ff98380a367fd55b81d67b43895cc937bb8cefec4
Contents?: true
Size: 1.53 KB
Versions: 5
Compression:
Stored size: 1.53 KB
Contents
<div class='panel panel-default model-index-panel'> <div class='panel-heading'> <%= render 'carload/dashboard/shared/index_buttons' %> <%= render 'carload/dashboard/shared/search_fields' %> </div> <div class='panel-body'> <table class='table table-striped'> <thead> <tr> <th width='20'>ID</th> <% @show_attributes.each do |attribute| %> <th width='100'> <% begin %> <%= t("activerecord.attributes.#{@model_name}.#{attribute}", raise: true) %> <% rescue %> <%= t("carload.activerecord.#{attribute}") %> <% end %> </th> <% end %> <th width='20'><%= t('carload.actions') %></th> </tr> </thead> <tbody> <% @objects.each do |object| %> <tr> <td><%= object.id %></td> <% @show_attributes.each do |attribute| %> <td><%= generate_show object, attribute %></td> <% end %> <td> <div class='model-action-buttons'> <%= link_to fa_icon('edit'), dashboard_edit_path(@model_names, object) %> <%= link_to fa_icon('trash'), dashboard_delete_path(@model_names, object), method: :delete, data: { confirm: t('carload.form.message.delete', model: @model_name) } %> </div> </td> </tr> <% end %> </tbody> </table> <div class='center'> <%= paginate @objects %> </div> </div> </div>
Version data entries
5 entries across 5 versions & 1 rubygems