scinote-web/app/views/repositories/_delete_column_modal_body.html.erb

21 lines
1 KiB
Text
Raw Normal View History

2017-06-06 23:35:29 +08:00
<%= 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 %>