diff options
author | Mark Powers <markppowers0@gmail.com> | 2019-02-02 10:51:10 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2019-02-02 10:51:10 -0500 |
commit | c21eba4246be5c9831705a86592b45c70648c167 (patch) | |
tree | 0e4470f574ab77287a1ad40f196b1643dd0b1c7d /src/html | |
parent | d1162d1bd12cbb3eae9889768adbbb293852c066 (diff) |
Add admin panel
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/admin.html | 2 | ||||
-rw-r--r-- | src/html/bread.html | 2 | ||||
-rw-r--r-- | src/html/index.html | 2 | ||||
-rw-r--r-- | src/html/login.html | 25 |
4 files changed, 28 insertions, 3 deletions
diff --git a/src/html/admin.html b/src/html/admin.html index 7c87ba6..d0d2e81 100644 --- a/src/html/admin.html +++ b/src/html/admin.html @@ -27,7 +27,7 @@ <option value="index">Index</option> </select> </div> - <input type="submit"> + <input type="submit" value="Submit"> </form> </div> </div> diff --git a/src/html/bread.html b/src/html/bread.html index e6eeb47..1ce1478 100644 --- a/src/html/bread.html +++ b/src/html/bread.html @@ -18,7 +18,7 @@ }, created() { fetch(new Request('/posts/bread')).then(response => response.json()) - .then(response => this.posts = response.data); + .then(response => this.posts = response); } }); } diff --git a/src/html/index.html b/src/html/index.html index c7e398b..01f6e4e 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -19,7 +19,7 @@ }, created() { fetch(new Request('/posts/index')).then(response => response.json()) - .then(response => this.posts = response.data); + .then(response => this.posts = response); } }); } diff --git a/src/html/login.html b/src/html/login.html new file mode 100644 index 0000000..53a2d06 --- /dev/null +++ b/src/html/login.html @@ -0,0 +1,25 @@ +<!doctype html> +<html lang="en"> + +<head> + <title>Mark's Kitchen - Login</title> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> + <link rel="stylesheet" type="text/css" href="/css/bootstrap.css"> + <link rel="stylesheet" type="text/css" href="/css/styles.css"> +</head> + +<body> + <div> + <h1>Login</h1> + <div class="form"> + <form action="/login" method="post" enctype="application/x-www-form-urlencoded"> + <input type="text" placeholder="Enter Username" name="username" required> + <input type="password" placeholder="Enter Password" name="password" required> + <input type="submit"> + </form> + </div> + </div> +</body> + +</html>
\ No newline at end of file |