2024-08-23 12:21:12 +00:00
< div class = " py-4 " >
2024-04-08 07:51:14 +00:00
< div class = " flex flex-col justify-center pb-4 text-sm select-text " >
2024-08-23 12:21:12 +00:00
{{ -- @ if ( data_get ( $resource , 'build_pack' ) === 'dockercompose' )
< h4 > {{ data_get ( $resource , 'name' , 'unknown' ) }} </ h4 >
@ endif -- }}
2024-04-15 17:47:17 +00:00
@ if ( $fileStorage -> is_directory )
2024-08-29 10:03:23 +00:00
< h4 class = " dark:text-white pt-4 border-t dark:border-coolgray-200 " > Directory Mount </ h4 >
2024-04-15 17:47:17 +00:00
@ else
2024-08-29 10:03:23 +00:00
< h4 class = " dark:text-white pt-4 border-t dark:border-coolgray-200 " > File Mount </ h4 >
2024-04-15 17:47:17 +00:00
@ endif
2024-08-12 14:06:24 +00:00
2024-08-23 12:21:12 +00:00
< x - forms . input label = " Source Path " : value = " $fileStorage->fs_path " readonly />
< x - forms . input label = " Destination Path " : value = " $fileStorage->mount_path " readonly />
2024-01-04 12:03:46 +00:00
</ div >
2024-04-15 17:47:17 +00:00
< form wire : submit = 'submit' class = " flex flex-col gap-2 " >
< div class = " flex gap-2 " >
@ if ( $fileStorage -> is_directory )
2024-09-23 06:58:04 +00:00
< x - modal - confirmation title = " Confirm Directory Conversion to File? " buttonTitle = " Convert to file "
submitAction = " convertToFile " : actions = " [
'All files in this directory will be permanently deleted and an empty file will be created in its place.' ,
] " confirmationText= " {{ $fs_path }} "
confirmationLabel = " Please confirm the execution of the actions by entering the Filepath below "
shortConfirmationLabel = " Filepath " : confirmWithPassword = " false " step2ButtonText = " Convert to file " />
< x - modal - confirmation title = " Confirm Directory Deletion? " buttonTitle = " Delete Directory " isErrorButton
submitAction = " delete " : checkboxes = " $directoryDeletionCheckboxes " : actions = " [
'The selected directory and all its contents will be permanently deleted from the container.' ,
] " confirmationText= " {{ $fs_path }} "
2024-09-03 16:31:06 +00:00
confirmationLabel = " Please confirm the execution of the actions by entering the Filepath below "
2024-09-23 06:58:04 +00:00
shortConfirmationLabel = " Filepath " step3ButtonText = " Permanently Delete " />
2024-09-03 16:31:06 +00:00
@ else
2025-02-26 07:22:55 +00:00
< x - modal - confirmation title = " Confirm File Conversion to Directory? " buttonTitle = " Convert to directory "
submitAction = " convertToDirectory " : actions = " [
'The selected file will be permanently deleted and an empty directory will be created in its place.' ,
] " confirmationText= " {{ $fs_path }} "
confirmationLabel = " Please confirm the execution of the actions by entering the Filepath below "
shortConfirmationLabel = " Filepath " : confirmWithPassword = " false " step2ButtonText = " Convert to directory " />
2024-09-23 06:58:04 +00:00
< x - modal - confirmation title = " Confirm File Deletion? " buttonTitle = " Delete File " isErrorButton
submitAction = " delete " : checkboxes = " $fileDeletionCheckboxes " : actions = " ['The selected file will be permanently deleted from the container.'] " confirmationText = " { { $fs_path }} "
2024-09-03 16:31:06 +00:00
confirmationLabel = " Please confirm the execution of the actions by entering the Filepath below "
2024-09-23 06:58:04 +00:00
shortConfirmationLabel = " Filepath " step3ButtonText = " Permanently Delete " />
2023-09-26 12:45:52 +00:00
@ endif
2025-02-26 07:22:55 +00:00
{{ -- @ if ( ! $fileStorage -> is_based_on_git )
2024-08-12 14:06:24 +00:00
< x - modal - confirmation isErrorButton buttonTitle = " Delete " >
< div class = " px-2 " > This storage will be deleted . It is not reversible . < strong
class = " text-error " > Please
think
again .</ strong >< br >< br ></ div >
< h4 > Actions </ h4 >
@ if ( $fileStorage -> is_directory )
< x - forms . checkbox id = " permanently_delete "
label = " Permanently delete directory from the server? " ></ x - forms . checkbox >
@ else
< x - forms . checkbox id = " permanently_delete "
label = " Permanently delete file from the server? " ></ x - forms . checkbox >
@ endif
</ x - modal - confirmation >
2025-02-26 07:22:55 +00:00
@ endif -- }}
2024-04-15 17:47:17 +00:00
</ div >
@ if ( ! $fileStorage -> is_directory )
2024-08-12 14:06:24 +00:00
@ if ( data_get ( $resource , 'settings.is_preserve_repository_enabled' ))
< div class = " w-96 " >
< x - forms . checkbox instantSave label = " Is this based on the Git repository? "
id = " fileStorage.is_based_on_git " ></ x - forms . checkbox >
</ div >
@ endif
< x - forms . textarea
label = " { { $fileStorage->is_based_on_git ? 'Content (refreshed after a successful deployment)' : 'Content' }} "
rows = " 20 " id = " fileStorage.content "
readonly = " { { $fileStorage->is_based_on_git }} " ></ x - forms . textarea >
@ if ( ! $fileStorage -> is_based_on_git )
< x - forms . button class = " w-full " type = " submit " > Save </ x - forms . button >
@ endif
2024-04-15 17:47:17 +00:00
@ endif
</ form >
2024-01-04 12:03:46 +00:00
</ div >