summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorshivam kohli <kohlishivam5522@gmail.com>2018-05-19 16:25:16 +0530
committershivam kohli <kohlishivam5522@gmail.com>2018-05-19 16:25:16 +0530
commit03c15c038ea802395734b55a965371d06e0117e3 (patch)
treef15ba2fac78846ac70282ac86f42f2f57a7d1315 /templates
downloadcodeless-03c15c038ea802395734b55a965371d06e0117e3.tar.gz
codeless-03c15c038ea802395734b55a965371d06e0117e3.tar.bz2
codeless-03c15c038ea802395734b55a965371d06e0117e3.zip
basic login
Diffstat (limited to 'templates')
-rw-r--r--templates/inventory/home.html11
-rw-r--r--templates/inventory/index.html32
-rw-r--r--templates/inventory/login.html49
-rw-r--r--templates/inventory/signup.html45
4 files changed, 137 insertions, 0 deletions
diff --git a/templates/inventory/home.html b/templates/inventory/home.html
new file mode 100644
index 0000000..424bab3
--- /dev/null
+++ b/templates/inventory/home.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Home</title>
+</head>
+<body>
+<h1>Welcome!!!!</h1>
+<h4>You are successfully loged in</h4>
+<a href="/logout">logout</a></li>
+</body>
+</html> \ No newline at end of file
diff --git a/templates/inventory/index.html b/templates/inventory/index.html
new file mode 100644
index 0000000..ab79a2b
--- /dev/null
+++ b/templates/inventory/index.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Login</title>
+</head>
+<body>
+<div style="background: linear-gradient(0deg, #F6F0E1 20%, rgba(200,200,200,0) 100%); height: 100%"; >
+ <div>
+ <div>
+ <p>Login</p>
+ </div>
+
+ <form method="post">
+ <div>
+ <span>Login</span>
+ <a href="/login">Log in</a>
+ </div>
+ <div>
+ <span>New User?</span>
+ <a href="/signup">Create Account</a>
+ </div>
+ </div>
+
+ </fieldset>
+ </form>
+
+ </div>
+</div>
+</div>
+
+</body>
+</html> \ No newline at end of file
diff --git a/templates/inventory/login.html b/templates/inventory/login.html
new file mode 100644
index 0000000..d407b3f
--- /dev/null
+++ b/templates/inventory/login.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Login</title>
+</head>
+<body>
+<div style="background: linear-gradient(0deg, #F6F0E1 20%, rgba(200,200,200,0) 100%); height: 100%"; >
+ <div>
+ <div>
+ <p>Login</p>
+ </div>
+
+ <form method="post">
+ {% csrf_token %}
+
+ <fieldset>
+ {% for field in form %}
+ <div>
+ <p>
+ {{ field.label_tag }}<br>
+ {{ field }}
+ {% if field.help_text %}
+ <small style="color: grey">{{ field.help_text }}</small>
+ {% endif %}
+ </div>
+
+ {% endfor %}
+
+ </fieldset>
+ <fieldset>
+ {{error_message}}
+ <button type="submit">Log in</button>
+
+ <div>
+ <div>
+ <span>New User?</span>
+ <a href="/signup">Create Account</a>
+ </div>
+ </div>
+
+ </fieldset>
+ </form>
+
+ </div>
+</div>
+</div>
+
+</body>
+</html> \ No newline at end of file
diff --git a/templates/inventory/signup.html b/templates/inventory/signup.html
new file mode 100644
index 0000000..5a0137f
--- /dev/null
+++ b/templates/inventory/signup.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Sign Up</title>
+</head>
+<body>
+<div <div style="background: linear-gradient(0deg, #F6F0E1 20%, rgba(200,200,200,0) 100%); height: 100%"; >
+ <h1>Sign up</h1>
+ {% block content %}
+
+ <form method="post" enctype="multipart/form-data">
+ {% csrf_token %}
+ {% for field in form %}
+ <p>
+ {{ field.label_tag }}<br>
+ {{ field }}
+ {% if field.help_text %}
+ <small style="color: grey">{{ field.help_text }}</small>
+ {% endif %}
+ {% for error in field.errors %}
+ <p style="color: red">{{ error }}</p>
+ {% endfor %}
+ </p>
+ {% endfor %}
+
+ {% for field in details_form %}
+ <p>
+ {{ field.label_tag }}<br>
+ {{ field }}
+ {% if field.help_text %}
+ <small style="color: grey">{{ field.help_text }}</small>
+ {% endif %}
+ {% for error in field.errors %}
+ <p style="color: red">{{ error }}</p>
+ {% endfor %}
+ </p>
+ {% endfor %}
+ <button type="submit">Sign up</button>
+ </form>
+
+ <div>
+ {% endblock %}
+</div>
+</body>
+</html> \ No newline at end of file