summaryrefslogtreecommitdiff
path: root/views/recipe/createStep.ejs
blob: 99812f48c099d68b21de101b7e2b7096749042d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<%- include('../partials/header') %>
<%- include('../partials/nav') %>

<div class='content'>
    <%- include('../partials/categories') %>
    <div class='main'>
        <div class='createCard'>
            <h4 style='text-align: center'>Create Recipe Step</h4>
            <form id='createForm' action="/recipe/<%= recipe._id %>/step" method='POST'>
                <label for="">Step Number:</label>
                <input name='newStep[number]' type='text'>
                <label for="">Step instructions:</label>
                <textarea name='newStep[step]'></textarea>
                <button>Edit</button>
            </form>
        </div>
    </div>
    <%- include('../partials/popular') %> 
</div>

<script type='text/javascript'>
    const prevent = (e) => {
        e.preventDefault();
    }
</script>

<%- include('../partials/magicCats') %>
<%- include('../partials/magicPops') %>
<%- include('../partials/footer') %>