Merge commit '4c4093b09d56612a8e4a19c1ecdba3674335df01'
This commit is contained in:
@@ -41,6 +41,8 @@ INSTALLED_APPS = [
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
|
||||
'homepage'
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
||||
@@ -17,6 +17,9 @@ Including another URLconf
|
||||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
|
||||
from homepage import views as homepage
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('', homepage.index, name="homepage")
|
||||
]
|
||||
|
||||
0
app/homepage/__init__.py
Normal file
0
app/homepage/__init__.py
Normal file
3
app/homepage/admin.py
Normal file
3
app/homepage/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
app/homepage/apps.py
Normal file
6
app/homepage/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class HomepageConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'homepage'
|
||||
0
app/homepage/migrations/__init__.py
Normal file
0
app/homepage/migrations/__init__.py
Normal file
3
app/homepage/models.py
Normal file
3
app/homepage/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
37
app/homepage/templates/homepage.html
Normal file
37
app/homepage/templates/homepage.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>WELCOME</title>
|
||||
<link
|
||||
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
|
||||
rel="stylesheet"
|
||||
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
|
||||
crossorigin="anonymous"
|
||||
/>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="row my-5 align-items-center justify-content-center">
|
||||
<div class="col-8 col-lg-4 col-xl-3">
|
||||
<div class="card w-75">
|
||||
<div class="card-header text-center">
|
||||
<i class="bi bi-stopwatch" style="font-size: 4rem"></i>
|
||||
</div>
|
||||
<div class="card-body text-center">
|
||||
<h5 class="card-title">Odoo godziny</h5>
|
||||
<p class="card-text text-muted">Oblicz godziny pracy na podstawie tabeli odoo.</p>
|
||||
|
||||
<a href="#" class="btn btn-outline-primary">ENTER</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
</body>
|
||||
</html>
|
||||
3
app/homepage/tests.py
Normal file
3
app/homepage/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
5
app/homepage/views.py
Normal file
5
app/homepage/views.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
def index(request):
|
||||
return render(request, "homepage.html")
|
||||
Reference in New Issue
Block a user