diff --git a/roofis2/core/settings.py b/roofis2/core/settings.py index eaf8366..723eb26 100644 --- a/roofis2/core/settings.py +++ b/roofis2/core/settings.py @@ -181,6 +181,11 @@ LOGGING = { # 'handlers': ['console'], # 'level': 'INFO', # }, + + 'roomservice': { + 'handlers': ['console'], + 'level': 'INFO', + }, 'roomservice.management.sample_data_creation': { 'handlers': ['console'], 'level': 'DEBUG' diff --git a/roofis2/roomservice/urls.py b/roofis2/roomservice/urls.py index e0c9a75..e60d212 100644 --- a/roofis2/roomservice/urls.py +++ b/roofis2/roomservice/urls.py @@ -4,6 +4,7 @@ from . import views app_name = 'roomservice' urlpatterns = [ path('', views.home, name='home'), - path('admin', views.admin, name='admin'), + path('adminpage', views.admin, name='admin'), path('booking', views.booking, name='booking'), + path('favorites', views.favorites, name='favorites'), ] diff --git a/roofis2/roomservice/views.py b/roofis2/roomservice/views.py index 2b44417..0a7d683 100644 --- a/roofis2/roomservice/views.py +++ b/roofis2/roomservice/views.py @@ -1,15 +1,25 @@ from django.shortcuts import render - +from roomservice.models import Room +import logging +logger = logging.getLogger(__name__) # Create your views here. def home(request): - return render(request, 'search.jinja', {"title":"rooF(i)S is love rooF(i)S is live!!"}) + rooms = Room.objects.all() + return render(request, 'search.jinja', {"title":"rooF(i)S is love rooF(i)S is live!!", "rooms":rooms}) def booking(request): - return render(request, 'booking.jinja', {"title": "rooF(i)S is love rooF(i)S is live!!"}) + room_id = request.POST["room"] + room = Room.objects.get(id=room_id) + logger.info(room_id) + logger.info(room) + return render(request, 'booking.jinja', {"title": "rooF(i)S is love rooF(i)S is live!!","room":room}) def admin(request): return render(request, 'admin.jinja', {"title": "rooF(i)S is love rooF(i)S is live!!"}) + +def favorites(request): + return render(request, 'favorites.jinja', {"title": "rooF(i)S is love rooF(i)S is live!!"}) \ No newline at end of file diff --git a/roofis2/templates/booking.jinja b/roofis2/templates/booking.jinja index 03c1a38..f68d9ea 100644 --- a/roofis2/templates/booking.jinja +++ b/roofis2/templates/booking.jinja @@ -1,10 +1,169 @@ {% extends 'base.jinja' %} {% block content %} -

Ressourcenpool Bamberg

-

Impressum

-

Anbieter:
Max Mustermann
Musterstraße 1
96049 Bamberg

-

Kontakt:
Telefon: 0951/12345678
Telefax: 0951/1234567
E-Mail: mail@mustermann.de
Website: www.mustermann.de

-

 

-

Bei redaktionellen Inhalten:

-

Verantwortlich nach § 55 Abs.2 RStV
Moritz Schreiberling
Musterstraße 2
96049 Bamberg

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TimeMondayTuesdayWednesdayThursdayFridaySaturdaySunday
6:00 - 7:00
7:00 - 8:00
8:00 - 9:00
9:00 - 10:00
10:00 - 11:00
11:00 - 12:00
12:00 - 13:00
13:00 - 14:00
14:00 - 15:00
15:00 - 16:00
16:00 - 17:00
17:00 - 18:00
18:00 - 19:00
19:00 - 20:00
20:00 - 6:00
{% endblock %} \ No newline at end of file diff --git a/roofis2/templates/favorites.jinja b/roofis2/templates/favorites.jinja new file mode 100644 index 0000000..03c1a38 --- /dev/null +++ b/roofis2/templates/favorites.jinja @@ -0,0 +1,10 @@ +{% extends 'base.jinja' %} +{% block content %} +

Ressourcenpool Bamberg

+

Impressum

+

Anbieter:
Max Mustermann
Musterstraße 1
96049 Bamberg

+

Kontakt:
Telefon: 0951/12345678
Telefax: 0951/1234567
E-Mail: mail@mustermann.de
Website: www.mustermann.de

+

 

+

Bei redaktionellen Inhalten:

+

Verantwortlich nach § 55 Abs.2 RStV
Moritz Schreiberling
Musterstraße 2
96049 Bamberg

+{% endblock %} \ No newline at end of file diff --git a/roofis2/templates/search.jinja b/roofis2/templates/search.jinja index 6ca45ea..19e8b79 100644 --- a/roofis2/templates/search.jinja +++ b/roofis2/templates/search.jinja @@ -1,9 +1,39 @@ {% extends "base.jinja" %} {% block content %} -
- - -
+
+
+
+
+
+ + +
+
+
+
+
+
+
+ +
+ + +
+ +
+ +
+
+
+
+ +
+
+
{% endblock %}