-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAdd Recipe.aspx
71 lines (61 loc) · 3.09 KB
/
Add Recipe.aspx
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<%@ Page Title="Add Recipe" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeFile="Add Recipe.aspx.cs" Inherits="Recipehub.Add_Recipe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
<link rel="stylesheet" href="stylesheets/add form.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<main>
<div class="add-form-container">
<div class="add-input upload-img flex-column">
<div class="img-previewer-container">
<img src="assets/img/banner.jpg" alt="previewed image" class="img-previewer" />
</div>
<asp:FileUpload ID="ImgUpload" runat="server" class="fileUpload-previewer" />
<label for="MainContent_ImgUpload">Upload Photo<%= err %></label>
</div>
<div class="add-form add-form_left">
<div class="add-input flex-column">
<label id="product" for="MainContent_RecName"><%= prod_name %></label>
</div>
<div class="add-input flex-column">
<label for="MainContent_RecTime">
<i class="fa-solid fa-clock"></i>
Time
</label>
<asp:TextBox ID="RecTime" runat="server" type="number" placeholder="Minutes"></asp:TextBox>
</div>
<div class="add-input flex-column">
<label for="MainContent_RecCost">
<i class=" fa-solid fa-dollar-sign"></i>
Cost
</label>
<asp:TextBox ID="RecCost" runat="server" type="number" placeholder="EGP"></asp:TextBox>
</div>
<div class="add-input flex-column">
<label for="MainContent_RecVideo">
<i class="fas fa-link"></i>
Link video
</label>
<asp:TextBox ID="RecVideo" runat="server" placeholder="URL"></asp:TextBox>
</div>
</div>
<div class="vertical-separator"></div>
<div class="add-form add-form_right">
<div class="add-input flex-column">
<label for="MainContent_RecIngred">
<i class="fa-solid fa-clipboard"></i>
Ingredients
</label>
<asp:TextBox ID="RecIngred" runat="server" TextMode="MultiLine" required></asp:TextBox>
</div>
<div class="add-input flex-column">
<label for="MainContent_RecMethod">
Method
</label>
<asp:TextBox ID="RecMethod" runat="server" TextMode="MultiLine" required></asp:TextBox>
</div>
</div>
<asp:Button ID="Submit" runat="server" Text="Add Recipe" OnClick="Submit_Click" />
</div>
</main>
<script src="scripts/img-preview.js"></script>
</asp:Content>