@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.833
// templ: version: v0.3.906
package app
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@ -98,8 +98,12 @@ func FileBrowser(data dash.FileBrowserData) templ.Component {
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
var templ_7745c5c3_Var4 templ . SafeURL = templ . SafeURL ( fmt . Sprintf ( "/files?path=%s" , crumb . Path ) )
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( string ( templ_7745c5c3_Var4 ) ) )
var templ_7745c5c3_Var4 templ . SafeURL
templ_7745c5c3_Var4 , templ_7745c5c3_Err = templ . JoinURLErrs ( templ . SafeURL ( fmt . Sprintf ( "/files?path=%s" , crumb . Path ) ) )
if templ_7745c5c3_Err != nil {
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` view/app/file_browser.templ ` , Line : 52 , Col : 72 }
}
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var4 ) )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
@ -219,8 +223,12 @@ func FileBrowser(data dash.FileBrowserData) templ.Component {
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
var templ_7745c5c3_Var11 templ . SafeURL = templ . SafeURL ( fmt . Sprintf ( "/files?path=%s" , data . ParentPath ) )
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( string ( templ_7745c5c3_Var11 ) ) )
var templ_7745c5c3_Var11 templ . SafeURL
templ_7745c5c3_Var11 , templ_7745c5c3_Err = templ . JoinURLErrs ( templ . SafeURL ( fmt . Sprintf ( "/files?path=%s" , data . ParentPath ) ) )
if templ_7745c5c3_Err != nil {
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` view/app/file_browser.templ ` , Line : 166 , Col : 75 }
}
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var11 ) )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
@ -261,8 +269,12 @@ func FileBrowser(data dash.FileBrowserData) templ.Component {
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
var templ_7745c5c3_Var13 templ . SafeURL = templ . SafeURL ( fmt . Sprintf ( "/files?path=%s" , entry . FullPath ) )
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( string ( templ_7745c5c3_Var13 ) ) )
var templ_7745c5c3_Var13 templ . SafeURL
templ_7745c5c3_Var13 , templ_7745c5c3_Err = templ . JoinURLErrs ( templ . SafeURL ( fmt . Sprintf ( "/files?path=%s" , entry . FullPath ) ) )
if templ_7745c5c3_Err != nil {
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` view/app/file_browser.templ ` , Line : 198 , Col : 82 }
}
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var13 ) )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
@ -393,92 +405,84 @@ func FileBrowser(data dash.FileBrowserData) templ.Component {
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 41 , "</code></td><td><div class=\"btn-group btn-group-sm\">" )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 41 , "</code></td><td><div class=\"btn-group btn-group-sm\" role=\"group\" >" )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
if ! entry . IsDirectory {
if ! entry . IsDirectory {
templ_7745c5c3_Err = templ . RenderScriptItems ( ctx , templ_7745c5c3_Buffer , templ . ComponentScript { Call : fmt . Sprintf ( "downloadFile('%s')" , entry . FullPath ) } )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 42 , "<button type=\"button\" class=\"btn btn-outline-primary btn-sm\" title=\"Download\" onclick=\"" )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 42 , "<button type=\"button\" class=\"btn btn-outline-primary btn-sm\" title=\"Download\" data-action=\"download\" data-path=\"" )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
var templ_7745c5c3_Var22 templ . ComponentScript = templ . ComponentScript { Call : fmt . Sprintf ( "downloadFile('%s')" , entry . FullPath ) }
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ_7745c5c3_Var22 . Call )
var templ_7745c5c3_Var22 string
templ _7745c5c3_Var22 , templ_7745c5c3_Err = templ . JoinStringErrs ( entry . FullPath )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ . Error { Err : templ _7745c5c3_Err, FileName : ` view/app/file_browser.templ ` , Line : 236 , Col : 139 }
}
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 43 , "\"><i class=\"fas fa-download\"></i></button> " )
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var22 ) )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templ . RenderScriptItems ( ctx , templ_7745c5c3_Buffer , templ . ComponentScript { Call : fmt . Sprintf ( "viewFile('%s')" , entry . FullPath ) } )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 43 , "\"><i class=\"fas fa-download\"></i></button> <button type=\"button\" class=\"btn btn-outline-info btn-sm\" title=\"View\" data-action=\"view\" data-path=\"" )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 44 , "<button type=\"button\" class=\"btn btn-outline-info btn-sm\" title=\"View\" onclick=\"" )
var templ_7745c5c3_Var23 string
templ_7745c5c3_Var23 , templ_7745c5c3_Err = templ . JoinStringErrs ( entry . FullPath )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ . Error { Err : templ _7745c5c3_Err, FileName : ` view/app/file_browser.templ ` , Line : 239 , Col : 128 }
}
}
var templ_7745c5c3_Var23 templ . ComponentScript = templ . ComponentScript { Call : fmt . Sprintf ( "viewFile('%s')" , entry . FullPath ) }
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ_7745c5c3_Var23 . Call )
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var23 ) )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 45 , "\"><i class=\"fas fa-eye\"></i></button> " )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 44 , "\"><i class=\"fas fa-eye\"></i></button> " )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
}
}
templ_7745c5c3_Err = templ . RenderScriptItems ( ctx , templ_7745c5c3_Buffer , templ . ComponentScript { Call : fmt . Sprintf ( "showProperties('%s')" , entry . FullPath ) } )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 46 , "<button type=\"button\" class=\"btn btn-outline-secondary btn-sm\" title=\"Properties\" onclick=\"" )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 45 , "<button type=\"button\" class=\"btn btn-outline-secondary btn-sm\" title=\"Properties\" data-action=\"properties\" data-path=\"" )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
var templ_7745c5c3_Var24 templ . ComponentScript = templ . ComponentScript { Call : fmt . Sprintf ( "showProperties('%s')" , entry . FullPath ) }
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ_7745c5c3_Var24 . Call )
var templ_7745c5c3_Var24 string
templ _7745c5c3_Var24 , templ_7745c5c3_Err = templ . JoinStringErrs ( entry . FullPath )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ . Error { Err : templ _7745c5c3_Err, FileName : ` view/app/file_browser.templ ` , Line : 243 , Col : 144 }
}
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 47 , "\"><i class=\"fas fa-info\"></i></button> " )
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var24 ) )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templ . RenderScriptItems ( ctx , templ_7745c5c3_Buffer , templ . ComponentScript { Call : fmt . Sprintf ( "confirmDelete('%s')" , entry . FullPath ) } )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 46 , "\"><i class=\"fas fa-info-circle\"></i></button> <button type=\"button\" class=\"btn btn-outline-danger btn-sm\" title=\"Delete\" data-action=\"delete\" data-path=\"" )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 48 , "<button type=\"button\" class=\"btn btn-outline-danger btn-sm\" title=\"Delete\" onclick=\"" )
var templ_7745c5c3_Var25 string
templ_7745c5c3_Var25 , templ_7745c5c3_Err = templ . JoinStringErrs ( entry . FullPath )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ . Error { Err : templ _7745c5c3_Err, FileName : ` view/app/file_browser.templ ` , Line : 246 , Col : 133 }
}
}
var templ_7745c5c3_Var25 templ . ComponentScript = templ . ComponentScript { Call : fmt . Sprintf ( "confirmDelete('%s')" , entry . FullPath ) }
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ_7745c5c3_Var25 . Call )
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var25 ) )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 49 , "\"><i class=\"fas fa-trash\"></i></button></div></td></tr>" )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 47 , "\"><i class=\"fas fa-trash\"></i></button></div></td></tr>" )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
}
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 50 , "</tbody></table></div>" )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 48 , "</tbody></table></div>" )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
} else {
} else {
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 51 , "<div class=\"text-center py-5\"><i class=\"fas fa-folder-open fa-3x text-muted mb-3\"></i><h5 class=\"text-muted\">Empty Directory</h5><p class=\"text-muted\">This directory contains no files or subdirectories.</p></div>" )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 49 , "<div class=\"text-center py-5\"><i class=\"fas fa-folder-open fa-3x text-muted mb-3\"></i><h5 class=\"text-muted\">Empty Directory</h5><p class=\"text-muted\">This directory contains no files or subdirectories.</p></div>" )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
}
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 52 , "</div></div><!-- Last Updated --><div class=\"row\"><div class=\"col-12\"><small class=\"text-muted\"><i class=\"fas fa-clock me-1\"></i> Last updated: " )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 50 , "</div></div><!-- Last Updated --><div class=\"row\"><div class=\"col-12\"><small class=\"text-muted\"><i class=\"fas fa-clock me-1\"></i> Last updated: " )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
@ -491,7 +495,7 @@ func FileBrowser(data dash.FileBrowserData) templ.Component {
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 53 , "</small></div></div><!-- Create Folder Modal --><div class=\"modal fade\" id=\"createFolderModal\" tabindex=\"-1\" aria-labelledby=\"createFolderModalLabel\" aria-hidden=\"true\"><div class=\"modal-dialog\"><div class=\"modal-content\"><div class=\"modal-header\"><h5 class=\"modal-title\" id=\"createFolderModalLabel\"><i class=\"fas fa-folder-plus me-2\"></i>Create New Folder</h5><button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button></div><div class=\"modal-body\"><form id=\"createFolderForm\"><div class=\"mb-3\"><label for=\"folderName\" class=\"form-label\">Folder Name</label> <input type=\"text\" class=\"form-control\" id=\"folderName\" name=\"folderName\" required placeholder=\"Enter folder name\" maxlength=\"255\"><div class=\"form-text\">Folder names cannot contain / or \\ characters.</div></div><input type=\"hidden\" id=\"currentPath\" name=\"currentPath\" value=\"" )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 51 , "</small></div></div><!-- Create Folder Modal --><div class=\"modal fade\" id=\"createFolderModal\" tabindex=\"-1\" aria-labelledby=\"createFolderModalLabel\" aria-hidden=\"true\"><div class=\"modal-dialog\"><div class=\"modal-content\"><div class=\"modal-header\"><h5 class=\"modal-title\" id=\"createFolderModalLabel\"><i class=\"fas fa-folder-plus me-2\"></i>Create New Folder</h5><button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button></div><div class=\"modal-body\"><form id=\"createFolderForm\"><div class=\"mb-3\"><label for=\"folderName\" class=\"form-label\">Folder Name</label> <input type=\"text\" class=\"form-control\" id=\"folderName\" name=\"folderName\" required placeholder=\"Enter folder name\" maxlength=\"255\"><div class=\"form-text\">Folder names cannot contain / or \\ characters.</div></div><input type=\"hidden\" id=\"currentPath\" name=\"currentPath\" value=\"" )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
@ -504,7 +508,7 @@ func FileBrowser(data dash.FileBrowserData) templ.Component {
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 54 , "\"></form></div><div class=\"modal-footer\"><button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Cancel</button> <button type=\"button\" class=\"btn btn-primary\" onclick=\"submitCreateFolder()\"><i class=\"fas fa-folder-plus me-1\"></i>Create Folder</button></div></div></div></div><!-- Upload File Modal --><div class=\"modal fade\" id=\"uploadFileModal\" tabindex=\"-1\" aria-labelledby=\"uploadFileModalLabel\" aria-hidden=\"true\"><div class=\"modal-dialog modal-lg\"><div class=\"modal-content\"><div class=\"modal-header\"><h5 class=\"modal-title\" id=\"uploadFileModalLabel\"><i class=\"fas fa-upload me-2\"></i>Upload Files</h5><button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button></div><div class=\"modal-body\"><form id=\"uploadFileForm\" enctype=\"multipart/form-data\"><div class=\"mb-3\"><label for=\"fileInput\" class=\"form-label\">Select Files</label> <input type=\"file\" class=\"form-control\" id=\"fileInput\" name=\"files\" multiple required><div class=\"form-text\">Choose one or more files to upload to the current directory. You can select multiple files by holding Ctrl (Cmd on Mac) while clicking.</div></div><input type=\"hidden\" id=\"uploadPath\" name=\"path\" value=\"" )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 52 , "\"></form></div><div class=\"modal-footer\"><button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Cancel</button> <button type=\"button\" class=\"btn btn-primary\" onclick=\"submitCreateFolder()\"><i class=\"fas fa-folder-plus me-1\"></i>Create Folder</button></div></div></div></div><!-- Upload File Modal --><div class=\"modal fade\" id=\"uploadFileModal\" tabindex=\"-1\" aria-labelledby=\"uploadFileModalLabel\" aria-hidden=\"true\"><div class=\"modal-dialog modal-lg\"><div class=\"modal-content\"><div class=\"modal-header\"><h5 class=\"modal-title\" id=\"uploadFileModalLabel\"><i class=\"fas fa-upload me-2\"></i>Upload Files</h5><button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button></div><div class=\"modal-body\"><form id=\"uploadFileForm\" enctype=\"multipart/form-data\"><div class=\"mb-3\"><label for=\"fileInput\" class=\"form-label\">Select Files</label> <input type=\"file\" class=\"form-control\" id=\"fileInput\" name=\"files\" multiple required><div class=\"form-text\">Choose one or more files to upload to the current directory. You can select multiple files by holding Ctrl (Cmd on Mac) while clicking.</div></div><input type=\"hidden\" id=\"uploadPath\" name=\"path\" value=\"" )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
@ -517,7 +521,7 @@ func FileBrowser(data dash.FileBrowserData) templ.Component {
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 55 , "\"><!-- File List Preview --><div id=\"fileListPreview\" class=\"mb-3\" style=\"display: none;\"><label class=\"form-label\">Selected Files:</label><div id=\"selectedFilesList\" class=\"border rounded p-2 bg-light\"><!-- Files will be listed here --></div></div><!-- Upload Progress --><div class=\"mb-3\" id=\"uploadProgress\" style=\"display: none;\"><label class=\"form-label\">Upload Progress:</label><div class=\"progress mb-2\"><div class=\"progress-bar progress-bar-striped progress-bar-animated\" role=\"progressbar\" style=\"width: 0%\" aria-valuenow=\"0\" aria-valuemin=\"0\" aria-valuemax=\"100\">0%</div></div><div id=\"uploadStatus\" class=\"small text-muted\">Preparing upload...</div></div></form></div><div class=\"modal-footer\"><button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Cancel</button> <button type=\"button\" class=\"btn btn-primary\" onclick=\"submitUploadFile()\"><i class=\"fas fa-upload me-1\"></i>Upload Files</button></div></div></div></div>" )
templ_7745c5c3_Err = templruntime . WriteString ( templ_7745c5c3_Buffer , 53 , "\"><!-- File List Preview --><div id=\"fileListPreview\" class=\"mb-3\" style=\"display: none;\"><label class=\"form-label\">Selected Files:</label><div id=\"selectedFilesList\" class=\"border rounded p-2 bg-light\"><!-- Files will be listed here --></div></div><!-- Upload Progress --><div class=\"mb-3\" id=\"uploadProgress\" style=\"display: none;\"><label class=\"form-label\">Upload Progress:</label><div class=\"progress mb-2\"><div class=\"progress-bar progress-bar-striped progress-bar-animated\" role=\"progressbar\" style=\"width: 0%\" aria-valuenow=\"0\" aria-valuemin=\"0\" aria-valuemax=\"100\">0%</div></div><div id=\"uploadStatus\" class=\"small text-muted\">Preparing upload...</div></div></form></div><div class=\"modal-footer\"><button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Cancel</button> <button type=\"button\" class=\"btn btn-primary\" onclick=\"submitUploadFile()\"><i class=\"fas fa-upload me-1\"></i>Upload Files</button></div></div></div></div>" )
if templ_7745c5c3_Err != nil {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
return templ_7745c5c3_Err
}
}