From 4969b9676e4f85f6a4c0e18c1b06a418df5f105f Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Tue, 6 Oct 2020 11:10:45 +0200 Subject: [PATCH] missing files added and formnovalidate="formnovalidate" for "prev" and "first" button --- input/migrations/0003_volonteer.py | 22 ++++++++++++ input/migrations/0004_project_contact.py | 19 +++++++++++ input/migrations/0005_auto_20200930_1015.py | 35 ++++++++++++++++++++ input/migrations/0006_honorarycertificate.py | 27 +++++++++++++++ input/migrations/0007_library.py | 29 ++++++++++++++++ input/migrations/0008_ifg.py | 28 ++++++++++++++++ input/templates/input/extern.html | 23 +++++++++++++ 7 files changed, 183 insertions(+) create mode 100644 input/migrations/0003_volonteer.py create mode 100644 input/migrations/0004_project_contact.py create mode 100644 input/migrations/0005_auto_20200930_1015.py create mode 100644 input/migrations/0006_honorarycertificate.py create mode 100644 input/migrations/0007_library.py create mode 100644 input/migrations/0008_ifg.py create mode 100644 input/templates/input/extern.html diff --git a/input/migrations/0003_volonteer.py b/input/migrations/0003_volonteer.py new file mode 100644 index 0000000..b5a64f9 --- /dev/null +++ b/input/migrations/0003_volonteer.py @@ -0,0 +1,22 @@ +# Generated by Django 3.1.1 on 2020-09-30 09:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('input', '0002_auto_20200922_1340'), + ] + + operations = [ + migrations.CreateModel( + name='Volonteer', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=200)), + ('email', models.CharField(max_length=200)), + ('username', models.CharField(max_length=200)), + ], + ), + ] diff --git a/input/migrations/0004_project_contact.py b/input/migrations/0004_project_contact.py new file mode 100644 index 0000000..3deb323 --- /dev/null +++ b/input/migrations/0004_project_contact.py @@ -0,0 +1,19 @@ +# Generated by Django 3.1.1 on 2020-09-30 09:51 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('input', '0003_volonteer'), + ] + + operations = [ + migrations.AddField( + model_name='project', + name='contact', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='input.volonteer'), + ), + ] diff --git a/input/migrations/0005_auto_20200930_1015.py b/input/migrations/0005_auto_20200930_1015.py new file mode 100644 index 0000000..b265f97 --- /dev/null +++ b/input/migrations/0005_auto_20200930_1015.py @@ -0,0 +1,35 @@ +# Generated by Django 3.1.1 on 2020-09-30 10:15 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('input', '0004_project_contact'), + ] + + operations = [ + migrations.RemoveField( + model_name='project', + name='contact', + ), + migrations.AddField( + model_name='project', + name='email', + field=models.CharField(max_length=200, null=True), + ), + migrations.AddField( + model_name='project', + name='realname', + field=models.CharField(max_length=200, null=True), + ), + migrations.AddField( + model_name='project', + name='username', + field=models.CharField(max_length=200, null=True), + ), + migrations.DeleteModel( + name='Volonteer', + ), + ] diff --git a/input/migrations/0006_honorarycertificate.py b/input/migrations/0006_honorarycertificate.py new file mode 100644 index 0000000..0656959 --- /dev/null +++ b/input/migrations/0006_honorarycertificate.py @@ -0,0 +1,27 @@ +# Generated by Django 3.1.1 on 2020-09-30 11:28 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('input', '0005_auto_20200930_1015'), + ] + + operations = [ + migrations.CreateModel( + name='HonoraryCertificate', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('realname', models.CharField(max_length=200, null=True)), + ('email', models.CharField(max_length=200, null=True)), + ('username', models.CharField(max_length=200, null=True)), + ('request_url', models.CharField(max_length=400)), + ('number', models.IntegerField(null=True)), + ], + options={ + 'abstract': False, + }, + ), + ] diff --git a/input/migrations/0007_library.py b/input/migrations/0007_library.py new file mode 100644 index 0000000..5f87126 --- /dev/null +++ b/input/migrations/0007_library.py @@ -0,0 +1,29 @@ +# Generated by Django 3.1.1 on 2020-09-30 11:45 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('input', '0006_honorarycertificate'), + ] + + operations = [ + migrations.CreateModel( + name='Library', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('realname', models.CharField(max_length=200, null=True)), + ('email', models.CharField(max_length=200, null=True)), + ('username', models.CharField(max_length=200, null=True)), + ('library', models.CharField(max_length=200)), + ('cost', models.CharField(max_length=10)), + ('duration', models.CharField(max_length=100)), + ('notes', models.CharField(max_length=500)), + ], + options={ + 'abstract': False, + }, + ), + ] diff --git a/input/migrations/0008_ifg.py b/input/migrations/0008_ifg.py new file mode 100644 index 0000000..77e5522 --- /dev/null +++ b/input/migrations/0008_ifg.py @@ -0,0 +1,28 @@ +# Generated by Django 3.1.1 on 2020-09-30 12:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('input', '0007_library'), + ] + + operations = [ + migrations.CreateModel( + name='IFG', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('realname', models.CharField(max_length=200, null=True)), + ('email', models.CharField(max_length=200, null=True)), + ('username', models.CharField(max_length=200, null=True)), + ('cost', models.CharField(max_length=10)), + ('notes', models.CharField(max_length=500)), + ('url', models.CharField(max_length=400)), + ], + options={ + 'abstract': False, + }, + ), + ] diff --git a/input/templates/input/extern.html b/input/templates/input/extern.html new file mode 100644 index 0000000..71ca7d0 --- /dev/null +++ b/input/templates/input/extern.html @@ -0,0 +1,23 @@ +{% load i18n %} +{% block content %} +

Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}

+
+ {% csrf_token %} + + {{ wizard.management_form }} + {% if wizard.form.forms %} + {{ wizard.form.management_form }} + {% for form in wizard.form.forms %} + {{ form }} + {% endfor %} + {% else %} + {{ wizard.form }} + {% endif %} +
+ {% if wizard.steps.prev %} + + + {% endif %} + +
+{% endblock %}