smerp-quotation-engine 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/smerp/quotation/engine/quotation_products_controller.rb +2 -1
- data/app/views/smerp/quotation/engine/quotation_products/_quotation_product.html.erb +1 -0
- data/app/views/smerp/quotation/engine/quotation_products/index.html.erb +5 -2
- data/lib/smerp/quotation/engine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32de6281378bf9d836b4b7cdd1a32ed952e1e0cfdc4127aae6f4c569f5b02e1f
|
4
|
+
data.tar.gz: 1d9ad81ffb2aca437e9aa78de0e66dd6f9cfb95a865c5e997b51a7af95f6edd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ae01c0cad4ccb9b1b7445a979ec872f2cc7a2b6210e1cb695040007d96e71d613cf0e39eaa08cd0174966a319a6c31e215e0d64153b9a90d8bd5a2d5c3a00dc
|
7
|
+
data.tar.gz: b224635e6c4c96660f637b12c1ce6c51e134d8a40bb8d1ebde9215d297d6fc3d830c5fc80dac81608559be6c16d2f4d8a73027a40dcace54463036f6b2f72a91
|
@@ -25,7 +25,8 @@ module Smerp::Quotation::Engine
|
|
25
25
|
@quotation_product = QuotationProduct.new(quotation_product_params)
|
26
26
|
|
27
27
|
if @quotation_product.save
|
28
|
-
redirect_to @quotation_product, notice: "Quotation product was successfully created."
|
28
|
+
#redirect_to @quotation_product, notice: "Quotation product was successfully created."
|
29
|
+
redirect_to quotation_products_path, notice: "Quotation product was successfully created."
|
29
30
|
else
|
30
31
|
render :new, status: :unprocessable_entity
|
31
32
|
end
|
@@ -5,13 +5,16 @@
|
|
5
5
|
<div id="quotation_products">
|
6
6
|
<table class="table">
|
7
7
|
<tr>
|
8
|
+
<th width="18px"></th>
|
8
9
|
<th>Name</th>
|
9
10
|
<th>Category</th>
|
10
11
|
<th>Status</th>
|
11
12
|
</tr>
|
12
|
-
|
13
|
+
|
14
|
+
<% cnt = 1 %>
|
13
15
|
<% @quotation_products.each do |quotation_product| %>
|
14
|
-
<%= render quotation_product %>
|
16
|
+
<%= render quotation_product, cnt: cnt %>
|
17
|
+
<% cnt += 1 %>
|
15
18
|
<% end %>
|
16
19
|
</table>
|
17
20
|
</div>
|