Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
myproject
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
phatiphan.th.63
myproject
Commits
fe0f3615
Commit
fe0f3615
authored
Dec 07, 2022
by
phatiphan.th.63
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
project
parent
5e7396fe
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
71 additions
and
18 deletions
+71
-18
urls.cpython-39.pyc
myapp/__pycache__/urls.cpython-39.pyc
+0
-0
views.cpython-39.pyc
myapp/__pycache__/views.cpython-39.pyc
+0
-0
base.html
myapp/templates/base.html
+9
-18
home.html
myapp/templates/home.html
+17
-0
register.html
myapp/templates/register.html
+41
-0
urls.py
myapp/urls.py
+1
-0
views.py
myapp/views.py
+3
-0
No files found.
myapp/__pycache__/urls.cpython-39.pyc
View file @
fe0f3615
No preview for this file type
myapp/__pycache__/views.cpython-39.pyc
View file @
fe0f3615
No preview for this file type
myapp/templates/base.html
View file @
fe0f3615
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title>
POS FOOD
</title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<script
src=
"https://cdn.tailwindcss.com"
></script>
<title>
POS FOOD
</title>
<script
src=
"https://cdn.tailwindcss.com"
></script>
<link
rel=
"preconnect"
href=
"https://fonts.googleapis.com"
>
<link
rel=
"preconnect"
href=
"https://fonts.gstatic.com"
crossorigin
>
<link
href=
"https://fonts.googleapis.com/css2?family=Prompt&display=swap"
rel=
"stylesheet"
>
<script
src=
"https://unpkg.com/flowbite@1.5.3/dist/datepicker.js"
></script>
<style>
body
{
font-family
:
'Prompt'
,
sans-serif
;
}
</style>
</head>
</head>
<body
class=
"bg-white"
>
<body>
<main
class=
"min-h-screen bg-white-200 text-center"
>
{% block main %} {% endblock %}
{% block main %}
{% endblock %}
</main>
</body>
</body>
</html>
</html>
\ No newline at end of file
myapp/templates/home.html
0 → 100644
View file @
fe0f3615
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Project
</title>
<script
src=
"https://cdn.tailwindcss.com"
></script>
</head>
<body>
{% include "components/header1.html" %}
<main
class=
"min-h-screen bg-white-200 text-center"
>
{% block main %}
{% endblock %}
</main>
</body>
</html>
\ No newline at end of file
myapp/templates/register.html
0 → 100644
View file @
fe0f3615
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<script
src=
"https://cdn.tailwindcss.com"
></script>
<title>
Register
</title>
</head>
<body>
<section
class=
"bg-gray-50 dark:bg-gray-900"
>
<div
class=
"flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0"
>
<div
class=
"w-full bg-white rounded-lg shadow dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700"
>
<div
class=
"p-6 space-y-4 md:space-y-6 sm:p-8"
>
<h1
class=
"text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl dark:text-white"
>
Create and account
</h1>
<form
method=
"post"
class=
"space-y-4 md:space-y-6"
action=
""
>
{% csrf_token %}
<div>
<label
for=
"email"
class=
"block mb-2 text-sm font-medium text-gray-900 dark:text-white"
>
Username
</label>
<input
type=
"email"
name=
"email"
id=
"email"
class=
"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
placeholder=
"Username"
required=
""
>
</div>
<div>
<label
for=
"password"
class=
"block mb-2 text-sm font-medium text-gray-900 dark:text-white"
>
Password
</label>
<input
type=
"password"
name=
"password"
id=
"password"
placeholder=
"••••••••"
class=
"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
required=
""
>
</div>
<div>
<label
for=
"confirm-password"
class=
"block mb-2 text-sm font-medium text-gray-900 dark:text-white"
>
Confirm password
</label>
<input
type=
"password"
name=
"confirm-password"
id=
"confirm-password"
placeholder=
"••••••••"
class=
"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
required=
""
>
</div>
<div
class=
"flex items-start"
>
</div>
<button
type=
"submit"
class=
"w-full bg-blue-600 text-white bg-primary-600 hover:bg-primary-700 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800"
>
Create an account
</button>
<button
class=
"center shadow-xl text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:bg-blue-600 dark:hover:bg-blue-700 focus:outline-none dark:focus:ring-blue-800"
><a
href=
"/index"
>
Home
</a></button>
</form>
</div>
</div>
</div>
</section>
</body>
</html>
\ No newline at end of file
myapp/urls.py
View file @
fe0f3615
...
@@ -7,5 +7,6 @@ from myapp.models import Post
...
@@ -7,5 +7,6 @@ from myapp.models import Post
urlpatterns
=
[
urlpatterns
=
[
path
(
"index"
,
views
.
index
),
path
(
"index"
,
views
.
index
),
path
(
"login"
,
views
.
login
),
path
(
"login"
,
views
.
login
),
path
(
"register"
,
views
.
register
),
path
(
'contact'
,
views
.
contact
),
path
(
'contact'
,
views
.
contact
),
]
]
myapp/views.py
View file @
fe0f3615
...
@@ -9,3 +9,6 @@ def contact(req):
...
@@ -9,3 +9,6 @@ def contact(req):
def
login
(
req
):
def
login
(
req
):
return
render
(
req
,
'login.html'
)
return
render
(
req
,
'login.html'
)
def
register
(
req
):
return
render
(
req
,
'register.html'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment