Sha256: 1c195fe377b77b3ae3b6ae3cd7d1e7de19ba7cfdca7f19b6294f1cfb5ec1971b
Contents?: true
Size: 1.72 KB
Versions: 2
Compression:
Stored size: 1.72 KB
Contents
<%% title "<%= plural_name.titleize %>" %> <%- if action? :new -%> <p><%%= link_to "Adicionar +", { :controller => controller.controller_name, :action => 'new' } %></p> <%- end -%> <table class="data_table"> <thead> <tr> <th>Criação</th> <%- for attribute in model_attributes -%> <th><%= attribute.human_name.titleize %></th> <%- end -%> <th>Ações</th> </tr> </thead> <tbody> <%% for <%= instance_name %> in @<%= instances_name %> %> <tr> <td><%%= data_criacao_table <%= instance_name %> %></td> <%- for attribute in model_attributes -%> <td><%%= <%= instance_name %>.<%= attribute.name %> %></td> <%- end -%> <td> <%- if action? :show -%> <%%= link_to "Exibir", <%= item_path %> %> | <%- end -%> <%- if action? :edit -%> <%%= link_to "Editar", <%= item_path :action => :edit %> %> | <%- end -%> <%- if action? :destroy -%> <%%= link_to "Excluir", <%= item_path %>, :confirm => 'Esta ação não tem volta, deseja prosseguir?', :method => :delete %> <%- end -%> </td> </tr> <%% end %> <tbody> </table> <%%= stylesheet_link_tag "data_table.css" %> <%%= javascript_include_tag 'jquery.dataTables.min.js' %> <script type="text/javascript" charset="utf-8"> j('table.data_table').dataTable({ // http://datatables.net/examples/basic_init/filter_only.html "iDisplayLength": 50, "bAutoWidth": true, "oLanguage": { "sLengthMenu": "_MENU_ entradas por página", "sZeroRecords": "Vazio!", "sInfo": "Exibindo de _START_ até _END_. Total de: _TOTAL_ entradas", "sInfoEmpty": "Nenhuma entrada", "sInfoFiltered": "(total de _MAX_ entradas)", 'sSearch' : "Busca" } }); </script>
Version data entries
2 entries across 2 versions & 1 rubygems