Files
growstuff/app/views/forums/_form.html.haml
Daniel O'Connor 7d63234841 Upgrade to bootstrap 5 (#3605)
* Upgrade boostrap

* Remove deprecated bootstrap toggles

* Migrate other details

* Avoid accidentally including bootstrap twice

* Avoid accidentally including bootstrap twice

* Avoid accidentally including bootstrap twice

* Fix spec

* Fix spec, where the size of the screen has gone to a partial breakpoint/you can't click on your own name in tablet view

* Fix spec

* Cleanup

* Cleanup
2024-03-10 11:49:22 +10:30

22 lines
753 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-right= f.submit 'Save'