bullet_train-themes-tailwind_css 1.12.1 → 1.12.3
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: 314765445853581000c3551d5db3096bede27ae61bded2d266ea4af90d9088d9
|
4
|
+
data.tar.gz: 37f472b68163d8d44c80874a3c7b00eead68e10d9035b9360c42ba08dc048fca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a9d678b35126f5796b735035419feefe2387dbc05b65035d1f591e8294bfdf01d2b64f07693c1a5f0efa40853c425c031096c471d90b55cd838379f867d6fed
|
7
|
+
data.tar.gz: cfe73f6383d4f31eba817b403345a6c89779fb46ecc0c7ee7dbb56b0b12546f5880a6fde119b5e71f3ed393d8ce09cadc1ef0f866d18afe3961d711ee38de641
|
@@ -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.3
|
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-20 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
|