aboutsummaryrefslogtreecommitdiff
path: root/src/app/manage
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-30 01:06:39 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-30 01:06:39 +0530
commit2fdcb7c79e8333c0fa9c14e34da5eaebe96e32b4 (patch)
tree919a0065276553b16c930885312008d2574fe114 /src/app/manage
first commit
Diffstat (limited to 'src/app/manage')
-rw-r--r--src/app/manage/mod.rs68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/app/manage/mod.rs b/src/app/manage/mod.rs
new file mode 100644
index 0000000..17b7b16
--- /dev/null
+++ b/src/app/manage/mod.rs
@@ -0,0 +1,68 @@
+/* openbills-web - Web client for Libre Billing Software
+ * Copyright (C) 2023 Vidhu Kant Sharma <vidhukant@vidhukant.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+use yew::prelude::*;
+use yew_icons::IconId;
+
+use crate::app::Route;
+use crate::components::navigation_menu::*;
+
+#[function_component(ManageMenuPage)]
+pub fn manage_menu_page() -> Html {
+ html! {
+ <div id={"manage-menu-page"}>
+ <NavigationMenu>
+ <menu_header::MenuHeader>
+ <h1>{ "Manage OpenBills Data" }</h1>
+ <p>{ "Here you can add/modify/delete OpenBills data (clients, invoices, etc)" }</p>
+ </menu_header::MenuHeader>
+
+ <menu_items::MenuItems>
+ <menu_item::MenuItem
+ icon={IconId::FontAwesomeSolidUser}
+ label={"Edit Clients"}
+ to={Route::ManageClients}
+ />
+
+ <menu_item::MenuItem
+ icon={IconId::FontAwesomeSolidIndustry}
+ label={"Edit Brands"}
+ to={Route::ManageBrands}
+ />
+
+ <menu_item::MenuItem
+ icon={IconId::FontAwesomeSolidCartShopping}
+ label={"Edit Items"}
+ to={Route::ManageItems}
+ />
+
+ <menu_item::MenuItem
+ icon={IconId::FontAwesomeSolidFileInvoice}
+ label={"Edit Invoices"}
+ to={Route::ManageInvoices}
+ />
+
+ <menu_item::MenuItem
+ icon={IconId::FontAwesomeSolidHouseChimney}
+ label={"Home"}
+ to={Route::Home}
+ />
+ </menu_items::MenuItems>
+ </NavigationMenu>
+ </div>
+ }
+}