diff options
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/mod.rs | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs index 671aac6..1f37a9f 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -45,8 +45,11 @@ pub enum Route { ViewInvoices, #[at("/invoice/one")] ViewInvoice, + #[at("/settings")] Settings, + #[at("/about")] + About, #[not_found] #[at("/404")] @@ -58,15 +61,17 @@ pub fn switch(routes: Route) -> Html { Route::Home => html! {<home::HomePage />}, Route::ManageMenu => html! {<manage::ManageMenuPage />}, - Route::ManageClients => html! {<h1>{ "Edit Clients" }</h1>}, - Route::ManageBrands => html! {<h1>{ "Edit Brands" }</h1>}, - Route::ManageItems => html! {<h1>{ "Edit Items" }</h1>}, - Route::ManageInvoices => html! {<h1>{ "Edit Invoices" }</h1>}, + Route::ManageClients => html! {<h1>{ "Edit Clients (To Be Added)" }</h1>}, + Route::ManageBrands => html! {<h1>{ "Edit Brands (To Be Added)" }</h1>}, + Route::ManageItems => html! {<h1>{ "Edit Items (To Be Added)" }</h1>}, + Route::ManageInvoices => html! {<h1>{ "Edit Invoices (To Be Added)" }</h1>}, + + Route::NewInvoice => html! {<h1>{ "Create New Invoice (To Be Added)" }</h1>}, + Route::ViewInvoices => html! {<h1>{ "View All Invoices (To Be Added)" }</h1>}, + Route::ViewInvoice => html! {<h1>{ "View a Single Invoice (To Be Added)" }</h1>}, - Route::NewInvoice => html! {<h1>{ "Create New Invoice" }</h1>}, - Route::ViewInvoices => html! {<h1>{ "View All Invoices" }</h1>}, - Route::ViewInvoice => html! {<h1>{ "View a Single Invoice" }</h1>}, - Route::Settings => html! {<h1>{ "Settings Page" }</h1>}, + Route::Settings => html! {<h1>{ "Settings Page (To Be Added)" }</h1>}, + Route::About => html! {<h1>{ "About Page (To Be Added)" }</h1>}, Route::NotFound => html! {<h1>{"404 Page Not Found"}</h1>}, } |