aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-05-16 06:13:58 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-05-16 06:21:52 +0000
commit8eb3fc8f0184e14704ff2e483344e9719f2062ce (patch)
tree0a54cb8752ec582ac1bf4da09ccd732d661316d1
parent30e2e83b78d99d141de119c81e329617afc20399 (diff)
www/rubygem-bullet_train-fields: Add rubygem-bullet_train-fields 1.7.2
Bullet Train includes a collection of view partials that are intended to DRY-up as much redundant presentation logic as possible for different types of form fields without taking on a third-party dependency like Formtastic. These form field partials standardize and centralize the following behavior across all form fields that use them: - Apply theme styling and classes. - Display any error messages for a specific field inline under the field itself. - Display a stylized asterisk next to the label of fields that are known to be required. - Any labels, placeholder values, and help text are defined in a standardized way in the model's localization Yaml file. - For fields presenting a static list of options (e.g. a list of buttons or a select field) the options can be defined in the localization Yaml file.
-rw-r--r--www/Makefile1
-rw-r--r--www/rubygem-bullet_train-fields/Makefile22
-rw-r--r--www/rubygem-bullet_train-fields/distinfo3
-rw-r--r--www/rubygem-bullet_train-fields/pkg-descr14
4 files changed, 40 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index f2ec5d3eedb3..fffd21ca0032 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1967,6 +1967,7 @@
SUBDIR += rubygem-bootstrap-sass
SUBDIR += rubygem-browser
SUBDIR += rubygem-bullet_train
+ SUBDIR += rubygem-bullet_train-fields
SUBDIR += rubygem-cal-heatmap-rails
SUBDIR += rubygem-carrierwave
SUBDIR += rubygem-carrierwave1
diff --git a/www/rubygem-bullet_train-fields/Makefile b/www/rubygem-bullet_train-fields/Makefile
new file mode 100644
index 000000000000..7dd326b07578
--- /dev/null
+++ b/www/rubygem-bullet_train-fields/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= bullet_train-fields
+PORTVERSION= 1.7.2
+CATEGORIES= www rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Bullet Train Fields
+WWW= https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train-fields
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/MIT-LICENSE
+
+RUN_DEPENDS= rubygem-chronic>=0:devel/rubygem-chronic \
+ rubygem-cloudinary>=0:www/rubygem-cloudinary \
+ rubygem-phonelib>=0:devel/rubygem-phonelib \
+ rubygem-rails71>=6.0.0:www/rubygem-rails71
+
+USES= gem
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-bullet_train-fields/distinfo b/www/rubygem-bullet_train-fields/distinfo
new file mode 100644
index 000000000000..d9f07c20ebd6
--- /dev/null
+++ b/www/rubygem-bullet_train-fields/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1714227830
+SHA256 (rubygem/bullet_train-fields-1.7.2.gem) = 6edbfb189e451d574fe380c40e85f66eee17c9dac86e2083158018d217660f1e
+SIZE (rubygem/bullet_train-fields-1.7.2.gem) = 20992
diff --git a/www/rubygem-bullet_train-fields/pkg-descr b/www/rubygem-bullet_train-fields/pkg-descr
new file mode 100644
index 000000000000..f6b87613f89e
--- /dev/null
+++ b/www/rubygem-bullet_train-fields/pkg-descr
@@ -0,0 +1,14 @@
+Bullet Train includes a collection of view partials that are intended to DRY-up
+as much redundant presentation logic as possible for different types of form
+fields without taking on a third-party dependency like Formtastic.
+
+These form field partials standardize and centralize the following behavior
+across all form fields that use them:
+- Apply theme styling and classes.
+- Display any error messages for a specific field inline under the field itself.
+- Display a stylized asterisk next to the label of fields that are known to be
+ required.
+- Any labels, placeholder values, and help text are defined in a standardized
+ way in the model's localization Yaml file.
+- For fields presenting a static list of options (e.g. a list of buttons or a
+ select field) the options can be defined in the localization Yaml file.