biffbangpow/silverstripe-bootstrap-5-forms

Adds templates for bootstrap 5 forms

Installs: 354

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Language:Scheme

Type:silverstripe-vendormodule

v1.2.0 2024-10-21 11:08 UTC

This package is auto-updated.

Last update: 2024-11-01 14:37:21 UTC


README

Default button styles can be changed via yml config:

BiffBangPow\SilverstripeBootstrap5Forms\Bootstrap5Forms:
  submit_button_class: 'btn btn-danger'
  non_submit_button_class: 'btn btn-warning'

The module also supports Bootstrap's 'floating labels' functionality. This can be enabled in config with the following setting:

BiffBangPow\SilverstripeBootstrap5Forms\Bootstrap5Forms:
  enable_floating_labels: true

Based on https://github.com/axllent/silverstripe-bootstrap-forms