Sha256: de7f5cfbea8966e837bd7d25d2cf65cd15ada6812477fd9f52ed36753323c143

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

<p id="notice"><%= notice %></p>

<h1>Listing Tasks</h1>

<table>
  <thead>
    <tr>
      <th>Title</th>
      <th>Description</th>
      <th>Priority</th>
      <th>State</th>
      <th>Parent</th>
      <th>Owner</th>
      <th>Requester</th>
      <th>End date</th>
      <th>Document</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @tasks.each do |task| %>
      <tr>
        <td><%= task.title %></td>
        <td><%= task.description %></td>
        <td><%= task.priority %></td>
        <td><%= task.state %></td>
        <td><%= task.parent_id %></td>
        <td><%= task.owner_id %></td>
        <td><%= task.requester_id %></td>
        <td><%= task.end_date %></td>
        <td><%= byebug; link_to task.document_file_name %></td>
        <td><%= link_to 'Show', task %></td>
        <td><%= link_to 'Edit', edit_task_path(task) %></td>
        <td><%= link_to 'Destroy', task, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Task', new_task_path %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tasks_management-0.1.4 app/views/tasks_management/tasks/index.html.erb