From aaa4f2a5f272d0d712d419d4c0efc1054e38fe75 Mon Sep 17 00:00:00 2001 From: ChrisTruedson Date: Sun, 15 Oct 2023 22:37:07 -0400 Subject: [PATCH 1/2] Created another form page and template based on the template --- src/components/AppHeader.vue | 3 + src/router/index.js | 6 ++ src/views/AdminCreateCourseView.vue | 108 ++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 src/views/AdminCreateCourseView.vue diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index f2d18a2..be86932 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -17,6 +17,9 @@ --> Form Example +
  • + Create Course +
  • diff --git a/src/router/index.js b/src/router/index.js index b699737..9b37944 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,6 +5,7 @@ import { createRouter, createWebHistory } from "vue-router"; import HomeView from "../views/HomeView.vue"; import FormView from "../views/FormView.vue"; import FetchView from "../views/FetchView.vue"; +import AdminCreateCourseView from "../views/AdminCreateCourseView.vue"; const router = createRouter({ // the history mode determines how vue router interacts with the url. @@ -35,6 +36,11 @@ const router = createRouter({ name: "fetch", component: FetchView, }, + { + path: "/admin/createcourse", + name: "admincreatecourse", + component: AdminCreateCourseView, + }, ], }); diff --git a/src/views/AdminCreateCourseView.vue b/src/views/AdminCreateCourseView.vue new file mode 100644 index 0000000..d69658a --- /dev/null +++ b/src/views/AdminCreateCourseView.vue @@ -0,0 +1,108 @@ + + + + + From 62cc76a6b623437c71c85ddabdb0c91d1dfc9376 Mon Sep 17 00:00:00 2001 From: ChrisTruedson Date: Sun, 15 Oct 2023 23:51:11 -0400 Subject: [PATCH 2/2] Created a basic new course page with a basic HTML form setup and CSS --- src/views/AdminCreateCourseView.vue | 184 ++++++++++++++++------------ 1 file changed, 104 insertions(+), 80 deletions(-) diff --git a/src/views/AdminCreateCourseView.vue b/src/views/AdminCreateCourseView.vue index d69658a..a568171 100644 --- a/src/views/AdminCreateCourseView.vue +++ b/src/views/AdminCreateCourseView.vue @@ -2,107 +2,131 @@

    Create Course

    - This page includes a simple todo list application, which showcases the - state management and form capabilities of vue. + Admin - Create Course Page

    -
    - - + + + + +

    Required: Should consist of 4 letters A-Z

    + + +

    Required: Should consist of 4 numbers 0-9

    + + +

    Required: Should not be longer than 250 characters in length

    + + +

    Required

    + + +

    Required

    + + +

    Required

    + + +

    Required

    + + +

    Required: Can be any whole credit amount from 1.00 - 15.00

    + + +

    Required

    +
    + + +

    Required

    +
    + + +

    Required

    + + +

    Optional

    + + +

    Optional

    +
    - -
      - -
    • - {{ todo }} - -
    • - - -
    • -

      No Todos Yet, go ahead and create one!

      -
    • -
    -
    + - -