Sha256: ec6c92ac8cfb8117dcb23f437f9f3cd0a9cff7ca6c0fe7906974fecb730e1116
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
<%% title("<%= plural_name.titleize %>") %> <div id="new_box"> <%%= link_to 'Adicionar', new_admin_<%= singular_name %>_path, :class => 'button medium green' %> </div> <table cellspacing="0" cellpadding="2"> <tr> <%- for attribute in model_attributes -%> <th><%= attribute.human_name.titleize %></th> <%- end -%> <th></th> </tr> <%% @<%= plural_name %>.each do |<%= singular_name %>| %> <tr> <%- for attribute in model_attributes -%> <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td> <%- end -%> <td width="11%"> <ul class="actions"> <li><%%= link_to( image_tag("show.png"), [:admin, <%= singular_name %>], :title => "Mostrar" ) %></li> <li><%%= link_to( image_tag("edit.png"), edit_admin_<%= singular_name %>_path(<%= singular_name %>), :title => "Editar" ) %></li> <li><%%= link_to( image_tag("delete.png"), [:admin, <%= singular_name %>], :confirm => 'Tem certeza que deseja excluir?', :method => :delete, :title => "Excluir" ) %></li> </ul> </td> </tr> <%% end %> </table> <%%= will_paginate @<%= plural_name %>, :previous_label=>'« Anterior', :next_label=>'Próximo »' %>
Version data entries
3 entries across 3 versions & 1 rubygems