UI change

This commit is contained in:
yamin
2017-10-23 11:38:10 +06:30
parent 4874bb135c
commit 1aea52619a
4731 changed files with 19031 additions and 149 deletions

0
app/views/settings/products/_form.html.erb Normal file → Executable file
View File

View File

0
app/views/settings/products/edit.html.erb Normal file → Executable file
View File

9
app/views/settings/products/index.html.erb Normal file → Executable file
View 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
View File

0
app/views/settings/products/new.html.erb Normal file → Executable file
View File

14
app/views/settings/products/show.html.erb Normal file → Executable file
View 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
View File