mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
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.
This commit is contained in:
parent
30e2e83b78
commit
8eb3fc8f01
@ -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
|
||||
|
22
www/rubygem-bullet_train-fields/Makefile
Normal file
22
www/rubygem-bullet_train-fields/Makefile
Normal file
@ -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>
|
3
www/rubygem-bullet_train-fields/distinfo
Normal file
3
www/rubygem-bullet_train-fields/distinfo
Normal file
@ -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
|
14
www/rubygem-bullet_train-fields/pkg-descr
Normal file
14
www/rubygem-bullet_train-fields/pkg-descr
Normal file
@ -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.
|
Loading…
Reference in New Issue
Block a user