volt-fields 0.0.10 → 0.0.11
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 +2 -0
- data/VERSION +1 -1
- data/app/fields/controllers/text_controller.rb +1 -7
- data/app/fields/views/textarea/index.html +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: 1bf47f9b03f71b26914cb065f61eaef1cabe0447
|
|
4
|
+
data.tar.gz: 0e83d7f39236eb816e75c291cf38661bf4876844
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87535199646ff853aae5f1f0eceacb93e614ae13fd1f1fb333cbe2ba95e865d28136e8f08dd784f0ac4df4a8e63510833b1209ec5f77ace9c02fcd2a0081345a
|
|
7
|
+
data.tar.gz: fbedcb315db432ff8bf717c56e3d53324118af87be3f93372798863d6f54277dd732d821f487b693427afdc807a6aa8a0ab9fe99e18755ddb1e178268bb41c24
|
data/README.md
CHANGED
|
@@ -5,3 +5,5 @@ Provides controls for text and textarea fields (at the moment) with the followin
|
|
|
5
5
|
1. the necessary html for bootstrap
|
|
6
6
|
2. mark the fields when the blur event happens
|
|
7
7
|
3. display any marked errors below the field
|
|
8
|
+
|
|
9
|
+
### Note: there's some duplication in here that needs to be removed
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.11
|
|
@@ -18,13 +18,7 @@ module Fields
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def label
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
unless @label
|
|
24
|
-
label = @field_name.titleize
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
return label
|
|
21
|
+
return attrs.label || @field_name.titleize
|
|
28
22
|
end
|
|
29
23
|
|
|
30
24
|
# Find the errors for this field
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<:Body>
|
|
2
|
-
<
|
|
2
|
+
<div class="form-group {{ if errors }}has-error{{ elsif marked }}has-success{{ end }} has-feedback">
|
|
3
3
|
{{ if label }}
|
|
4
4
|
<label class="control-label">{{ label }}</label>
|
|
5
5
|
{{ end }}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: volt-fields
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Stout
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-11-
|
|
11
|
+
date: 2014-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: volt
|