Sha256: b9a4b1274ab6d7ec79d4d03f5a437c913d0124b0031bf84677664525b3090e6f

Contents?: true

Size: 1.23 KB

Versions: 9

Compression:

Stored size: 1.23 KB

Contents

<%- model_class = Phase -%>
<table class="table table-striped">
  <thead>
    <tr>
      <th><%= model_class.human_attribute_name(:project_id) %></th>
      <th><%= model_class.human_attribute_name(:name) %></th>
      <th><%= model_class.human_attribute_name(:started_at) %></th>
      <th><%= model_class.human_attribute_name(:finished_at) %></th>
      <th><%=t '.actions', :default => t("helpers.actions") %></th>
    </tr>
  </thead>
  <tbody>
    <% phases.each do |phase| %>
      <tr>
        <td><%= phase.project.name %></td>
        <td><%= link_to phase.name, phase_path(phase) %></td>
        <td><%=l phase.started_at %></td>
        <td><%=l phase.finished_at %></td>
        <td>
          <%= link_to t('.edit', :default => t("helpers.links.edit")),
                      edit_phase_path(phase), :class => 'btn btn-default btn-xs' %>
          <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                      phase_path(phase),
                      :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/phases/_table.html.erb
model_base_generators-0.4.0 examples/rails-5.0/app/views/phases/_table.html.erb
model_base_generators-0.3.9 example/app/views/phases/_table.html.erb
model_base_generators-0.3.8 example/app/views/phases/_table.html.erb
model_base_generators-0.3.7 example/app/views/phases/_table.html.erb
model_base_generators-0.3.6 example/app/views/phases/_table.html.erb
model_base_generators-0.3.5 example/app/views/phases/_table.html.erb
model_base_generators-0.3.4 example/app/views/phases/_table.html.erb
model_base_generators-0.3.3 example/app/views/phases/_table.html.erb