scinote-web/app/views/repositories/_delete_column_modal_body.html.erb
2017-06-07 15:23:25 +02:00

20 lines
1 KiB
Text

<%= bootstrap_form_for @repository_column,
url: repository_repository_column_path(@repository,
@repository_column,
format: :json),
remote: :true,
method: :delete,
data: { role: "destroy-repository-column-form",
id: @repository_column.id } do |f| %>
<%= f.hidden_field :column_index, value: column_index %>
<p><%= t("repositories.modal_delete_column.message", column: @repository_column.name) %></p>
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign"></span>
&nbsp;
<%= t("repositories.modal_delete_column.alert_heading") %>
<ul>
<li><%= t("repositories.modal_delete_column.alert_line_1", nr: @repository_column.repository_cells.count) %></li>
<li><%= t("repositories.modal_delete_column.alert_line_2") %></li>
</ul>
</div>
<% end %>