forked from Mohammed4mach/Recipehub-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdd Product.aspx
45 lines (38 loc) · 2.08 KB
/
Add Product.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
<%@ Page Title="Add Product" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeFile="Add Product.aspx.cs" Inherits="Recipehub.Add_Product" %>
<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</label>
</div>
<div class="add-form add-form_left">
<div class="add-input flex-column">
<label id="product" for="MainContent_ProdName">Product Name <%= err %></label>
<asp:TextBox ID="ProdName" runat="server" required></asp:TextBox>
</div>
<div class="add-input flex-column">
<label for="MainContent_ProdPrice">
<i class=" fa-solid fa-dollar-sign"></i>
Price</label>
<asp:TextBox ID="ProdPrice" runat="server" type="number" placeholder="EGP"></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_ProdDescrip">Description</label>
<asp:TextBox ID="ProdDescrip" runat="server" TextMode="MultiLine" required></asp:TextBox>
</div>
</div>
<asp:Button ID="Submit" runat="server" Text="Add Product" OnClick="Submit_Click" />
</div>
</main>
<script src="scripts/img-preview.js"></script>
</asp:Content>