UI change
This commit is contained in:
0
app/views/settings/products/_form.html.erb
Normal file → Executable file
0
app/views/settings/products/_form.html.erb
Normal file → Executable file
0
app/views/settings/products/_settings_product.json.jbuilder
Normal file → Executable file
0
app/views/settings/products/_settings_product.json.jbuilder
Normal file → Executable file
0
app/views/settings/products/edit.html.erb
Normal file → Executable file
0
app/views/settings/products/edit.html.erb
Normal file → Executable file
9
app/views/settings/products/index.html.erb
Normal file → Executable file
9
app/views/settings/products/index.html.erb
Normal file → Executable file
@@ -43,15 +43,6 @@
|
||||
<td><%= settings_product.taxable %></td>
|
||||
<td><%= link_to t("views.btn.show"), settings_product_path(settings_product),:class => 'btn btn-info btn-sm waves-effect' %>
|
||||
<%= link_to t("views.btn.edit"), edit_settings_product_path(settings_product),:class => 'btn btn-primary btn-sm waves-effect' %>
|
||||
|
||||
<button class="delete btn btn-danger btn-sm waves-effect" data-ref="<%=settings_product_path(settings_product)%>" data-method="delete">
|
||||
<%= t("views.btn.delete") %>
|
||||
</button>
|
||||
|
||||
<span class="hidden" id="delete_text">
|
||||
<h6>Are you sure you want to delete this row ?</h6>
|
||||
<h6>This action can't be undo. </h6>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
0
app/views/settings/products/index.json.jbuilder
Normal file → Executable file
0
app/views/settings/products/index.json.jbuilder
Normal file → Executable file
0
app/views/settings/products/new.html.erb
Normal file → Executable file
0
app/views/settings/products/new.html.erb
Normal file → Executable file
14
app/views/settings/products/show.html.erb
Normal file → Executable file
14
app/views/settings/products/show.html.erb
Normal file → Executable file
@@ -27,6 +27,20 @@
|
||||
<tr><td style="width:20%">Description</td><td><%= @settings_product.description %></td></tr>
|
||||
<tr><td style="width:20%">Information</td><td><%= @settings_product.information %></td></tr>
|
||||
<tr><td style="width:20%">Taxable</td><td><%= @settings_product.taxable %></td></tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right">
|
||||
<!-- <button class="delete btn btn-danger btn-sm waves-effect" data-ref="<%=settings_product_path(@settings_product)%>" data-method="delete">
|
||||
<%= t("views.btn.delete") %>
|
||||
</button>
|
||||
|
||||
<span class="hidden" id="delete_text">
|
||||
<h6>Are you sure you want to delete this row ?</h6>
|
||||
<h6>This action can't be undo. </h6>
|
||||
</span> -->
|
||||
<%= link_to t("views.btn.edit"), edit_settings_product_path(@settings_product),:class => 'btn btn-primary btn-sm waves-effect' %>
|
||||
<%= link_to t("views.btn.delete"), settings_product_path(@item, @settings_product ), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-lg waves-effect' %>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
0
app/views/settings/products/show.json.jbuilder
Normal file → Executable file
0
app/views/settings/products/show.json.jbuilder
Normal file → Executable file
Reference in New Issue
Block a user