Skip to content
Snippets Groups Projects
Commit ebe0783e authored by void's avatar void
Browse files

Zusätzliches Feld Homepage für FoodService im Pizza Sheet

parent 3843c26e
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ from django.utils import timezone
class FoodService(models.Model):
name = models.CharField(max_length=250)
homepage = models.CharField(max_length=250)
phone = models.CharField(max_length=250)
def __str__(self):
......@@ -76,4 +77,4 @@ class FoodOrderFormExt(ModelForm):
class FoodServiceForm(ModelForm):
class Meta:
model = FoodService
fields = ['name', 'phone']
fields = ['name', 'homepage', 'phone']
......@@ -11,6 +11,7 @@
<div class="row">
<div class="col-md-8">
<h4>{{ sheet.food_service.name }}</h4>
<small><a href="{{ sheet.food_service.homepage }}">{{ sheet.food_service.homepage }}</a></small><br/><br/>
<small>{{ sheet.food_service.phone }}</small><br/><br/>
<small>{{ sheet.estimated_order_time | naturaltime }}</small><br/><br/>
{% if user.is_authenticated %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment