Skip to content

Commit

Permalink
styled the account form
Browse files Browse the repository at this point in the history
  • Loading branch information
raw1z committed Feb 7, 2012
1 parent 17cf9c9 commit 914bafe
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
11 changes: 11 additions & 0 deletions app/assets/stylesheets/cargo_wiki/home.css.sass
Expand Up @@ -91,6 +91,17 @@ header
#content
+column(24)

.form-placeholder
text-align: center

form.simple_form
display: inline-block
text-align: left

.actions
text-align: center
margin-top: 1em

.toolbar
margin-top: 1em
margin-bottom: 1.5em
Expand Down
15 changes: 11 additions & 4 deletions app/views/cargo_wiki/users/_form.html.haml
@@ -1,4 +1,11 @@
= form.input :username
= form.input :role, :collection => CargoWiki::User::ROLES
= form.input :password
= form.input :password_confirmation
%h1.title #{page_title}

.form-placeholder
= simple_form_for @user do |f|
= f.input :username
= f.input :role, :collection => CargoWiki::User::ROLES
= f.input :password
= f.input :password_confirmation

.actions
= f.button :submit, button_label
7 changes: 1 addition & 6 deletions app/views/cargo_wiki/users/edit.html.haml
@@ -1,6 +1 @@
%h1.title Editing Account

= simple_form_for @user do |f|
= render 'form', :form => f
.actions
= f.button :submit, "Update"
= render 'form', :page_title => "Editing Account", :button_label => "Update"
7 changes: 1 addition & 6 deletions app/views/cargo_wiki/users/new.html.haml
@@ -1,6 +1 @@
%h1.title New Account

= simple_form_for @user do |f|
= render 'form', :form => f
.actions
= f.button :submit, "Create"
= render 'form', :page_title => "New Account", :button_label => "Create Account"

0 comments on commit 914bafe

Please sign in to comment.