summaryrefslogtreecommitdiff
path: root/templates/inventory/new_product.html
blob: a8d48680eaf5666e9f602218f7fe9b6ba0fecebf (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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html>
<head>
    <title>Home</title>
    <style type="text/css">
        *,
        *::before,
        *::after {
          box-sizing: border-box;
        }
        html {
          background-color: #f0f0f0;
        }
        body {
          color: #999999;
          font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
          font-style: normal;
          font-weight: 400;
          letter-spacing: 0;
          padding: 1rem;
          text-rendering: optimizeLegibility;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
          -moz-font-feature-settings: "liga" on;
        }
        .sidenav {
          height: 100%;
          width: 160px;
          position: fixed;
          z-index: 1;
          top: 0;
          left: 0;
          background-color: #111;
          overflow-x: hidden;
          padding-top: 20px;
        }

        .sidenav a {
          padding: 6px 8px 6px 16px;
          text-decoration: none;
          font-size: 25px;
          color: #818181;
          display: block;
        }

        .sidenav a:hover {
          color: #f1f1f1;
        }
        .main {
          margin-left: 160px;
          font-size: 28px;
          padding: 0px 10px;
        }
        @media screen and (max-height: 450px) {
          .sidenav {padding-top: 15px;}
          .sidenav a {font-size: 18px;}
        }
        #contact {width:100%; height:100%; margin 0 auto; background: #DDD; }

        .container {width:960px; height:auto; margin: 0 auto; padding: 50px 0;}

        #contact .container form input,
        #contact .container form textarea {
          width:97.4%;
          height:30px;
          padding:5px 10px;
          font-size: 12px;
          color:#999;
          letter-spacing:1px;
          background: #FFF;
          border:2px solid #FFF;
          margin-bottom:25px;
          -webkit-transition:all .1s ease-in-out;
          -moz-transition:all .1s ease-in-out;
          -ms-transition:all .1s ease-in-out;
          -o-transition:all .1s ease-in-out;
          transition:all .1s ease-in-out;}

        #contact .container form input:focus,
        #contact .container form textarea:focus {
          border:2px solid #dd4545;
          color:#999;}

        #contact .container form textarea {
          height:150px;}

        #contact .container form .submit {
          width:100%;
          padding:5px 10px;
          font-size: 12px;
          letter-spacing:1px;
          background:#dd4545;
          height:40px;
          text-transform:uppercase;
          letter-spacing:1px;
          color:#FFF;
          border:2px solid #b43838;
          -webkit-transition:all .1s ease-in-out;
          -moz-transition:all .1s ease-in-out;
          -ms-transition:all .1s ease-in-out;
          -o-transition:all .1s ease-in-out;
          transition:all .1s ease-in-out;}

        #contact .container form .submit:hover {
          color:#FFF;
          border:2px solid #dd4545;
          background: #b43838;
          cursor:pointer;}

        #contact .container form .required {
          color:#b43838;}
    </style>
</head>
<body>

<div class="sidenav">
    <a href="/home">Home</a>
    <a href="/logout">Logout</a></li> 
</div>

<div class="main">
    <center>
        <h1>ADD A NEW PRODUCT</h1>
    </center>

    <section id="contact">
        <div class="container">
            <form name="add_product_form" action="/add_product/" method="post" enctype="multipart/form-data">

                {% csrf_token %}
                <input type="text" name="name" id="name" placeholder="Name" required>
                <textarea type="text" name="description" id="description" placeholder="Description" required></textarea>
                <input type="text" name="price" id="price" placeholder="Price" required>
                <input type="number" name="starting_inventory" id="starting_inventory" placeholder="Starting Inventory" required>
                <input type="number" name="minimum_required" id="minimum_required" placeholder="Minimum Quantity Required" required>
                <button name="add_product" type="submit" class="submit">Add Product</button>
              
            </form>
        </div>
    </section>

</div>

</body>
</html>