-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Feature tickets" (#377)"
This reverts commit 5d6d103.
- Loading branch information
1 parent
0926c32
commit 7cab902
Showing
10 changed files
with
199 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 2.2.24 on 2022-04-12 17:47 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('stregsystem', '0015_product_caffeine_content_mg'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Event', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=32)), | ||
('active', models.BooleanField()), | ||
('time', models.DateTimeField()), | ||
('ticket_start_threshold', models.DateTimeField()), | ||
('ticket_end_threshold', models.DateTimeField()), | ||
('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='stregsystem.Product')), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% extends "stregsystem/base.html" %} | ||
|
||
{% load stregsystem_extras %} | ||
|
||
{% block title %}Treoens stregsystem : Brugerinfo {% endblock %} | ||
|
||
{% block content %} | ||
<center><h3>{{member.firstname}} {{member.lastname}} ({{member.email}})</h3></center> | ||
|
||
<center><h2><a href="/{{room.id}}/sale/{{member.id}}">Tilbage til produktmenu</a></h2></center> | ||
|
||
<center> | ||
<b>Aktive billeter</b> | ||
<table border=1 width="60%"> | ||
<tr> | ||
<th align=left>Event</th> | ||
<th align=left>Produkt</th> | ||
<th align=left>Pris</th> | ||
<th align=left>Start Tidspunkt</th> | ||
</tr> | ||
{% autoescape off %} | ||
{% for event in bought_events_list %} | ||
<tr> | ||
<td>{{event.name}}</td> | ||
<td>{{event.product.name}}</td> | ||
<td>{{event.product.price|money}}</td> | ||
<td>{{event.time}}</td> | ||
</tr> | ||
{% endfor %} | ||
{% endautoescape %} | ||
</table> | ||
</center> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,5 +90,6 @@ | |
</tr> | ||
</table> | ||
|
||
|
||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters