Add inserted and updated dates to list and show
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
<th>Jäsen?</th>
|
||||
<th>Kaksi laskua?</th>
|
||||
<th>Parilliset viikot</th>
|
||||
<th>Lisätty</th>
|
||||
<th>Viimeisin muutos</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -49,6 +51,8 @@
|
||||
<td><%= order.is_member %></td>
|
||||
<td><%= order.split_invoice %></td>
|
||||
<td><%= order.even_weeks %></td>
|
||||
<td><%= order.inserted_at.day %>.<%= order.inserted_at.month %>.<%= order.inserted_at.year %></td>
|
||||
<td><%= order.updated_at.day %>.<%= order.updated_at.month %>.<%= order.updated_at.year %></td>
|
||||
|
||||
<td>
|
||||
<span><%= live_redirect "Näytä", to: Routes.order_show_path(@socket, :show, order) %></span>
|
||||
|
||||
@@ -77,6 +77,16 @@
|
||||
<%= @order.even_weeks %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Lisätty:</strong>
|
||||
<%= @order.inserted_at.day %>.<%= @order.inserted_at.month %>.<%= @order.inserted_at.year %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Viimeisin muutos:</strong>
|
||||
<%= @order.updated_at.day %>.<%= @order.updated_at.month %>.<%= @order.updated_at.year %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= live_patch "Muokkaa", to: Routes.order_show_path(@socket, :edit, @order), class: "button" %></span> |
|
||||
|
||||
Reference in New Issue
Block a user