bullet_train-themes-tailwind_css 1.12.0 → 1.12.2
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: 323a83a6d622ac267f6317ec0ef22c880e2ed9209c9c00dd45be909cbcde1b68
|
4
|
+
data.tar.gz: f0621f89bc448c20932cf60b3d51c2897d410377203031dc4e1395cd997bbc39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f5bdcdd84e75747062c504d0c30b41cc6714072e22d30978d622a07661914df150b1ade7bd7a13e90e1b135c6c07e78b53e926b7d582ab75d6bd3ca1b18e02a
|
7
|
+
data.tar.gz: b6cc19f30a18b8c01442e7e4a700810089a67861ff86d3c25d456f5e9528529cedc10541490ee7997e28f2e8f325fcacea6aaeea69000a88eed3cfdcaaad7f49
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<%
|
2
|
+
form ||= current_fields_form
|
3
|
+
options ||= {}
|
4
|
+
other_options ||= {}
|
5
|
+
|
6
|
+
# We supress the lable from the main field partial so that it doesn't show up at all.
|
7
|
+
# We use supress_label instead of hide_label, becase we don't even want it ther for
|
8
|
+
# screen readers. The `option` partial will already include a clickable lable next to
|
9
|
+
# the checkbox and there's no need to have a double label for screen readers.
|
10
|
+
other_options[:supress_label] = true
|
11
|
+
%>
|
12
|
+
|
13
|
+
<%= render 'shared/fields/field', form: form, method: method, options: options, other_options: other_options do %>
|
14
|
+
<% content_for :field do %>
|
15
|
+
<%= render 'shared/fields/option', method: method, single_check_box: true %>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
@@ -31,7 +31,7 @@ options[:class] += " #{append_class}"
|
|
31
31
|
<% if form %>
|
32
32
|
<div class="flex items-center">
|
33
33
|
<%= form.check_box method, options %>
|
34
|
-
<%= form.label method, class: '
|
34
|
+
<%= form.label method, class: 'pl-2' %>
|
35
35
|
</div>
|
36
36
|
<% else %>
|
37
37
|
<% value = options.delete(:value) %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-themes-tailwind_css
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -85,6 +85,7 @@ files:
|
|
85
85
|
- app/views/themes/tailwind_css/fields/_active_storage_image.html.erb
|
86
86
|
- app/views/themes/tailwind_css/fields/_address_field.html.erb
|
87
87
|
- app/views/themes/tailwind_css/fields/_buttons.html.erb
|
88
|
+
- app/views/themes/tailwind_css/fields/_checkbox.html.erb
|
88
89
|
- app/views/themes/tailwind_css/fields/_cloudinary_image.html.erb
|
89
90
|
- app/views/themes/tailwind_css/fields/_color_picker.html.erb
|
90
91
|
- app/views/themes/tailwind_css/fields/_date_and_time_field.html.erb
|