You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.0 KiB
21 lines
1.0 KiB
<h4> |
|
<%= t("admin.form.are_you_sure_you_want_to_delete_the_object", model_name: @abstract_model.pretty_name.downcase) %> |
|
<q><strong><%= @model_config.with(object: @object).object_label %></strong></q> |
|
<%= t("admin.form.all_of_the_following_related_items_will_be_deleted") %> |
|
</h4> |
|
<ul> |
|
<%= render partial: "delete_notice", object: @object %> |
|
</ul> |
|
<%= form_for(@object, url: delete_path(model_name: @abstract_model.to_param, id: @object.id), html: { method: "delete" }) do %> |
|
<input name="return_to" type="<%= :hidden %>" value="<%= (params[:return_to].presence || request.referer) %>"> |
|
<div class="form-actions"> |
|
<button class="govuk-button govuk-button--warning" data-disable-with="<%= t("admin.form.confirmation") %>" type="submit"> |
|
<i class="fas fa-check"></i> |
|
<%= t("admin.form.confirmation") %> |
|
</button> |
|
<button class="govuk-button" data-disable-with="<%= t("admin.form.cancel") %>" name="_continue" type="submit"> |
|
<i class="fas fa-times"></i> |
|
<%= t("admin.form.cancel") %> |
|
</button> |
|
</div> |
|
<% end %>
|
|
|