formatic 0.1.7 → 0.1.9
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/app/components/formatic/time.rb +21 -21
- data/lib/formatic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e5a571e59a9dfb02109fb6ca17387ab764da6164e7ecafb1a474137116d652d
|
4
|
+
data.tar.gz: 552b409f5488a61c448217c16e17cd737bd3c5983d87a74aa1cefc7a9ae18f91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fa55a925ebb598cfbec965ac612f7275469f68fb38c185e108b3c661bb3bb620688cc5ff0ee8530cd49d84930d235708f7a309705e4e2916c1e3ac82cee798e
|
7
|
+
data.tar.gz: 94e68e620fa2b4c036e52d3e34f9d24b18d18530fe397e95a63c01b18c957b87fb35e9a124fb6d1090d099ca59535db00d661a004ac0e5c17cbb0379e26afa52
|
@@ -13,27 +13,27 @@ module Formatic
|
|
13
13
|
<% wrap.with_input do -%>
|
14
14
|
<div class="c-formatic-time s-formatic">
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
16
|
+
<% if readonly %>
|
17
|
+
<div class="s-markdown">
|
18
|
+
<p>
|
19
|
+
<%= value.to_fs(:time) %>
|
20
|
+
</p>
|
21
|
+
</div>
|
22
|
+
<% else %>
|
23
|
+
<div class="c-formatic-time__inputs">
|
24
|
+
<%= select_tag hour_attribute_name,
|
25
|
+
options_for_hour,
|
26
|
+
id: hour_input_id,
|
27
|
+
class: 'c-formatic-time__select' %>
|
28
|
+
|
29
|
+
<%= select_tag minute_attribute_name,
|
30
|
+
options_for_minute,
|
31
|
+
id: minute_input_id,
|
32
|
+
class: 'c-formatic-time__select' %>
|
33
|
+
</div>
|
34
|
+
<% end -%>
|
35
|
+
</div>
|
36
|
+
|
37
37
|
<% end -%>
|
38
38
|
<% end -%>
|
39
39
|
ERB
|
data/lib/formatic/version.rb
CHANGED