Sha256: 6ba6dba48b3224c3864f335a76cc2c8bc6615b30d9f0116eb6a920ad0e44c939

Contents?: true

Size: 1.58 KB

Versions: 5

Compression:

Stored size: 1.58 KB

Contents

<%- model_class = ProjectAssignment -%>
<table class="table table-striped">
  <thead>
    <tr>
      <th><%= model_class.human_attribute_name(:id) %></th>
      <th><%= model_class.human_attribute_name(:project_id) %></th>
      <th><%= model_class.human_attribute_name(:user_id) %></th>
      <th><%= model_class.human_attribute_name(:started_at) %></th>
      <th><%= model_class.human_attribute_name(:finished_at) %></th>
      <th><%= model_class.human_attribute_name(:created_at) %></th>
      <th><%=t '.actions', :default => t("helpers.actions") %></th>
    </tr>
  </thead>
  <tbody>
    <% @project_assignments.each do |project_assignment| %>
      <tr>
        <td><%= project_assignment.id %></td>
        <td><%= project_assignment.project.name %></td>
        <td><%= project_assignment.user.email %></td>
        <td><%=l project_assignment.started_at %></td>
        <td><%=l project_assignment.finished_at %></td>
        <td><%=l project_assignment.created_at %></td>
        <td>
          <%= link_to t('.edit', :default => t("helpers.links.edit")),
                      edit_project_assignment_path(project_assignment), :class => 'btn btn-default btn-xs' %>
          <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                      project_assignment_path(project_assignment),
                      :method => :delete,
                      :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                      :class => 'btn btn-xs btn-danger' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
model_base_generators-0.3.2 example/app/views/project_assignments/_table.html.erb
model_base_generators-0.3.1 example/app/views/project_assignments/_table.html.erb
model_base_generators-0.3.0 example/app/views/project_assignments/_table.html.erb
model_base_generators-0.2.4 example/app/views/project_assignments/_table.html.erb
model_base_generators-0.2.3 example/app/views/project_assignments/_table.html.erb