Permalink
Browse files

Simpler people search page

  • Loading branch information...
scottwillson committed Aug 26, 2012
1 parent 3943267 commit d6245a1ee0cdc9ae6754e5b764f25220270ec26b
@@ -157,6 +157,6 @@ function makeEditable() {
}
$(document).ready(function() {
- $('.wants_focus:visible').select();
makeEditable();
+ jQuery('.wants_focus:visible').select();
});
@@ -255,3 +255,7 @@ th, .table-striped tbody tr:nth-child(odd) th {
text-align: center;
white-space: nowrap;
}
+
+#search_form {
+ margin-bottom: 0px;
+}
@@ -9,7 +9,7 @@
<div class="row-fluid">
<div class="span3"></div>
<div class="span6">
- <%= labelled_text_field_tag "name", "Name", @name, :class => "wants_focus", :help => "Enter part of a person's name to search" %>
+ <%= text_field_tag("name", @name, :class => "wants_focus span12", :placeholder => "Enter part of a person's name to search") %>
</div>
</div>
<% end -%>
@@ -26,8 +26,8 @@
</tr>
<%= render :partial => "person", :collection => @people %>
<% if @people.empty? %>
- <tr valign="top">
- <td colspan="10" width="200" class="not_found">No matching people found</td>
+ <tr>
+ <td colspan="5" class="not_found">No matching people found</td>
</tr>
<% else %>
<%= will_paginate @people %>

0 comments on commit d6245a1

Please sign in to comment.