2017-01-25 19:01:23 +08:00
|
|
|
<%= bootstrap_form_for @custom_field,
|
|
|
|
url: team_custom_field_path(@team,
|
|
|
|
@custom_field,
|
|
|
|
format: :json),
|
|
|
|
remote: :true,
|
|
|
|
method: :delete,
|
|
|
|
data: { role: "destroy-custom-field-form",
|
|
|
|
id: @custom_field.id } do |f| %>
|
2016-12-14 22:23:00 +08:00
|
|
|
<%= f.hidden_field :column_index, value: column_index %>
|
2016-12-09 18:58:10 +08:00
|
|
|
<p><%= t("samples.modal_delete_custom_field.message", cf: @custom_field.name) %></p>
|
|
|
|
<div class="alert alert-danger" role="alert">
|
|
|
|
<span class="glyphicon glyphicon-exclamation-sign"></span>
|
|
|
|
|
|
|
|
<%= t("samples.modal_delete_custom_field.alert_heading") %>
|
|
|
|
<ul>
|
|
|
|
<li><%= t("samples.modal_delete_custom_field.alert_line_1", nr: @custom_field.sample_custom_fields.count) %></li>
|
|
|
|
<li><%= t("samples.modal_delete_custom_field.alert_line_2") %></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2016-12-14 22:23:00 +08:00
|
|
|
<% end %>
|