inventorymaster 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +50 -0
- data/app/views/inventorymaster/products/show.html.erb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3db309a0b7ef8ab9589453e6e11028501e401153
|
4
|
+
data.tar.gz: b4d46b40fef05cb4a30efb8ca72bea911190e178
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afe960edc6c193ba1731679575c3dbb7489adecec11f03bdbf3388597c2e97fd43cacfdc8005e6148cb9de964219b4af18757eaffd2f8c16c9247bbf38a67a1d
|
7
|
+
data.tar.gz: 3b4aaeebb8e83115e4c21c8b0526fbf8e3e87287f1f2b893234e951a99dec6dbae53335ad7373f63e4e021b2081b455e7cb0271c0fe25e326848224c3a086ece
|
data/README.rdoc
CHANGED
@@ -33,4 +33,54 @@ paste this code in application.html.erb to see and navigate in the app.
|
|
33
33
|
|
34
34
|
App takes the layout from main app, but this engine uses Bootstrap 3.0.0 layout.
|
35
35
|
|
36
|
+
|
37
|
+
=For search in products
|
38
|
+
|
39
|
+
You need install Elastic search first
|
40
|
+
|
41
|
+
I follow this tuto
|
42
|
+
https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-4-on-ubuntu-14-04
|
43
|
+
|
44
|
+
Add this style
|
45
|
+
https://raw.githubusercontent.com/grk/bookstore-example/master/app/assets/stylesheets/typeahead.css
|
46
|
+
|
47
|
+
Add this javascript
|
48
|
+
<%= javascript_include_tag '//cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.9.3/typeahead.min.js', 'data-turbolinks-track' => true %>
|
49
|
+
|
50
|
+
Add this gem
|
51
|
+
gem "searchkick"
|
52
|
+
|
53
|
+
And start javascript search
|
54
|
+
|
55
|
+
$ ->
|
56
|
+
$('#product_search').typeahead
|
57
|
+
name: "product"
|
58
|
+
remote: "/stok/products/autocomplete?query=%QUERY"
|
59
|
+
|
60
|
+
|
61
|
+
=RoadMap
|
62
|
+
|
63
|
+
* More features
|
64
|
+
* Develop reports
|
65
|
+
* Write Tests
|
66
|
+
|
67
|
+
=Contributing
|
68
|
+
|
69
|
+
Everyone is encouraged to help improve this project. Here are a few ways you can help:
|
70
|
+
|
71
|
+
* Report bugs
|
72
|
+
* Fix bugs and submit pull requests
|
73
|
+
* Write, clarify, or fix documentation
|
74
|
+
* Suggest or add new features
|
75
|
+
|
76
|
+
To get started with development and testing:
|
77
|
+
|
78
|
+
git clone https://github.com/jcottobboni/inventorymaster.git
|
79
|
+
|
80
|
+
|
81
|
+
Add
|
82
|
+
gem 'inventorymaster',path:=> '../inventorymaster'
|
83
|
+
|
84
|
+
to you current project and follow steps in the up this file for implement inventory system in your project.
|
85
|
+
|
36
86
|
Enjoy!!!
|
@@ -11,6 +11,8 @@
|
|
11
11
|
<%= submit_tag("+ Saida", :class => 'btn btn-small btn-danger') %>
|
12
12
|
<% end %>
|
13
13
|
<p>
|
14
|
+
<%= link_to 'Editar', edit_product_path(@product) ,:class=>"btn btn-xs btn-warning"%>
|
15
|
+
<%= link_to 'Deletar', @product, method: :delete, data: { confirm: 'Voce tem Certeza?' },:class=>"btn btn-xs btn-danger" %>
|
14
16
|
<strong>Quantidade em Estoque:</strong>
|
15
17
|
<span class="label label-primary"><%= @product.ammount %></span>
|
16
18
|
</p>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inventorymaster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jcottobboni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|