start new app donar
This commit is contained in:
parent
6d912c8a25
commit
5332a4ac4d
0
ofu_app/apps/donar/__init__.py
Normal file
0
ofu_app/apps/donar/__init__.py
Normal file
3
ofu_app/apps/donar/admin.py
Normal file
3
ofu_app/apps/donar/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
5
ofu_app/apps/donar/apps.py
Normal file
5
ofu_app/apps/donar/apps.py
Normal file
@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class DonarConfig(AppConfig):
|
||||
name = 'apps.donar'
|
||||
0
ofu_app/apps/donar/management/__init__.py
Normal file
0
ofu_app/apps/donar/management/__init__.py
Normal file
0
ofu_app/apps/donar/migrations/__init__.py
Normal file
0
ofu_app/apps/donar/migrations/__init__.py
Normal file
15
ofu_app/apps/donar/models.py
Normal file
15
ofu_app/apps/donar/models.py
Normal file
@ -0,0 +1,15 @@
|
||||
from django.db import models
|
||||
|
||||
MAX_LENGTH = 60
|
||||
|
||||
|
||||
# Create your models here.
|
||||
class Room(models.Model):
|
||||
id = models.AutoField(primary_key=True)
|
||||
key = models.CharField(max_length=MAX_LENGTH)
|
||||
address = models.CharField(max_length=MAX_LENGTH)
|
||||
building_key = models.CharField(max_length=MAX_LENGTH)
|
||||
floor = models.CharField(max_length=MAX_LENGTH)
|
||||
name = models.CharField(max_length=MAX_LENGTH)
|
||||
orgname = models.CharField(max_length=MAX_LENGTH)
|
||||
short = models.CharField(max_length=MAX_LENGTH)
|
||||
3
ofu_app/apps/donar/tests.py
Normal file
3
ofu_app/apps/donar/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
0
ofu_app/apps/donar/utils/__init__.py
Normal file
0
ofu_app/apps/donar/utils/__init__.py
Normal file
0
ofu_app/apps/donar/utils/parser/__init__.py
Normal file
0
ofu_app/apps/donar/utils/parser/__init__.py
Normal file
3
ofu_app/apps/donar/views.py
Normal file
3
ofu_app/apps/donar/views.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Binary file not shown.
Binary file not shown.
@ -5,82 +5,94 @@
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col m-2 p-3 border border-dark rounded">
|
||||
{% if feki_menu %}
|
||||
<h2>{{ feki_menu.location }}</h2>
|
||||
<p>{{ feki_menu.date }}</p>
|
||||
{% for single_food in feki_menu.menu.all %}
|
||||
<p>{{ single_food.name }}</p>
|
||||
{% endfor %}
|
||||
<div class="col p-2">
|
||||
<div class="p-3 border border-dark rounded bg-light text-dark">
|
||||
{% if feki_menu %}
|
||||
<h2>{{ feki_menu.location }}</h2>
|
||||
<p>{{ feki_menu.date }}</p>
|
||||
{% for single_food in feki_menu.menu.all %}
|
||||
<p>{{ single_food.name }}</p>
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
<p>Die Feki Mensa hat heute geschlossen :(</p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p>Die Feki Mensa hat heute geschlossen :(</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col m-2 p-3 border border-dark rounded">
|
||||
{% if austr_menu %}
|
||||
<h2>{{ austr_menu.location }}</h2>
|
||||
<p>{{ austr_menu.date }}</p>
|
||||
{% for single_food in austr_menu.menu.all %}
|
||||
<p>{{ single_food.name }}</p>
|
||||
{% endfor %}
|
||||
<div class="col p-2">
|
||||
<div class="p-3 border border-dark rounded bg-light text-dark">
|
||||
{% if austr_menu %}
|
||||
<h2>{{ austr_menu.location }}</h2>
|
||||
<p>{{ austr_menu.date }}</p>
|
||||
{% for single_food in austr_menu.menu.all %}
|
||||
<p>{{ single_food.name }}</p>
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
<p>Die Austr Mensa hat heute geschlossen :(</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="col m-2 p-3 border border-dark rounded">
|
||||
{% if erba_cafete %}
|
||||
<h2>{{ erba_cafete.location }}</h2>
|
||||
<p>{{ erba_cafete.date }}</p>
|
||||
{% for single_food in erba_cafete.menu.all %}
|
||||
<p>{{ single_food.name }}</p>
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
<p>Ist heute Freitag?</p>
|
||||
<p> Nein? Dann ist die Erba Cafete wohl heute geschlossen :(</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="col m-2 p-3 border border-dark rounded">
|
||||
{% if markus_cafete %}
|
||||
<h2>{{ markus_cafete.location }}</h2>
|
||||
<p>{{ markus_cafete.date }}</p>
|
||||
{% for single_food in markus_cafete.menu.all %}
|
||||
<p>{{ single_food.name }}</p>
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
<p>Ist heute Freitag?</p>
|
||||
<p> Nein? Dann ist die Markus Cafete wohl heute geschlossen :(</p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p>Die Austr Mensa hat heute geschlossen :(</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col m-2 p-3 border border-dark rounded">
|
||||
<h2>Happy Hour Guide von Feki.de</h2>
|
||||
{% if happy_hours %}
|
||||
<table class="table">
|
||||
<thead class="thead-inverse">
|
||||
<tr>
|
||||
<th>Location</th>
|
||||
<th>Time</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for happy_hour in happy_hours %}
|
||||
<tr>
|
||||
<td>{{ happy_hour.location }}</td>
|
||||
<td>{{ happy_hour.time }}</td>
|
||||
<td>{{ happy_hour.description }}</td>
|
||||
</tr>
|
||||
<div class="col p-2">
|
||||
<div class="p-3 border border-dark rounded bg-light text-dark">
|
||||
{% if erba_cafete %}
|
||||
<h2>{{ erba_cafete.location }}</h2>
|
||||
<p>{{ erba_cafete.date }}</p>
|
||||
{% for single_food in erba_cafete.menu.all %}
|
||||
<p>{{ single_food.name }}</p>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<p>Leider gibt es heute keine Happy Hours :(</p>
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
<p>Ist heute Freitag?</p>
|
||||
<p> Nein? Dann ist die Erba Cafete wohl heute geschlossen :(</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col p-2">
|
||||
<div class="p-3 border border-dark rounded bg-light text-dark">
|
||||
{% if markus_cafete %}
|
||||
<h2>{{ markus_cafete.location }}</h2>
|
||||
<p>{{ markus_cafete.date }}</p>
|
||||
{% for single_food in markus_cafete.menu.all %}
|
||||
<p>{{ single_food.name }}</p>
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
<p>Ist heute Freitag?</p>
|
||||
<p> Nein? Dann ist die Markus Cafete wohl heute geschlossen :(</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col p-2">
|
||||
<div class="p-3 border border-dark rounded bg-light text-dark">
|
||||
<h2>Happy Hour Guide von Feki.de</h2>
|
||||
{% if happy_hours %}
|
||||
<table class="table">
|
||||
<thead class="thead-inverse">
|
||||
<tr>
|
||||
<th>Location</th>
|
||||
<th>Time</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for happy_hour in happy_hours %}
|
||||
<tr>
|
||||
<td>{{ happy_hour.location }}</td>
|
||||
<td>{{ happy_hour.time }}</td>
|
||||
<td>{{ happy_hour.description }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<p>Leider gibt es heute keine Happy Hours :(</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user