adds admin budgets index

This commit is contained in:
Juanjo Bazán
2016-07-28 12:36:39 +02:00
parent baddfdb3d1
commit 1ad78d599e
11 changed files with 157 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
<h2 class="inline-block"><%= t("admin.budgets.index.title") %></h2>
<%= link_to t("admin.budgets.index.new_link"),
new_admin_budget_path,
class: "button float-right margin-right" %>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.budgets.index" %>
<h3><%= page_entries_info @budgets %></h3>
<table>
<% @budgets.each do |budget| %>
<tr id="<%= dom_id(budget) %>" class="budget">
<td>
<%= link_to budget.name, admin_budget_path(budget) %>
</td>
<td class="small">
<%= t("budget.phase.#{budget.phase}") %>
</td>
</tr>
<% end %>
</table>
<%= paginate @budgets %>