Skip to content

Commit cc60eb3

Browse files
committed
Show delete draft button on live_with_draft forms
Show the delete draft button on live_with_draft forms.
1 parent c0d2e86 commit cc60eb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/views/forms/show.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
sections: @task_list)
4242
%>
4343

44-
<%= govuk_button_link_to(t("forms.delete_form"), delete_form_path(current_form.id), warning: true) if current_form.state.to_sym == :draft %>
44+
<% if current_form.draft? or current_form.live_with_draft? %>
45+
<%= govuk_button_link_to(t("forms.delete_form"), delete_form_path(current_form.id), warning: true) %>
46+
<% end %>
4547
</div>
4648
</div>

0 commit comments

Comments
 (0)