Files
growstuff/app/views/forums/_form.html.haml
T
Brenda WallaceandClaude Sonnet 5 be5ed5fca5 Rename Bootstrap 4 utility classes to their Bootstrap 5 names
text-left/right -> text-start/end, float-left/right -> float-start/end,
ml-/mr-/pl-/pr- -> ms-/me-/ps-/pe-, border-left/right -> border-start/end,
dropdown-menu-left/right -> dropdown-menu-start/end, font-weight-* -> fw-*,
font-italic -> fst-italic and sr-only -> visually-hidden. Bootstrap 5 dropped
text-justify, so the site keeps a one-line rule for it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 18:01:00 +12:00

22 lines
751 B
Plaintext

.card.col-md-8.col-lg-7.mx-auto.float-none.white.z-depth-1.py-2.px-2
.card-header
- if content_for? :title
%h1.h2-responsive.text-center
%strong=yield :title
= bootstrap_form_for(@forum) do |f|
.card-body
- if @forum.errors.any?
#error_explanation
%h2
= pluralize(@forum.errors.size, "error")
prohibited this forum from being saved:
%ul
- @forum.errors.full_messages.each do |msg|
%li= msg
= f.text_field :name, required: true
= f.text_area :description, rows: 6, required: true
= f.select(:owner_id, Member.all.order(:login_name).pluck(:login_name, :id), required: true)
.card-footer
.text-end= f.submit 'Save'