diff --git a/src/components/admin/resources/form.tsx b/src/components/admin/resources/form.tsx
new file mode 100644
index 0000000..cfce9d6
--- /dev/null
+++ b/src/components/admin/resources/form.tsx
@@ -0,0 +1,98 @@
+import { type AuditoryResource } from "@prisma/client";
+import Image from "next/image";
+import { PencilSquareIcon } from "@heroicons/react/24/solid";
+
+/**
+ * Renders the image selector for resource form.
+ *
+ * File needs to be path relative to resource_logos/
+ */
+const SelectImageInput = ({ file }: { file?: string }) => {
+ return (
+ <>
+
+
+ >
+ );
+};
+
+/**
+ * Contains the input fields for editing the links for a resource
+ * @returns
+ */
+const ResourceLinkSubForm = ({ resource }: { resource?: AuditoryResource }) => {
+ return (
+
+
Links
+
+ {/** Insert existing links here */}
+
+
+
+ );
+};
+
+/**
+ * Resource summary inputs - ie description, manufacturer, etc.
+ */
+const ResourceSummarySubForm = ({
+ resource,
+}: {
+ resource?: AuditoryResource;
+}) => {
+ return (
+ <>
+
+
+ {/** Manufacturer info */}
+
+
+
+ Ages {/** Age range here */}
+
+
+ >
+ );
+};
+
+const ResourceForm = ({ resource }: { resource?: AuditoryResource }) => {
+ return (
+
+ );
+};
+
+export { ResourceForm };
diff --git a/src/pages/resources/[id]/edit.tsx b/src/pages/resources/[id]/edit.tsx
index 0f31e26..a3b286c 100644
--- a/src/pages/resources/[id]/edit.tsx
+++ b/src/pages/resources/[id]/edit.tsx
@@ -7,12 +7,12 @@ import {
} from "next";
import Footer from "~/components/Footer";
import Header from "~/components/Header";
-import { ResourceInfo, ResourceDescription } from "~/components/ResourceTable";
import { AdminBarLayout } from "~/components/admin/ControlBar";
import { AdminActionLink } from "~/components/admin/common";
import { appRouter } from "~/server/api/root";
import { prisma } from "~/server/db";
import Image from "next/image";
+import { ResourceForm } from "~/components/admin/resources/form";
export const getServerSideProps: GetServerSideProps<{
resource: AuditoryResource;
@@ -78,28 +78,7 @@ const EditResourcePage = (
]}
>
-
-
-
-
-
-
-
-
-
- Ages {resource.ages.min}
- {resource.ages.max >= 100 ? "+" : `-${resource.ages.max}`}
-
-
-
-
+