Sha256: 05907b442a691ae5d44a4ea08593d3d0ebbd1bbb06c4cb87be821b5dbde4a829

Contents?: true

Size: 1.56 KB

Versions: 13

Compression:

Stored size: 1.56 KB

Contents

<h2><%%= t('headers.index', name: t('activerecord.models.<%= name %>.other')) %></h2>

<table class="table table-striped table-hover">
  <thead>
    <tr>
      <th><%%= t('activerecord.attributes.<%= name %>.email') %></th>
      <th><%%= t('activerecord.attributes.<%= name %>.name') %></th>
      <th><%%= t('activerecord.attributes.<%= name %>.active') %></th>
      <th><%%= t('activerecord.attributes.<%= name %>.status') %></th>
      <th><%%= t('activerecord.attributes.<%= name %>.theme') %></th>
      <th class="index-actions"><%%= t('actions.title') %></th>
    </tr>
  </thead>

  <tbody>
    <%% @<%= table_name %>.each do |<%= name %>| %>
      <tr>
        <td><%%= link_to <%= name %>.email, "mailto:#{<%= name %>.email}" %></td>
        <td><%%= <%= name %>.name %></td>
        <td><%%= <%= name %>.active ? t('simple_form.yes') : t('simple_form.no') %></td>
        <td><%%= t('enums.<%= name %>.status.' + <%= name %>.status) %></td>
        <td><%%= <%= name %>.theme %></td>
        <td class="index-actions">
          <%%= link_to t('actions.show'), <%= name %>, class: 'btn btn-default btn-xs' %>
          <br>
          <%%= link_to t('actions.edit'), [:edit, <%= name %>], class: 'btn btn-default btn-xs' %>
          <br>
          <%%= link_to t('actions.destroy'), <%= name %>, method: :delete, data: { confirm: t('actions.confirm') }, class: 'btn btn-danger btn-xs' %>
        </td>
      </tr>
    <%% end %>
  </tbody>
</table>

<br>

<%%= link_to t('actions.add', name: t('activerecord.models.<%= name %>.one')), new_<%= name %>_path, class: 'btn btn-primary' %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
bootswatch_rails-3.2.0.11 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb
bootswatch_rails-3.2.0.10 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb
bootswatch_rails-3.2.0.9 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb
bootswatch_rails-3.2.0.8 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb
bootswatch_rails-3.2.0.7 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb
bootswatch_rails-3.2.0.6 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb
bootswatch_rails-3.2.0.5 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb
bootswatch_rails-3.2.0.4 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb
bootswatch_rails-3.2.0.3 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb
bootswatch_rails-3.2.0.2 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb
bootswatch_rails-3.2.0.1 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb
bootswatch_rails-3.1.1.18 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb
bootswatch_rails-3.1.1.17 lib/generators/bootswatch_rails/sorcery/templates/index.html.erb