diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 16cb31fd756461aac24fc959ef5baf83c2d55506..94a25f7f4cb416c083d265558da75d457237d671 100755 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="VcsDirectoryMappings"> - <mapping directory="" vcs="Git" /> - <mapping directory="$PROJECT_DIR$/schoolapps/static/materialize" vcs="Git" /> + <mapping directory="$PROJECT_DIR$" vcs="Git" /> </component> </project> \ No newline at end of file diff --git a/schoolapps/aub/migrations/0010_auto_20190304_1404.py b/schoolapps/aub/migrations/0010_auto_20190304_1404.py new file mode 100644 index 0000000000000000000000000000000000000000..ba6a55b8dff21d572939d460e49295b1f2f4b49d --- /dev/null +++ b/schoolapps/aub/migrations/0010_auto_20190304_1404.py @@ -0,0 +1,22 @@ +# Generated by Django 2.1.2 on 2019-03-04 13:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('aub', '0009_merge_20190222_1226'), + ] + + operations = [ + migrations.AlterModelOptions( + name='aub', + options={'permissions': (('apply_for_aub', 'Apply for a AUB'), ('cancel_aub', 'Cancel a AUB'), ('allow1_aub', 'First permission'), ('allow2_aub', 'Second permission'), ('check1_aub', 'Check a AUB'), ('check2_aub', 'Check a AUB'), ('view_archive', 'View AUB archive'))}, + ), + migrations.AlterField( + model_name='aub', + name='status', + field=models.ForeignKey(default=1, on_delete=models.SET(1), related_name='aubs', to='aub.Status'), + ), + ] diff --git a/schoolapps/aub/templates/aub/details.html b/schoolapps/aub/templates/aub/details.html index cdb152ff2cc4fa99dd6ca1e66a1c0f00122cd4f1..01fbad0975cbdc6920b721bb42afbd87ed18f6cc 100755 --- a/schoolapps/aub/templates/aub/details.html +++ b/schoolapps/aub/templates/aub/details.html @@ -1,12 +1,14 @@ {% include 'partials/header.html' %} <main> - <h4>{{ aub.from_date }} bis {{ aub.to_date }}</h4> - <p><strong>Status: <span class="badge new {{ aub.status.style_classes }}">{{ aub.status.name }}</span></strong></p> - <p>{{ aub.description }}</p> - <hr> <strong> Eingereicht am {{ aub.created_at.date }} von {{ aub.created_by.first_name }} {{ aub.created_by.last_name }} </strong> + <h5>{{ aub.from_date }}, {{ aub.from_time }} Uhr bis <br /> + {{ aub.to_date }}, {{ aub.to_time }} Uhr </h5> + <p><strong>Status: <span class="badge new {{ aub.status.style_classes }}">{{ aub.status.name }}</span></strong></p> + <p><strong>Beschreibung:</strong> {{ aub.description }}</p> + <hr> + </main> {% include 'partials/footer.html' %} \ No newline at end of file diff --git a/schoolapps/aub/views.py b/schoolapps/aub/views.py index 4fda0cc55a80280eeba2421cfd1bfbc285b47878..925fbac0f32105fa564100da13b9e354243eb54f 100755 --- a/schoolapps/aub/views.py +++ b/schoolapps/aub/views.py @@ -152,10 +152,12 @@ def check2(request): # Notify user register_notification(title="Ihr Antrag auf Unterrichtsbefreiung wurde genehmigt", - description="Ihr Antrag auf Unterrichtsbefreiung vom {} bis {} wurde von der " + description="Ihr Antrag auf Unterrichtsbefreiung vom {}, {} Uhr bis {}, {} Uhr wurde von der " "Schulleitung genehmigt." .format(formats.date_format(aub.from_date), - formats.date_format(aub.to_date)), + formats.time_format(aub.from_time), + formats.date_format(aub.to_date), + formats.time_format(aub.to_time)), app=AubConfig.verbose_name, user=aub.created_by, link=request.build_absolute_uri(reverse('aub_details', args=[aub.id])) ) @@ -165,11 +167,13 @@ def check2(request): # Notify user register_notification(title="Ihr Antrag auf Unterrichtsbefreiung wurde abgelehnt", - description="Ihr Antrag auf Unterrichtsbefreiung vom {} bis {} wurde von der " + description="Ihr Antrag auf Unterrichtsbefreiung vom {}, {} Uhr bis {}, {} Uhr wurde von der " "Schulleitung abgelehnt. Für weitere Informationen kontaktieren Sie " "bitte die Schulleitung." .format(formats.date_format(aub.from_date), - formats.date_format(aub.to_date)), + formats.time_format(aub.from_time), + formats.date_format(aub.to_date), + formats.time_format(aub.to_time)), app=AubConfig.verbose_name, user=aub.created_by, link=request.build_absolute_uri(reverse('aub_details', args=[aub.id])) )