2023-08-07 20:14:21 +00:00
< div >
2023-12-07 18:06:32 +00:00
< form wire : submit = 'submit' class = " flex flex-col gap-2 xl:items-end xl:flex-row " >
2023-09-22 09:23:49 +00:00
@ if ( $isReadOnly )
2023-10-03 06:48:07 +00:00
@ if ( $isFirst )
2024-06-13 08:18:35 +00:00
@ if (
$storage -> resource_type === 'App\Models\ServiceApplication' ||
$storage -> resource_type === 'App\Models\ServiceDatabase' )
< x - forms . input id = " storage.name " label = " Volume Name " required readonly
helper = " Warning: Changing the volume name after the initial start could cause problems. Only use it when you know what are you doing. " />
@ else
< x - forms . input id = " storage.name " label = " Volume Name " required
helper = " Warning: Changing the volume name after the initial start could cause problems. Only use it when you know what are you doing. " />
@ endif
2024-05-27 13:11:00 +00:00
@ if ( $isService || $startedAt )
< x - forms . input id = " storage.host_path " readonly helper = " Directory on the host system. "
label = " Source Path "
helper = " Warning: Changing the source path after the initial start could cause problems. Only use it when you know what are you doing. " />
2024-07-15 10:23:06 +00:00
< x - forms . input id = " storage.mount_path " label = " Destination Path "
helper = " Directory inside the container. " required readonly />
2024-05-27 13:11:00 +00:00
@ else
< x - forms . input id = " storage.host_path " helper = " Directory on the host system. " label = " Source Path "
helper = " Warning: Changing the source path after the initial start could cause problems. Only use it when you know what are you doing. " />
2024-07-15 10:23:06 +00:00
< x - forms . input id = " storage.mount_path " label = " Destination Path "
helper = " Directory inside the container. " required readonly />
< x - forms . button type = " submit " >
Update
</ x - forms . button >
2024-05-27 13:11:00 +00:00
@ endif
2023-10-03 06:48:07 +00:00
@ else
2024-05-31 07:59:39 +00:00
< x - forms . input id = " storage.name " required readonly />
2024-06-13 08:18:35 +00:00
< x - forms . input id = " storage.host_path " readonly />
2024-05-31 07:59:39 +00:00
< x - forms . input id = " storage.mount_path " required readonly />
2023-10-03 06:48:07 +00:00
@ endif
2023-08-07 20:14:21 +00:00
@ else
2023-10-03 06:48:07 +00:00
@ if ( $isFirst )
< x - forms . input id = " storage.name " label = " Volume Name " required />
2024-05-27 12:14:44 +00:00
< x - forms . input id = " storage.host_path " helper = " Directory on the host system. " label = " Source Path " />
2024-05-27 13:11:00 +00:00
< x - forms . input id = " storage.mount_path " label = " Destination Path " helper = " Directory inside the container. "
required />
2023-10-03 06:48:07 +00:00
@ else
< x - forms . input id = " storage.name " required />
2024-05-31 07:59:39 +00:00
< x - forms . input id = " storage.host_path " />
< x - forms . input id = " storage.mount_path " required />
2023-10-03 06:48:07 +00:00
@ endif
2023-08-07 20:14:21 +00:00
< div class = " flex gap-2 " >
< x - forms . button type = " submit " >
Update
</ x - forms . button >
2024-09-04 20:33:47 +00:00
< x - modal - confirmation
title = " Confirm persistent storage deletion? "
isErrorButton
buttonTitle = " Delete "
submitAction = " delete "
: actions = " ['The selected persistent storage/volume will be permanently deleted.', 'If the persistent storage/volume is actvily used by a resource data will be lost.'] "
confirmationText = " { { $storage->name }} "
confirmationLabel = " Please confirm the execution of the actions by entering the Storage Name below "
shortConfirmationLabel = " Storage Name "
step3ButtonText = " Permanently Delete Persistent Storage/Volume "
/>
2023-08-07 20:14:21 +00:00
</ div >
@ endif
</ form >
</ div >