ubicloud/views/components/rename_object.erb
Jeremy Evans aaf96140c7 Move rename postgres database to Danger Zone in web UI
As renaming a postgres database requires a change to the
connection info, it is a dangerous operation.

This requires a little restructuring, since before it was always
in it's own section.
2025-09-17 01:43:20 +09:00

17 lines
608 B
Text

<%# locals: (object:, type:, text: nil) %>
<div class="md:flex md:items-center md:justify-between pb-2 lg:pb-4">
<div class="min-w-0 flex-1">
<h3 class="text-2xl font-bold leading-7 text-gray-900 sm:truncate sm:text-2xl sm:tracking-tight">
Rename
</h3>
</div>
</div>
<% form(action: "#{path(object)}/rename", method: :post) do %>
<div class="overflow-hidden rounded-lg shadow ring-1 ring-black ring-opacity-5 bg-white divide-y divide-gray-200">
<div class="px-4 py-5 sm:p-6">
<%== part("components/rename_object_input", object:, type:, text:) %>
</div>
</div>
<% end %>