-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update styling of sign up (registration) page
- Loading branch information
Gary Geisler
committed
Jun 10, 2016
1 parent
ce43cfc
commit c870329
Showing
5 changed files
with
54 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,36 @@ | ||
.account-form { | ||
margin: 0 10px 30px; | ||
|
||
h1 { | ||
h1, | ||
h2 { | ||
font-size: 2em; | ||
margin-bottom: 30px; | ||
} | ||
|
||
label, | ||
.actions { | ||
.actions, | ||
.form-actions { | ||
text-align: right; | ||
} | ||
|
||
.actions .btn { | ||
.actions .btn, | ||
.form-actions .btn { | ||
margin-left: 10px; | ||
} | ||
|
||
.help-block { | ||
margin-bottom: 20px; | ||
margin-bottom: 0; | ||
margin-top: 5px; | ||
} | ||
} | ||
|
||
.registration { | ||
.required-tag { | ||
display: none; | ||
} | ||
} | ||
|
||
.field_with_errors { | ||
border-radius: $border-radius-base; | ||
margin-top: 5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
<h2>TEST</h2> | ||
<div class="row col-md-9 account-form registration"> | ||
<h2>Create a new account</h2> | ||
|
||
<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> | ||
<%= f.error_notification %> | ||
<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: "form-horizontal" }) do |f| %> | ||
<%= f.error_notification %> | ||
|
||
<div class="form-inputs"> | ||
<%= f.input :email, required: true, autofocus: true %> | ||
<%= f.input :password, required: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %> | ||
<%= f.input :password_confirmation, required: true %> | ||
</div> | ||
<div class="form-inputs"> | ||
<%= f.input :email, :label => 'Email address', required: true, autofocus: true, wrapper: :inline %> | ||
<%= f.input :password, required: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length), wrapper: :inline %> | ||
<%= f.input :password_confirmation, required: true, wrapper: :inline %> | ||
</div> | ||
|
||
<div class="form-actions"> | ||
<%= f.button :submit, "Sign up" %> | ||
</div> | ||
<% end %> | ||
<%= render "devise/shared/links" %> | ||
<div class="form-actions"> | ||
<%= render "devise/shared/links" %> | ||
<%= f.button :submit, "Create account", class: 'btn btn-primary' %> | ||
</div> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters