feat: implement document upload functionality with dedicated UI, state management, and routing.
This commit is contained in:
@@ -225,6 +225,21 @@ extension StaffNavigator on IModularNavigator {
|
||||
pushNamed(StaffPaths.documents);
|
||||
}
|
||||
|
||||
/// Pushes the document upload page.
|
||||
///
|
||||
/// Parameters:
|
||||
/// * [document] - The document metadata to upload
|
||||
/// * [initialUrl] - Optional initial document URL
|
||||
void toDocumentUpload({required StaffDocument document, String? initialUrl}) {
|
||||
navigate(
|
||||
StaffPaths.documentUpload,
|
||||
arguments: <String, dynamic>{
|
||||
'document': document,
|
||||
'initialUrl': initialUrl,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// Pushes the certificates management page.
|
||||
///
|
||||
/// Manage professional certificates (e.g., food handling, CPR).
|
||||
|
||||
@@ -164,6 +164,9 @@ class StaffPaths {
|
||||
/// Store ID, work permits, and other required documentation.
|
||||
static const String documents = '/worker-main/documents/';
|
||||
|
||||
/// Document upload page.
|
||||
static const String documentUpload = '/worker-main/documents/upload/';
|
||||
|
||||
/// Certificates management - professional certifications.
|
||||
///
|
||||
/// Manage professional certificates (e.g., food handling, CPR, etc.).
|
||||
|
||||
Reference in New Issue
Block a user