Sha256: 7a2eaf5a48cbd175e2efbeba0c819b0d4e30c89e8ad33239b18ae56d48d6fbea

Contents?: true

Size: 1006 Bytes

Versions: 41

Compression:

Stored size: 1006 Bytes

Contents

<%%= content_for :menu do %>
<%%= icon_to 'nouveau.png', new_<%= singular_table_name %>_path %>
<%% end -%>


<div class="champ">


  <h3> Liste des  <%%= I18n::t('<%= plural_table_name %>') %></h3>
<table class="table table-striped table-bordered table-condensed" cellpadding="0" cellspacing="0" border="0">
<thead>
  <tr>
 <% for attribute in attributes -%> 
    <th><%%= I18n::t('<%= attribute.name %>') %></th>
 <% end -%> 
    <th>Actions</th>
    
  </tr>
</thead>
<tbody> 
<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
  <tr>
<% for attribute in attributes -%>
    <td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td>
<% end -%>
    <td><%%= icon_to 'detail.png', <%= singular_table_name %> %>
    <%%= icon_to 'modifier.png', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %>
    <%%= icon_to 'supprimer.png', <%= singular_table_name %>, :confirm => 'Etes vous sur ?', :method => :delete %></td>
  </tr>
<%% end %>
</tbody>
</table>

</div>


Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
adherent-0.3.13 lib/templates/erb/scaffold/index.html.erb
adherent-0.3.12 lib/templates/erb/scaffold/index.html.erb
adherent-0.3.11 lib/templates/erb/scaffold/index.html.erb
adherent-0.3.10 lib/templates/erb/scaffold/index.html.erb
adherent-0.3.9 lib/templates/erb/scaffold/index.html.erb
adherent-0.3.7 lib/templates/erb/scaffold/index.html.erb
adherent-0.3.6 lib/templates/erb/scaffold/index.html.erb
adherent-0.3.5 lib/templates/erb/scaffold/index.html.erb
adherent-0.3.4 lib/templates/erb/scaffold/index.html.erb
adherent-0.3.3 lib/templates/erb/scaffold/index.html.erb
adherent-0.3.2 lib/templates/erb/scaffold/index.html.erb
adherent-0.3.1 lib/templates/erb/scaffold/index.html.erb
adherent-0.3.0 lib/templates/erb/scaffold/index.html.erb
adherent-0.2.9 lib/templates/erb/scaffold/index.html.erb
adherent-0.2.8 lib/templates/erb/scaffold/index.html.erb
adherent-0.2.7 lib/templates/erb/scaffold/index.html.erb
adherent-0.2.6 lib/templates/erb/scaffold/index.html.erb
adherent-0.2.5 lib/templates/erb/scaffold/index.html.erb
adherent-0.2.4 lib/templates/erb/scaffold/index.html.erb
adherent-0.2.3 lib/templates/erb/scaffold/index.html.erb