Full-width form elements

This commit is contained in:
Amy Hendrix
2014-07-13 20:28:20 -04:00
parent b374beae35
commit db9ef0bc83
6 changed files with 10 additions and 10 deletions

View File

@@ -7,7 +7,7 @@
%li= msg
.field
= f.text_area :body, :rows => 6, :class => 'input-block-level'
= f.text_area :body, :rows => 6, :class => 'form-control'
%span.help-block
= render :partial => "shared/markdown_help"
.actions

View File

@@ -49,7 +49,7 @@
.form-group
=f.label :bio, :class => 'control-label'
.controls
=f.text_area :bio, :rows => 6, :class => 'input-block-level'
=f.text_area :bio, :rows => 6, :class => 'form-control'
%h2 Linked accounts

View File

@@ -8,10 +8,10 @@
.form-group
= f.label :name, :class => 'control-label'
.controls= f.text_field :name, :class => 'input-block-level'
.controls= f.text_field :name, :class => 'form-control'
.form-group
= f.label :description, :class => 'control-label'
.controls= f.text_area :description, :rows => 6, :class => 'input-block-level'
.controls= f.text_area :description, :rows => 6, :class => 'form-control'
.form-group
= f.label :owner_id, :class => 'control-label'
.controls= collection_select(:forum, :owner_id, Member.all, :id, :login_name)

View File

@@ -13,9 +13,9 @@
To:
= link_to @recipient, @recipient
= label_tag :notification, "Subject:"
= f.text_field :subject, :value => @subject, :class => 'input-block-level'
= f.text_field :subject, :value => @subject, :class => 'form-control'
= label_tag :body, "Type your message here:"
= f.text_area :body, :rows => 12, :class => 'input-block-level'
= f.text_area :body, :rows => 12, :class => 'form-control'
%span.help-block
= render :partial => "shared/markdown_help"

View File

@@ -8,12 +8,12 @@
= label_tag :post, "Subject"
= f.text_field :subject, :class => 'input-block-level'
= f.text_field :subject, :class => 'form-control'
- if @post.forum || @forum
= label_tag :body, "What's up?"
- else
= label_tag :body, "What's going on in your food garden?"
= f.text_area :body, :rows => 12, :class => 'input-block-level'
= f.text_area :body, :rows => 12, :class => 'form-control'
%span.help-block
= render :partial => "shared/markdown_help"

View File

@@ -8,10 +8,10 @@
.field
= f.label :name
= f.text_field :name, :class => 'input-block-level'
= f.text_field :name, :class => 'form-control'
.field
= f.label :description
= f.text_area :description, :class => 'input-block-level'
= f.text_area :description, :class => 'form-control'
.field
= f.label :min_price, "Minimum price (in cents)"
= f.text_field :min_price