mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-04 05:42:15 +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.
26 lines
714 B
Text
26 lines
714 B
Text
<%# locals: (object:, type:, text: nil) %>
|
|
|
|
<div class="sm:flex sm:items-center sm:justify-between">
|
|
<div>
|
|
<h3 class="text-base font-semibold leading-6 text-gray-900">Rename
|
|
<%= type %></h3>
|
|
<% if text %>
|
|
<div class="mt-2 text-sm text-gray-500">
|
|
<p><%= text %></p>
|
|
</div>
|
|
<% end %>
|
|
<div class="mt-2 text-sm text-gray-500">
|
|
<%== part(
|
|
"components/form/text",
|
|
name: "name",
|
|
value: object.name,
|
|
attributes: {
|
|
required: true
|
|
}
|
|
) %>
|
|
</div>
|
|
</div>
|
|
<div class="mt-5 sm:ml-6 sm:mt-0 sm:flex sm:flex-shrink-0 sm:items-center">
|
|
<%== part("components/button", text: "Rename") %>
|
|
</div>
|
|
</div>
|