icon and title

This commit is contained in:
Alicja Cięciwa
2020-11-11 21:20:23 +01:00
parent c26db18f86
commit e19cde9660
9 changed files with 17 additions and 8 deletions

8
.idea/workspace.xml generated
View File

@@ -2,13 +2,13 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="15f590a5-5017-44f1-a85e-17dfe3fc5379" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/templates/registration/signup.html" afterDir="false" />
<change afterPath="$PROJECT_DIR$/static/img/icon.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/accounts/forms.py" beforeDir="false" afterPath="$PROJECT_DIR$/accounts/forms.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/accounts/views.py" beforeDir="false" afterPath="$PROJECT_DIR$/accounts/views.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/settings.py" beforeDir="false" afterPath="$PROJECT_DIR$/config/settings.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/urls.py" beforeDir="false" afterPath="$PROJECT_DIR$/config/urls.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/db.sqlite3" beforeDir="false" afterPath="$PROJECT_DIR$/db.sqlite3" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/base.html" beforeDir="false" afterPath="$PROJECT_DIR$/templates/base.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/registration/login.html" beforeDir="false" afterPath="$PROJECT_DIR$/templates/registration/login.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/work/views.py" beforeDir="false" afterPath="$PROJECT_DIR$/work/views.py" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />

View File

@@ -3,6 +3,7 @@ from .forms import RegisterForm
def register(response):
title = "Rejestracja"
if response.method == "POST":
form = RegisterForm(response.POST)
if form.is_valid():
@@ -10,4 +11,4 @@ def register(response):
return redirect("/")
else:
form = RegisterForm()
return render(response, "registration/signup.html", {"form":form})
return render(response, "registration/signup.html", {"form": form, 'title': title})

Binary file not shown.

BIN
static/img/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@@ -3,6 +3,11 @@
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!- Website icon-->
{% load static %}
<link rel="icon" href="{% static 'img/icon.png' %}">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<!-- My CSS file -->

View File

@@ -7,6 +7,10 @@
<meta http-equiv="X-Ua-compatible" content="IE=edge">
<title>Aussen- und Innenausbau</title>
<!-- Website icon-->
{% load static %}
<link rel="icon" href="{% static 'img/icon.png' %}">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
@@ -21,7 +25,6 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<!-- My CSS file -->
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'css/main.css' %}">
</head>
@@ -30,7 +33,6 @@
<div class="container-fluid">
<div class="row">
<div class="form-signin">
{% load static %}
<img src="{% static 'img/logo.png' %}" width="320" alt="Logo" style="padding-bottom: 10px;">
<form method="post">
{% csrf_token %}

View File

@@ -4,6 +4,7 @@ from work.forms import HoursInputForm
def get_basic_workdata(request):
title = 'Rejestracja'
if request.method == 'POST':
form = HoursInputForm(request.POST)
if form.is_valid():
@@ -11,5 +12,5 @@ def get_basic_workdata(request):
else:
form = HoursInputForm()
return render(request, 'inputhours.html', {'form': form})
return render(request, 'inputhours.html', {'form': form, 'title': title})