Sha256: 5c7fe83c6ca3a6cba55e1e47274cd5d337ae58fb8e06f2f50ececf89773dea70

Contents?: true

Size: 957 Bytes

Versions: 1

Compression:

Stored size: 957 Bytes

Contents

<hr>
<div class="panel panel-primary">
  <div class="panel-heading">
    Tasks for this contact
  </div>
  <table class="table">
    <thead>
      <th>ID</th>
      <th>Title</th>
      <th>Content</th>
      <th>Created On</th>
      <th></th>
    </thead>
    <tbody>
      <% @contact.tasks.each do |task| %>
        <tr>
          <td><%= task.id %></td>
          <td><%= task.title %></td>
          <td><%= task.content %></td>
          <td><%= task.created_at.strftime("%d %b. %Y") %></td>
          <td>
            <%= link_to 'Show', [blast, task], class: 'btn btn-primary' %>
            <%= link_to 'Edit', blast.edit_task_path(task),
                        class: 'btn btn-primary' %>
            <%= link_to 'Destroy', [blast, task],
                        class: 'btn btn-primary' , method: :delete,
                        data: { confirm: 'Are you sure?' } %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blast_tasks-0.0.1 app/views/blast/tasks/overrides/_contact_tasks_list.html.erb