Sha256: 41ea37497a6542aea8be0c38e9c8d4cd19b08b986996c4f97a95640b1fb9f987

Contents?: true

Size: 1.25 KB

Versions: 11

Compression:

Stored size: 1.25 KB

Contents

<h3>My Tasks</h3>
<%= form_tag cms.complete_tasks_path, :method => :put do %>
    <table class="table table-bordered dashboard">
      <thead>
      <tr>
        <% unless @incomplete_tasks.empty? %>
            <th></th>
        <% end %>
        <th>Page</th>
        <th>Assigned By</th>
        <th>Due Date</th>
      </tr>
      </thead>
      <tbody>
      <% if @incomplete_tasks.empty? %>
          <tr>
            <td colspan="4">You currently have no assigned tasks.</td>
          </tr>
      <% else %>
          <% @incomplete_tasks.each do |task| %>
              <tr>
                <td>
                  <%= check_box_tag "task_ids[]", task.id, false, :id => "complete_task_#{task.id}" %>
                </td>
                <td>
                  <%= link_to h(task.page.name_with_section_path), task.page.path %>
                </td>
                <td>
                  <%= h task.assigned_by.login %>
                </td>
                <td><%= task.due_date ? task.due_date.strftime("%b %d, %Y") : nil %></td>
              </tr>
          <% end %>
          <tr>
            <td colspan="4"><%= submit_tag("Complete Selected", :class => "submit btn btn-mini btn-primary") %></td>
          </tr>
      <% end %>
      </tbody>

    </table>
<% end %>

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 app/views/cms/dashboard/_tasks.html.erb
browsercms-artirix-4.0.3.3 app/views/cms/dashboard/_tasks.html.erb
browsercms-artirix-4.0.3.2 app/views/cms/dashboard/_tasks.html.erb
browsercms-artirix-4.0.3.1 app/views/cms/dashboard/_tasks.html.erb
browsercms-artirix-4.0.3 app/views/cms/dashboard/_tasks.html.erb
browsercms-artirix-4.0.2 app/views/cms/dashboard/_tasks.html.erb
browsercms-artirix-4.0.1.1 app/views/cms/dashboard/_tasks.html.erb
browsercms-artirix-4.0.0.rc1.art4 app/views/cms/dashboard/_tasks.html.erb
browsercms-4.0.0.rc1 app/views/cms/dashboard/_tasks.html.erb
browsercms-4.0.0.beta app/views/cms/dashboard/_tasks.html.erb
browsercms-4.0.0.alpha app/views/cms/dashboard/_tasks.html.erb