mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-04 13:52:06 +08:00
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.
17 lines
608 B
Text
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 %>
|