|
1 | | -<div class="line-item"> |
2 | | - <div class="line-item__name"> |
3 | | - <%= line_item.name %> |
4 | | - <div class="line-item__description"> |
5 | | - <%= simple_format line_item.description %> |
| 1 | +<%= turbo_frame_tag line_item do %> |
| 2 | + <div class="line-item"> |
| 3 | + <div class="line-item__name"> |
| 4 | + <%= line_item.name %> |
| 5 | + <div class="line-item__description"> |
| 6 | + <%= simple_format line_item.description %> |
| 7 | + </div> |
6 | 8 | </div> |
7 | | - </div> |
8 | | - <div class="line-item__quantity-price"> |
9 | | - <%= line_item.quantity %> |
10 | | - × |
11 | | - <%= number_to_currency line_item.unit_price %> |
12 | | - </div> |
13 | | - <div class="line-item__quantity"> |
14 | | - <%= line_item.quantity %> |
15 | | - </div> |
16 | | - <div class="line-item__price"> |
17 | | - <%= number_to_currency line_item.unit_price %> |
18 | | - </div> |
19 | | - <div class="line-item__actions"> |
20 | | - <%= button_to "Delete", |
21 | | - [quote, line_item_date, line_item], |
22 | | - method: :delete, |
23 | | - form: { data: { turbo_frame: "_top" } }, |
| 9 | + <div class="line-item__quantity-price"> |
| 10 | + <%= line_item.quantity %> |
| 11 | + × |
| 12 | + <%= number_to_currency line_item.unit_price %> |
| 13 | + </div> |
| 14 | + <div class="line-item__quantity"> |
| 15 | + <%= line_item.quantity %> |
| 16 | + </div> |
| 17 | + <div class="line-item__price"> |
| 18 | + <%= number_to_currency line_item.unit_price %> |
| 19 | + </div> |
| 20 | + <div class="line-item__actions"> |
| 21 | + <%= button_to "Delete", |
| 22 | + [quote, line_item_date, line_item], |
| 23 | + method: :delete, |
| 24 | + class: "btn btn--light" %> |
| 25 | + <%= link_to "Edit", |
| 26 | + [:edit, quote, line_item_date, line_item], |
24 | 27 | class: "btn btn--light" %> |
25 | | - <%= link_to "Edit", |
26 | | - [:edit, quote, line_item_date, line_item], |
27 | | - data: { turbo_frame: "_top" }, |
28 | | - class: "btn btn--light" %> |
| 28 | + </div> |
29 | 29 | </div> |
30 | | -</div> |
| 30 | +<% end %> |
0 commit comments