mirror of
https://github.com/Growstuff/growstuff.git
synced 2025-12-30 13:07:49 -05:00
* 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
22 lines
753 B
Plaintext
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'
|