tramway 2.2.5.2 → 2.2.5.3
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/views/tramway/entities/_form.html.haml +4 -3
- data/config/tailwind.config.js +9 -0
- data/lib/tramway/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: 9f9d4a3f072ed5311e455cd061420c52a1dbc3f0a1497387b227afa40d80cf0c
|
|
4
|
+
data.tar.gz: a67eafd3c345975f40636f3374dd9de637954558fbf2b31b1cb91a2ed71f97bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 70d6a25c96aeab07fefbc428b2870258fc8f7ec0071a73719a4522ca09adac9505d7b573709ffffdf909c2260a4c929cc7b82e2986fd932229e4c1dae4e46c6a
|
|
7
|
+
data.tar.gz: 2798fc3077987fdbb4f829a7c901404b86d1c7f515925221c655844a5d95aa63fc8535d9af306c1f1ea48e2ebcf8c2930018afaa5d8d41b6dc59cae237da4ad6
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
= tramway_form_for @record, local: true, url:, method: do |f|
|
|
5
5
|
- if @record.errors.any?
|
|
6
|
-
.
|
|
7
|
-
%
|
|
8
|
-
|
|
6
|
+
.w-full.mb-4.p-4.border.border-red-600.bg-red-100.text-red-800.rounded-xl
|
|
7
|
+
%h2.font-bold.mb-2
|
|
8
|
+
= "#{pluralize(@record.errors.count, 'error')} prohibited this record from being saved:"
|
|
9
|
+
%ul.list-disc.list-inside.pl-6
|
|
9
10
|
- @record.errors.full_messages.each do |message|
|
|
10
11
|
%li= message
|
|
11
12
|
|
data/config/tailwind.config.js
CHANGED
|
@@ -243,6 +243,15 @@ module.exports = {
|
|
|
243
243
|
'px-5',
|
|
244
244
|
'py-3',
|
|
245
245
|
|
|
246
|
+
// === Form styles ===
|
|
247
|
+
'list-disc',
|
|
248
|
+
'list-inside',
|
|
249
|
+
'pl-6',
|
|
250
|
+
'p-4',
|
|
251
|
+
'border-red-600',
|
|
252
|
+
'bg-red-100',
|
|
253
|
+
'text-red-800',
|
|
254
|
+
|
|
246
255
|
// === Multiselect dropdown positioning ===
|
|
247
256
|
'absolute',
|
|
248
257
|
'relative',
|
data/lib/tramway/version.rb
CHANGED