fixes milestone table and improve button
This commit is contained in:
@@ -14,17 +14,17 @@
|
||||
<tbody>
|
||||
<% @investment.milestones.each do |milestone| %>
|
||||
<tr id="<%= dom_id(milestone) %>" class="milestone">
|
||||
<td><%= milestone.id %></td>
|
||||
<td class="text-center"><%= milestone.id %></td>
|
||||
<td>
|
||||
<%= link_to milestone.title,
|
||||
edit_admin_budget_budget_investment_budget_investment_milestone_path(@investment.budget,
|
||||
@investment,
|
||||
milestone) %>
|
||||
</td>
|
||||
<td class="small"><%= milestone.description %></td>
|
||||
<% if milestone.publication_date.present? %>
|
||||
<td class="small"><%= l(milestone.publication_date.to_date) %></td>
|
||||
<% end %>
|
||||
<td class="small small-5"><%= milestone.description %></td>
|
||||
<td class="small">
|
||||
<%= l(milestone.publication_date.to_date) if milestone.publication_date.present? %>
|
||||
</td>
|
||||
<td class="small">
|
||||
<%= link_to t("admin.milestones.index.show_image"),
|
||||
milestone.image_url(:large),
|
||||
@@ -40,7 +40,7 @@
|
||||
<% end %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<td class="small-2">
|
||||
<%= link_to t("admin.milestones.index.delete"),
|
||||
admin_budget_budget_investment_budget_investment_milestone_path(@investment.budget,
|
||||
@investment,
|
||||
|
||||
@@ -54,5 +54,7 @@
|
||||
<%= render 'admin/budget_investments/milestones' %>
|
||||
|
||||
<p>
|
||||
<%= link_to t("admin.budget_investments.show.new_milestone"), new_admin_budget_budget_investment_budget_investment_milestone_path(@budget, @investment) %>
|
||||
<%= link_to t("admin.budget_investments.show.new_milestone"),
|
||||
new_admin_budget_budget_investment_budget_investment_milestone_path(@budget, @investment),
|
||||
class: "button hollow" %>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user