mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
20 lines
1 KiB
Text
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>
|
|
|
|
<%= 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 %>
|