mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-15 20:40:50 -04:00
* Add dep * Add tests around accessibility * Add examples in a few places * Try to fix screenshots * Remove redundant role * Adjust rules, colors, etc so tests pass * Update app/assets/stylesheets/overrides.scss * Wrap in label * Omit rule, which is failing with a false positive * Update index.haml * Update _blurb.html.haml
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
.card.col-md-8.col-lg-7.mx-auto.float-none.white.z-depth-1.py-2.px-2
|
|
.card-body
|
|
- if content_for? :title
|
|
%h1.h2-responsive.text-center
|
|
%strong=yield :title
|
|
= form_for @alternate_name, html: { class: 'form-horizontal' } do |f|
|
|
- if @alternate_name.errors.any?
|
|
#error_explanation
|
|
%h2
|
|
= pluralize(@alternate_name.errors.size, "error")
|
|
prohibited this alternate_name from being saved:
|
|
%ul
|
|
- @alternate_name.errors.full_messages.each do |msg|
|
|
%li= msg
|
|
|
|
%p
|
|
%span.help-block
|
|
For detailed crop wrangling guidelines, please consult the
|
|
= link_to "crop wrangling guide", "http://wiki.growstuff.org/index.php/Crop_wrangling"
|
|
on the Growstuff wiki.
|
|
|
|
.form-group
|
|
= f.label :crop_id, class: 'control-label col-md-2'
|
|
.col-md-8
|
|
= collection_select(:alternate_name, :crop_id,
|
|
Crop.all, :id, :name,
|
|
{ selected: @alternate_name.crop_id || @crop.id },
|
|
class: 'form-control')
|
|
|
|
.form-group
|
|
= f.label :name, class: 'control-label col-md-2'
|
|
.col-md-8
|
|
= f.text_field :name, class: 'form-control'
|
|
|
|
.form-group
|
|
.form-actions.col-md-offset-2.col-md-8
|
|
= f.submit 'Save', class: 'btn btn-primary'
|