Sha256: 56a54a635308c1f8e2fad2ad83df5b486636568805bcab3b3cc860c2e77b105a

Contents?: true

Size: 1.58 KB

Versions: 9

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

9 entries across 8 versions & 1 rubygems

Version Path
model_base_generators-0.4.0 examples/rails-5.1/app/views/project_assignments/_table.html.erb
model_base_generators-0.4.0 examples/rails-5.0/app/views/project_assignments/_table.html.erb
model_base_generators-0.3.9 example/app/views/project_assignments/_table.html.erb
model_base_generators-0.3.8 example/app/views/project_assignments/_table.html.erb
model_base_generators-0.3.7 example/app/views/project_assignments/_table.html.erb
model_base_generators-0.3.6 example/app/views/project_assignments/_table.html.erb
model_base_generators-0.3.5 example/app/views/project_assignments/_table.html.erb
model_base_generators-0.3.4 example/app/views/project_assignments/_table.html.erb
model_base_generators-0.3.3 example/app/views/project_assignments/_table.html.erb