diff --git a/src/pages/admin/edit.rs b/src/pages/admin/edit.rs
index 72c6e53..210430a 100644
--- a/src/pages/admin/edit.rs
+++ b/src/pages/admin/edit.rs
@@ -11,7 +11,7 @@ use crate::{
components::{
admin_nav_bar::AdminNavigationBar,
},
- pages::admin::{fields::project::ProjectFields},
+ pages::admin::{fields::{project::ProjectFields, unit::UnitFields, agent::AgentFields}},
};
/// All of the editing actions of the admin panel will lead to here. This should take an id of anything. A unit, a project, an agent. And its corresponding ID.
@@ -61,9 +61,9 @@ pub fn edit_page(props: &AdminEditPageProps) -> Html {
{
match props.edit_item {
- EditItem::Agent => {html! {}},
+ EditItem::Agent => {html! {
}},
EditItem::Project => {html! {
}},
- EditItem::Unit(_) => {html! {}},
+ EditItem::Unit(_) => {html! { }},
}
}
diff --git a/src/pages/admin/fields/agent.rs b/src/pages/admin/fields/agent.rs
new file mode 100644
index 0000000..e7ac238
--- /dev/null
+++ b/src/pages/admin/fields/agent.rs
@@ -0,0 +1,17 @@
+use jl_types::domain::agent::Agent;
+use yew::prelude::*;
+
+use crate::pages::admin::edit::EditType;
+
+#[derive(Properties, PartialEq, Clone)]
+pub struct AgentFieldsProps {
+ pub agent: Option,
+ pub edittype: EditType,
+}
+
+#[function_component(AgentFields)]
+pub fn agent_fields() -> Html {
+ html! {
+
+ }
+}
\ No newline at end of file
diff --git a/src/pages/admin/fields/mod.rs b/src/pages/admin/fields/mod.rs
index 432f815..8173d63 100644
--- a/src/pages/admin/fields/mod.rs
+++ b/src/pages/admin/fields/mod.rs
@@ -1 +1,3 @@
-pub mod project;
\ No newline at end of file
+pub mod project;
+pub mod unit;
+pub mod agent;
\ No newline at end of file
diff --git a/src/pages/admin/fields/unit.rs b/src/pages/admin/fields/unit.rs
new file mode 100644
index 0000000..b743036
--- /dev/null
+++ b/src/pages/admin/fields/unit.rs
@@ -0,0 +1,17 @@
+use jl_types::domain::unit::Unit;
+use yew::prelude::*;
+
+use crate::pages::admin::edit::EditType;
+
+#[derive(Properties, PartialEq, Clone)]
+pub struct UnitFieldsProps {
+ pub unit: Option,
+ pub edittype: EditType,
+}
+
+#[function_component(UnitFields)]
+pub fn unit_fields() -> Html {
+ html! {
+
+ }
+}
\ No newline at end of file