diff --git a/app/views/employees/_form.html.erb b/app/views/employees/_form.html.erb index e96ed31..c4e3450 100644 --- a/app/views/employees/_form.html.erb +++ b/app/views/employees/_form.html.erb @@ -1,40 +1,65 @@ <% form_for @employee do |f| %> <%= f.error_messages %> -
- <%= f.label :number %>
- <%= f.text_field :number %>
-
- <%= f.label :firstname %>
- <%= f.text_field :firstname %>
-
- <%= f.label :lastname %>
- <%= f.text_field :lastname %>
-
- <%= f.label :ssn %>
- <%= f.text_field :ssn %>
-
- <%= f.label :dob %>
- <%= f.date_select :dob, :start_year => Time.now.year - 70, :end_year => Time.now.year - 17, :default => Time.now - 30.years %>
-
- <%= f.label :hired %>
- <%= f.date_select :hired, :start_year => Time.now.year - 10, :end_year => Time.now.year + 1 %>
-
- <%= f.label :tax_status %>
- <%= f.text_field :tax_status %>
-
- <%= f.label :dependents %>
- <%= f.text_field :dependents %>
-
- <%= f.label :payrate %>
- <%= f.text_field :payrate %>
-
<%= f.submit "Submit" %>
<% end %> diff --git a/app/views/people/_form.html.erb b/app/views/people/_form.html.erb index 247a043..c97b1bd 100644 --- a/app/views/people/_form.html.erb +++ b/app/views/people/_form.html.erb @@ -1,12 +1,12 @@ <% form_for @person do |f| %> <%= f.error_messages %> -
- <%= f.label :firstname %>
- <%= f.text_field :firstname %>
-
- <%= f.label :lastname %>
- <%= f.text_field :lastname %>
-
<%= f.submit "Submit" %>
<% end %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index a61c29d..8da4086 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -2,7 +2,7 @@ html { overflow-y: scroll; } body { - background-color: #ffc; + background-color: #ccc; font-family: Verdana, sans-serif; padding: 0.75em; line-height: 1.333; @@ -134,6 +134,14 @@ p.nav { list-style: disc; } +.left { + float: left; +} + +.right { + float: right; +} + .light { background-color: #e3e3e3; } @@ -164,3 +172,26 @@ p.nav { .listing td.number { width: 2.5em; } + +form dl { + margin-bottom: 1em; + display: inline; +} + +form dt { + font-size: 70%; + font-weight: bold; +} + +fieldset { + width: 46%; + border: groove 2px #666; + padding: 0.5em 0.375em 1.25em 0.375em; + margin-bottom: 1em; +} + +legend { + font-size: 80%; + font-weight: bold; + padding: 0 0.5em; +}