Skip to content

Commit

Permalink
lab2023#28 Form headings was changed with fieldset and legend tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
tayfunoziserikan committed Aug 12, 2013
1 parent 29bfd35 commit 840b303
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
5 changes: 2 additions & 3 deletions source/assets/stylesheets/application.css.sass
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ body.login
border: 1px solid rgba(black, .3)
margin: 10% auto
width: 300px
h4
margin: 0 0 15px 0
text-align: center
.brand
margin-top: -15px
h1
Expand All @@ -37,6 +34,8 @@ body.login
.text-center
.checkbox
text-align: center
legend
text-align: center
input
float: none

Expand Down
3 changes: 2 additions & 1 deletion source/forgot_password.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

.row
.col-lg-12
%h4=t(:forgot_password_heading)
%form
%fieldset
%legend=t(:forgot_password_heading)
.form-group
%label.control-label=t(:login_email)
%input.form-control{placeholder: t(:login_email_hint), type: 'text'}/
Expand Down
27 changes: 14 additions & 13 deletions source/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@
Hierapolis
.row
.col-lg-12
%h4=t(:login_heading)
%form
.form-group
%input.form-control{placeholder: t(:login_email), type: 'text'}/
.form-group
%input.form-control{placeholder: t(:login_password), type: 'password'}/
.text-center
.checkbox
%label
%input{:type => 'checkbox'}/
=t(:login_remember_me)
=link_to t(:sign_in), 'dashboard.html', class: 'btn btn-default'
%br/
=link_to t(:forgot_password), 'forgot_password.html'
%fieldset.text-center
%legend=t(:login_heading)
.form-group
%input.form-control{placeholder: t(:login_email), type: 'text'}/
.form-group
%input.form-control{placeholder: t(:login_password), type: 'password'}/
.text-center
.checkbox
%label
%input{:type => 'checkbox'}/
=t(:login_remember_me)
=link_to t(:sign_in), 'dashboard.html', class: 'btn btn-default'
%br/
=link_to t(:forgot_password), 'forgot_password.html'

0 comments on commit 840b303

Please sign in to comment.