summaryrefslogtreecommitdiffstats
path: root/app/views/enumerations/destroy.html.erb
blob: 2757eed4ee134c80a1df2b406f6a0f8b33f028b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<%= title [l(@enumeration.option_name), enumerations_path], @enumeration.name %>

<%= form_tag({}, :method => :delete) do %>
<div class="box">
<p><strong><%= l(:text_enumeration_destroy_question, :name => @enumeration.name, :count => @enumeration.objects_count) %></strong></p>
<p><label for='reassign_to_id'><%= l(:text_enumeration_category_reassign_to) %></label>
<%= select_tag 'reassign_to_id', (content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') + options_from_collection_for_select(@enumerations, 'id', 'name')) %></p>
</div>

<%= submit_tag l(:button_apply) %>
<%= link_to l(:button_cancel), enumerations_path %>
<% end %>