summaryrefslogtreecommitdiff
path: root/views/recipe/editSteps.ejs
blob: 1df2a68bfb6813d867212e390c3d019945ad988a (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'>Edit Recipe Steps</h4>
            <form id='createForm' action="/recipe/<%= recipe._id %>/step/<%= step._id %>?_method=PUT" method='POST'>
                <label id='added<%= step.number %>' for="">Step Number:</label>
                <input id='added<%= step.number %>' name='step[number]' type='text' value='<%= step.number %>'>
                <label id='added<%= step.number %>' for="">Step instructions:</label>
                <textarea id='added<%= step.number %>' name='step[step]'><%= step.step %></textarea>
                <button><i class='fas fa-edit'></i></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') %>