Improves styles for budget index and show views
This commit is contained in:
@@ -1,10 +1,30 @@
|
||||
<h1>Budget Index</h1>
|
||||
<div class="expanded budget no-margin-top padding">
|
||||
<div class="row">
|
||||
<div class="small-12 column">
|
||||
<h1><%= t('budget.index.title') %></h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
<% @budgets.each do |budget| %>
|
||||
<li><%= link_to budget do %>
|
||||
<%= budget.name %>,
|
||||
<%= budget.phase %>
|
||||
<% end %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<div class="row margin-top">
|
||||
<div class="small-12 medium-6 column">
|
||||
<table class="table-fixed">
|
||||
<thead>
|
||||
<th><%= t('budget.index.name') %></th>
|
||||
<th><%= t('budget.index.phase') %></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @budgets.each do |budget| %>
|
||||
<tr>
|
||||
<td>
|
||||
<%= link_to budget.name, budget %>
|
||||
</td>
|
||||
<td>
|
||||
<%= budget.phase %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,15 +1,40 @@
|
||||
<h1><%= @budget.name %></h1>
|
||||
<div class="expanded budget no-margin-top padding">
|
||||
<div class="row">
|
||||
<div class="small-12 medium-9 column">
|
||||
<%= render 'shared/back_link' %>
|
||||
<h1><%= @budget.name %></h1>
|
||||
<p><%= @budget.description %></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div><%= @budget.description %></div>
|
||||
|
||||
<ul>
|
||||
<li><%= link_to budget_investments_path(budget_id: @budget.id, heading_id: nil) do %>
|
||||
No heading (<%= format_price(@budget, @budget.price) %>)
|
||||
<% end %></li>
|
||||
<% @budget.headings.each do |heading| %>
|
||||
<li><%= link_to budget_investments_path(budget_id: @budget.id, heading_id: heading.id) do %>
|
||||
<%= heading.name %> (<%= format_price(@budget, heading.price) %>)
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<div class="row margin-top">
|
||||
<div class="small-12 medium-6 column">
|
||||
<table class="table-fixed">
|
||||
<thead>
|
||||
<th><%= t('budget.show.heading') %></th>
|
||||
<th><%= t('budget.show.price') %></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<%= link_to t('budget.show.no_heading'), budget_investments_path(budget_id: @budget.id, heading_id: nil) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= format_price(@budget, @budget.price) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% @budget.headings.each do |heading| %>
|
||||
<tr>
|
||||
<td>
|
||||
<%= link_to heading.name, budget_investments_path(budget_id: @budget.id, heading_id: heading.id) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= format_price(@budget, heading.price) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user