effective_form_inputs 0.8.15 → 0.8.16
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0d3a67b2f579bf700342c81022d532446140435
|
4
|
+
data.tar.gz: 7be2952046b9b14b7c25fa2db0d73e0b7615d2f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 017b254b1adfa4686f26ab1ad9e61bb43a57b8de6ef9f278a114f7c6493a3cb076cead5da3dbea3e6eef7db27a59a8698bf40989f3eec31d06ce5ee10e571fe8
|
7
|
+
data.tar.gz: ca530b8116fec0c099cb4363f42d64efbcee1986d56258b8245b71a6f0030952b3cb2f50be2bfdc126ddca078c77be4991cde2f10d0cab546dd020690baf8265
|
data/README.md
CHANGED
@@ -188,6 +188,13 @@ For a full list of options, please refer to:
|
|
188
188
|
|
189
189
|
http://eonasdan.github.io/bootstrap-datetimepicker/Options/
|
190
190
|
|
191
|
+
### Set Date
|
192
|
+
|
193
|
+
Use the following JavaScript to programatically set the date:
|
194
|
+
|
195
|
+
```javascript
|
196
|
+
$('#start_at').data('DateTimePicker').date('2016-05-08')
|
197
|
+
```
|
191
198
|
|
192
199
|
## Effective Static Control
|
193
200
|
|
@@ -419,6 +426,12 @@ As a SimpleForm input without the input group (phone glyphicon)
|
|
419
426
|
= f.input :phone, :as => :effective_tel, :input_group => false
|
420
427
|
```
|
421
428
|
|
429
|
+
You can add a server side validation to enforce the default "(123) 555-1234" with optional "x123" extension format:
|
430
|
+
|
431
|
+
```ruby
|
432
|
+
validates :phone, format: { with: /\A\(\d{3}\) \d{3}-\d{4}( x\d+)?\Z/ }
|
433
|
+
```
|
434
|
+
|
422
435
|
## Effective Price
|
423
436
|
|
424
437
|
This custom form input uses no 3rd party jQuery plugins.
|
@@ -60,7 +60,8 @@ initCkeditor = (textarea) ->
|
|
60
60
|
templates_replaceContent: false
|
61
61
|
filebrowserWindowHeight: 600
|
62
62
|
filebrowserWindowWidth: 800
|
63
|
-
filebrowserBrowseUrl: '/effective/assets
|
63
|
+
filebrowserBrowseUrl: '/effective/assets'
|
64
|
+
filebrowserImageBrowseUrl: '/effective/assets?only=images'
|
64
65
|
toolbar_full: [
|
65
66
|
{ name: 'definedstyles', items: ['Format'] },
|
66
67
|
{ name: 'html', items: ['ShowBlocks'] },
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_form_inputs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|