2018-03-25 17:20:54 +00:00
|
|
|
<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
|
2018-03-25 17:30:42 +00:00
|
|
|
<% display_code = false if display_code.nil? %>
|
|
|
|
|
|
|
|
<select name=<%= name %>>
|
|
|
|
<option value="" disabled selected>Select a state</option>
|
|
|
|
<% us_states.each do |state| %>
|
|
|
|
<option value='<%= state[1] %>' <%= default == state[1] ? 'selected="selected"' : '' %>><%= display_code ? state[1] : state[0] %></option>
|
|
|
|
<% end %>
|
|
|
|
</select>
|