Skip to content

Commit 9fe92f4

Browse files
committed
ADA-748 element labels
1 parent 4d4f6f1 commit 9fe92f4

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

app/views/layouts/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Early Arrivals Search (EARS)</title>
4+
<title>Early Arrivals Records Search (EARS) | Immigration Case Files</title>
55
<%= stylesheet_link_tag :application %>
66
<%= csrf_meta_tags %>
77
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

app/views/search_casefiles/_form.html.erb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<%= form_for(@searchcase, :html => { :multipart => true }) do |f| %>
22

3-
<p>
4-
<%= f.label :searchterm, "Enter query:" %><br />
5-
<%= f.text_field :LASTNAME %><br />
6-
</p>
3+
<p>
4+
<%= f.label :LASTNAME do %>
5+
Enter query:<br />
6+
<%= f.text_field :LASTNAME, placeholder: 'Enter a last name' %>
7+
<% end %>
8+
</p>
79

810

911
<%= f.submit %>

app/views/searchcase/display.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<h3>Immigration record:</h3>
55
<%= form_tag(action="/searchcase/display", method: "get") do %>
66
<%= label_tag(:q, 'Search records') %>
7-
<%= text_field_tag(:q, params[:q], aria: { label: 'Search immigration records' }) %>
7+
<%= text_field_tag(:q, params[:q], placeholder: 'Enter a name to search', aria: { label: 'Search immigration records' }) %>
88
<%= submit_tag("Search", :class => "search-bar") %>
99
<% end %>
1010
</div>

app/views/searchcase/search.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h3>Immigration record:</h3>
33
<%= form_tag(action="/searchcase/display", method: "get") do %>
44
<%= label_tag(:q, 'Search records') %>
5-
<%= text_field_tag(:q, params[:q], aria: { label: 'Search immigration records' }) %>
5+
<%= text_field_tag(:q, params[:q], placeholder: 'Enter a name to search', aria: { label: 'Search immigration records' }) %>
66
<%= submit_tag("Search", :class => "search-bar") %>
77
<% end %>
88

0 commit comments

Comments
 (0)