Skip to content

Commit 487bb30

Browse files
committed
Add location select to form
1 parent 2969883 commit 487bb30

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

app/views/job_applications/_form.html.erb

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,17 @@
5252
</div>
5353
<div>
5454
<%= form.label :status, class: 'block text-sm font-medium text-gray-700 mb-2' %>
55-
<%= form.select :status, JobApplication.statuses.keys.map { |k| [k.humanize, k] }, { include_blank: 'Select a status' }, class: 'shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline' %>
56-
<div class="mt-8">
57-
<%= form.label :claimed_for_unemployment, class: 'flex items-center' do %>
58-
<%= form.check_box :claimed_for_unemployment, class: 'h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded mr-2' %>
59-
<span class="text-sm font-medium text-gray-700">Claimed for Unemployment</span>
60-
<% end %>
61-
</div>
55+
<%= form.select :status, JobApplication.statuses.keys.map { |k| [k.humanize, k] }, { include_blank: false }, class: 'shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline' %>
56+
</div>
57+
<div>
58+
<%= form.label :location, class: 'block text-sm font-medium text-gray-700 mb-2' %>
59+
<%= form.select :location, JobApplication.locations.keys.map { |k| [k.humanize, k] }, { include_blank: false }, class: 'shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline' %>
60+
</div>
61+
<div class="mt-8">
62+
<%= form.label :claimed_for_unemployment, class: 'flex items-center' do %>
63+
<%= form.check_box :claimed_for_unemployment, class: 'h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded mr-2' %>
64+
<span class="text-sm font-medium text-gray-700">Claimed for Unemployment</span>
65+
<% end %>
6266
</div>
6367
</div>
6468
<div class="flex items-center justify-end mt-6">

0 commit comments

Comments
 (0)