From 8170d5bc0544fbc02155b8b57751cd1dec33dd69 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 6 Apr 2021 10:57:50 +0000 Subject: initial public commit --- views/recipe/create.ejs | 51 ++++++++++++++++++++++++++++++++ views/recipe/createStep.ejs | 29 ++++++++++++++++++ views/recipe/edit.ejs | 71 +++++++++++++++++++++++++++++++++++++++++++++ views/recipe/editSteps.ejs | 29 ++++++++++++++++++ views/recipe/show.ejs | 55 +++++++++++++++++++++++++++++++++++ views/recipe/upload.ejs | 26 +++++++++++++++++ 6 files changed, 261 insertions(+) create mode 100644 views/recipe/create.ejs create mode 100644 views/recipe/createStep.ejs create mode 100644 views/recipe/edit.ejs create mode 100644 views/recipe/editSteps.ejs create mode 100644 views/recipe/show.ejs create mode 100644 views/recipe/upload.ejs (limited to 'views/recipe') diff --git a/views/recipe/create.ejs b/views/recipe/create.ejs new file mode 100644 index 0000000..a6921a8 --- /dev/null +++ b/views/recipe/create.ejs @@ -0,0 +1,51 @@ +<%- include('../partials/header') %> +<%- include('../partials/nav') %> + +
+ <%- include('../partials/categories') %> +
+
+

Create Recipe

+
+ + + + + + Upload image + <% if(files) { %> + + <% } %> + + + + + +
+ +
+ + +
+
+ +
+
+
+ <%- include('../partials/popular') %> +
+ + + + +<%- include('../partials/magicCats') %> +<%- include('../partials/magicPops') %> +<%- include('../partials/footer') %> diff --git a/views/recipe/createStep.ejs b/views/recipe/createStep.ejs new file mode 100644 index 0000000..99812f4 --- /dev/null +++ b/views/recipe/createStep.ejs @@ -0,0 +1,29 @@ +<%- include('../partials/header') %> +<%- include('../partials/nav') %> + +
+ <%- include('../partials/categories') %> +
+
+

Create Recipe Step

+
+ + + + + +
+
+
+ <%- include('../partials/popular') %> +
+ + + +<%- include('../partials/magicCats') %> +<%- include('../partials/magicPops') %> +<%- include('../partials/footer') %> diff --git a/views/recipe/edit.ejs b/views/recipe/edit.ejs new file mode 100644 index 0000000..d72b3e4 --- /dev/null +++ b/views/recipe/edit.ejs @@ -0,0 +1,71 @@ +<%- include('../partials/header') %> +<%- include('../partials/nav') %> + +
+ <%- include('../partials/categories') %> +
+
+

Edit Recipe Details and Ingredients

+
+ + + + Upload image + <% if(files) { %> + + <% } %> + + + + + +
+ +
+ +
+
+
+

Instructions (<%= recipe.steps.length %> steps)

+ <% recipe.steps.map(s => { %> +
+
+
Step <%= s.number %>:
+

<%= s.step %>

+
+
+
+ +
+
+ +
+
+
+ <% }) %> +
+
+ +
+
+ <%- include('../partials/popular') %> +
+ + + +<%- include('../partials/magicCats') %> +<%- include('../partials/magicPops') %> +<%- include('../partials/footer') %> diff --git a/views/recipe/editSteps.ejs b/views/recipe/editSteps.ejs new file mode 100644 index 0000000..1df2a68 --- /dev/null +++ b/views/recipe/editSteps.ejs @@ -0,0 +1,29 @@ +<%- include('../partials/header') %> +<%- include('../partials/nav') %> + +
+ <%- include('../partials/categories') %> +
+
+

Edit Recipe Steps

+
+ + + + + +
+
+
+ <%- include('../partials/popular') %> +
+ + + +<%- include('../partials/magicCats') %> +<%- include('../partials/magicPops') %> +<%- include('../partials/footer') %> diff --git a/views/recipe/show.ejs b/views/recipe/show.ejs new file mode 100644 index 0000000..9fcc771 --- /dev/null +++ b/views/recipe/show.ejs @@ -0,0 +1,55 @@ +<%- include('../partials/header') %> +<%- include('../partials/nav') %> + +
+ <%- include('../partials/categories') %> +
+

<%= recipe.title %>, + by + <%= recAuthor.bio.name %> +

+
+
+ recipe + <% if(usr) { %> + <% if(account.favorites.includes(recipe._id)) { %> +
+ +
+ <% } else { %> +
+ +
+ <% } %> + <% } %> +
+
+
Ingredients:
+
    + <% ingridients.map(i => { %> +
  • <%= i %>
  • + <% }) %> +
+
+
+

+ + <%= recipe.category %> + +

+
+

Instructions (<%= recipe.steps.length %> steps)

+ <% recipe.steps.map(s => { %> +
+
Step <%= s.number %>:
+

<%= s.step %>

+
+ <% }) %> +
+
+ <%- include('../partials/popular') %> +
+ +<%- include('../partials/magicCats') %> +<%- include('../partials/magicPops') %> +<%- include('../partials/footer') %> diff --git a/views/recipe/upload.ejs b/views/recipe/upload.ejs new file mode 100644 index 0000000..e8a9c81 --- /dev/null +++ b/views/recipe/upload.ejs @@ -0,0 +1,26 @@ +<%- include('../partials/header') %> +<%- include('../partials/nav') %> + +
+ <%- include('../partials/categories') %> +
+
+

Upload Recipe Image

+
+ + +
+
+
+ <%- include('../partials/popular') %> +
+ + + +<%- include('../partials/magicCats') %> +<%- include('../partials/magicPops') %> +<%- include('../partials/footer') %> -- cgit v1.2.3