tybo 0.2.3 → 0.2.4
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/form_component.html.erb +1 -1
- data/app/components/forms/has_one_form_component.html.erb +3 -3
- data/app/components/input/datetime_component.html.erb +2 -2
- data/app/components/input/datetime_component.rb +2 -1
- data/lib/generators/bo/templates/item.html.erb +1 -0
- data/lib/tybo/version.rb +1 -1
- metadata +3 -3
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,9 +1,9 @@
|
|
|
1
|
-
<div class="
|
|
1
|
+
<div class="space-y-6 sm:space-y-5">
|
|
2
2
|
<div>
|
|
3
3
|
<h3 class="text-lg font-medium leading-6 text-gray-900"><%= @title %></h3>
|
|
4
4
|
</div>
|
|
5
|
-
<div>
|
|
6
|
-
<div class="sm:items-start sm:gap-4 sm:border-t sm:border-gray-200">
|
|
5
|
+
<div class="space-y-6 sm:space-y-5">
|
|
6
|
+
<div class="sm:items-start sm:gap-4 sm:border-t sm:border-gray-200 sm:pt-5">
|
|
7
7
|
<%= content %>
|
|
8
8
|
</div>
|
|
9
9
|
</div>
|
|
@@ -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
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
{ label: I18n.t('bo.<%= class_name.underscore %>.others').capitalize, path: <%= "#{options[:namespace]}_#{class_name.pluralize.underscore}_path"%> },
|
|
11
11
|
current_page
|
|
12
12
|
]) %>
|
|
13
|
+
<br>
|
|
13
14
|
<%%= render "form", <%= class_name.underscore %>: @<%= class_name.underscore %> %>
|
|
14
15
|
<%% end %>
|
|
15
16
|
<%% end %>
|
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
|
|
@@ -302,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
302
302
|
- !ruby/object:Gem::Version
|
|
303
303
|
version: '0'
|
|
304
304
|
requirements: []
|
|
305
|
-
rubygems_version: 3.
|
|
305
|
+
rubygems_version: 3.0.3.1
|
|
306
306
|
signing_key:
|
|
307
307
|
specification_version: 4
|
|
308
308
|
summary: A tailwind custom admin engine for Ruby on Rails
|