Skip to content

Commit

Permalink
Start a section for preferences that control site behavior, not profi…
Browse files Browse the repository at this point in the history
…le info
  • Loading branch information
carols10cents committed Oct 14, 2012
1 parent 5297e46 commit 7fd7fcb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
20 changes: 16 additions & 4 deletions app/assets/stylesheets/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,26 @@ form {
font-size: 1.1em;
width: 268px;
}
textarea {
}
input[type="checkbox"] {
margin-left: -0.25em;
margin-top: 0.75em;
width: auto;
}
}
}
.preferences {
.section-label {
padding-top: 0.65em;
@include column(4);
font-weight: bold;
}
.input {
padding-top: 0.65em;
@include column(7);
@include last;
}
label {
font-weight: normal;
}
}
input[type="text"] {
padding: 6px;
}
Expand Down
6 changes: 4 additions & 2 deletions app/views/users/edit.haml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
= render :partial => "shared/field", :locals => {:obj => @user.author, :attr => :bio, :as => :text, :params => params}

- if @user.twitter?
.form-section
.form-field
.form-section.preferences
.section-label
Preferences
.input
= f.check_box("always_send_to_twitter")
%label{:for => "user_always_send_to_twitter"}
Always post updates to Twitter?
Expand Down

0 comments on commit 7fd7fcb

Please sign in to comment.