in_place_edit_with_datepicker 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +34 -3
- data/lib/in_place_edit_with_datepicker/version.rb +1 -1
- 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: 51cd4cd679a9b0441d47f6d35c955c1b5b726ffa
|
|
4
|
+
data.tar.gz: dd03f1a693cc3e3bbd989ad6a8514b88f753dae1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 898fbdf5c746ffe924a440fe82839873ebdf3069fb0c70dfa7faa0f55a65570cadefc392ab35edb863faf5351e17bf83fda7c6871a3c90bd178751ecfb2c629b
|
|
7
|
+
data.tar.gz: 49bf6edd36c50216aca4ed8d4bdc3dc2a49d3f710d0c7683fcae9d3f0ac34c5c4697914cce3f3d26a84fb9a2d38b18332246c68b36d129aed413ca7ca64545c9
|
data/README.md
CHANGED
|
@@ -18,13 +18,44 @@ Or install it yourself as:
|
|
|
18
18
|
|
|
19
19
|
$ gem install in_place_edit_with_datepicker
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## Setup
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Add the following lines in your application.js in this sequence
|
|
24
|
+
```ruby
|
|
25
|
+
//= require jquery
|
|
26
|
+
//= require jquery_ujs
|
|
27
|
+
//= require jquery-ui
|
|
28
|
+
//= require jquery-ui-timepicker-addon
|
|
29
|
+
//= require jquery.purr
|
|
30
|
+
//= require best_in_place
|
|
31
|
+
//= require best_in_place_datetime
|
|
32
|
+
//= require turbolinks
|
|
33
|
+
//= require_tree .
|
|
34
|
+
```
|
|
35
|
+
Add the following to your application.css in this sequence
|
|
36
|
+
```ruby
|
|
37
|
+
*= jquery-ui-timepicker-addon
|
|
38
|
+
*= require_tree .
|
|
39
|
+
*= require_self
|
|
40
|
+
*/
|
|
41
|
+
```
|
|
42
|
+
Download the following files:
|
|
43
|
+
1) http://trentrichardson.com/examples/timepicker/jquery-ui-timepicker-addon.css and save to assets/stylesheets
|
|
44
|
+
2) http://trentrichardson.com/examples/timepicker/jquery-ui-timepicker-addon.js and save to assets/javascripts
|
|
24
45
|
|
|
46
|
+
## Usage
|
|
47
|
+
|
|
48
|
+
The gem works exactly as the best_in_place gem, say for eg:
|
|
49
|
+
```ruby
|
|
50
|
+
<%= best_in_place @user, :name %>
|
|
51
|
+
```
|
|
52
|
+
For type datetime,
|
|
53
|
+
```ruby
|
|
54
|
+
<%= best_in_place @user, :date_of_birth, as: :datetime %>
|
|
55
|
+
```
|
|
25
56
|
## Contributing
|
|
26
57
|
|
|
27
|
-
1. Fork it ( https://github.com/
|
|
58
|
+
1. Fork it ( https://github.com/AasthaKesarwani1539/in_place_edit_with_datepicker/fork )
|
|
28
59
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
29
60
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
30
61
|
4. Push to the branch (`git push origin my-new-feature`)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: in_place_edit_with_datepicker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aastha Kesarwani
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-07-
|
|
12
|
+
date: 2015-07-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|