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
Branches pizza_homepage
No related tags found
1 merge request!1Zusätzliches Feld Homepage für FoodService im Pizza Sheet
...@@ -10,6 +10,7 @@ from django.utils import timezone ...@@ -10,6 +10,7 @@ from django.utils import timezone
class FoodService(models.Model): class FoodService(models.Model):
name = models.CharField(max_length=250) name = models.CharField(max_length=250)
homepage = models.CharField(max_length=250)
phone = models.CharField(max_length=250) phone = models.CharField(max_length=250)
def __str__(self): def __str__(self):
...@@ -76,4 +77,4 @@ class FoodOrderFormExt(ModelForm): ...@@ -76,4 +77,4 @@ class FoodOrderFormExt(ModelForm):
class FoodServiceForm(ModelForm): class FoodServiceForm(ModelForm):
class Meta: class Meta:
model = FoodService model = FoodService
fields = ['name', 'phone'] fields = ['name', 'homepage', 'phone']
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<div class="row"> <div class="row">
<div class="col-md-8"> <div class="col-md-8">
<h4>{{ sheet.food_service.name }}</h4> <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.food_service.phone }}</small><br/><br/>
<small>{{ sheet.estimated_order_time | naturaltime }}</small><br/><br/> <small>{{ sheet.estimated_order_time | naturaltime }}</small><br/><br/>
{% if user.is_authenticated %} {% 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