Skip to content

Commit 6ea54ca

Browse files
author
Keith Walsh
committed
Added inline styling to form
1 parent 44bde54 commit 6ea54ca

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

public/css/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.container.main {
2+
margin-top: 70px;
3+
}

views/index.haml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,43 @@
22
%html
33
%head
44
%link{:rel => :stylesheet, :type => "text/css", :href => "http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"}
5+
%link{:rel => :stylesheet, :type => "text/css", :href => "/css/style.css"}
56
%title Crontab Generator
67
%body
78
.navbar.navbar-inverse.navbar-fixed-top
8-
.container
9+
.container.main
910
=@crontab
10-
%form{:action => "/", :method => "post"}
11+
%form.form.form-inline{:action => "/", :method => "post"}
1112

12-
%fieldset
13+
.form-group
1314
%label{:for => "minute"} Minute
1415
%select{:multiple => true, :name => "minute[]", :size => 10, :style => "width: 50px"}
1516
-(1..60).each do |m|
1617
%option{:value => m}
1718
=m
1819

19-
%fieldset
20+
.form-group
2021
%label{:for => "hour"} Hour of the day
2122
%select{:multiple => true, :name => "hour[]", :size => 10, :style => "width: 50px", :id => "hour"}
2223
-(1..24).each do |m|
2324
%option{:value => m}
2425
=m
2526

26-
%fieldset
27+
.form-group
2728
%label{:for => "day_of_month"} Day of the month
2829
%select{:multiple => true, :name => "day_of_month[]", :size => 10, :style => "width: 50px", :id => "day_of_month"}
2930
-(1..31).each do |m|
3031
%option{:value => m}
3132
=m
3233

33-
%fieldset
34+
.form-group
3435
%label{:for => "month"} Month
3536
%select{:multiple => true, :name => "month[]", :size => 10, :style => "width: 50px", :id => "month"}
3637
-(1..12).each do |m|
3738
%option{:value => m}
3839
=m
3940

40-
%fieldset
41+
.form-group
4142
%label{:for => "day_of_week"} Day of the week
4243
%select{:multiple => true, :name => "day_of_week[]", :size => 10, :style => "width: 50px", :id => "day_of_week"}
4344
-(1..7).each do |m|

0 commit comments

Comments
 (0)