tybo 0.2.2 → 0.2.4
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e86b0bc5bfff3202fc50525f670383e28546495d881c6dc2f5b0bfc3f2d212f5
|
4
|
+
data.tar.gz: cf87bafb74c95d982eaa0e05d39b1e5e7f44228ffa7431d5b141fc43c111404f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c765911181b4d1a6421ca442bc3d19a30e025879b8587c727478d5af1c577f5909ba4eb9acdab641ab032d5834a69514a1791d482885c57ba6e8a74c090f95e
|
7
|
+
data.tar.gz: d769192ddbca72af02a3ddd315cf40e39c6a9b8c56bc3334022149028bf2dbd28498e098de118f922f35954fcb020ce529d38464415c59a9de8a666a778bffaf
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div class="my-5">
|
2
|
-
<label class="block text-sm
|
2
|
+
<label class="block text-sm text-gray-700 font-mediu string required">
|
3
3
|
<%= @label %>
|
4
4
|
</label>
|
5
|
-
<%= @form.datetime_field @field, class: "mt-1 block border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-tybo-500 focus:border-tybo-500 sm:text-sm string required" %>
|
5
|
+
<%= @form.datetime_field @field, class: "mt-1 block border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-tybo-500 focus:border-tybo-500 sm:text-sm string required", disabled: @disabled %>
|
6
6
|
</div>
|
@@ -2,11 +2,12 @@
|
|
2
2
|
|
3
3
|
module Input
|
4
4
|
class DatetimeComponent < ViewComponent::Base
|
5
|
-
def initialize(item:, field:, form:)
|
5
|
+
def initialize(item:, field:, form:, disabled: false)
|
6
6
|
@item = item
|
7
7
|
@field = field
|
8
8
|
@form = form
|
9
9
|
@label = label
|
10
|
+
@disabled = disabled
|
10
11
|
end
|
11
12
|
|
12
13
|
def label
|
data/lib/tybo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tybo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michel Delpierre
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-09-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|