Sha256: ffe785ec19cc9cc050a325a56936c07824ddac705464163cb9051d2a0665dd8a

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

<%= link_to 'New Contact', blast.new_contact_path,
            class: 'float-right btn btn-primary' %>

<h2>Listing Contacts</h2>
<hr>

<div class="panel panel-primary">
  <div class="panel-heading">
    My Contacts
  </div>

  <table class="table">
    <thead>
      <th>ID</th>
      <th>First Name</th>
      <th>Last Name</th>
      <th>Company</th>
      <th>Email</th>
      <th>Phone</th>
      <th></th>
    </thead>
    <tbody>
      <% @contacts.each do |contact| %>
        <tr>
          <td><%= contact.id %></td>
          <td><%= contact.first_name %></td>
          <td><%= contact.last_name %></td>
          <td><%= contact.company %></td>
          <td><%= contact.email %></td>
          <td><%= contact.phone %></td>
          <td>
            <%= link_to 'Show', [blast, contact],
                        class: 'btn btn-primary' %>
            <%= link_to 'Edit', blast.edit_contact_path(contact),
                        class: 'btn btn-primary' %>
            <%= link_to 'Destroy', [blast, contact],
                        class: 'btn btn-primary' , method: :delete,
                        data: { confirm: 'Are you sure?' } %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>
<br>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blast_contacts-0.0.1 app/views/blast/contacts/contacts/index.html.erb