missing confirmations

This commit is contained in:
Niko Abeler 2023-06-11 20:44:14 +02:00
parent 1f27ff7702
commit aa745b1f6a
4 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,44 @@
# Generated by Django 4.2.1 on 2023-06-11 18:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('guild', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Resource',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('description', models.TextField()),
],
options={
'verbose_name': 'resource',
'verbose_name_plural': 'resources',
},
),
migrations.AlterField(
model_name='player',
name='name',
field=models.CharField(max_length=255, unique=True),
),
migrations.CreateModel(
name='ResourceEarned',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('amount', models.IntegerField()),
('character', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='guild.character', verbose_name='character')),
('resource', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='guild.resource', verbose_name='resource')),
],
options={
'verbose_name': 'resourceearned',
'verbose_name_plural': 'resourceearneds',
},
),
]

View File

@ -0,0 +1,16 @@
{% extends 'base.html' %}
{% block content %}
<h1>Session Delete</h1>
<p>Are you sure you want to delete <strong>{{ adventure.name}}</strong>?</p>
<p>This will delete all associated sessions!</p>
<form action="" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Delete Adventure">
</form>
{% endblock content %}

View File

@ -0,0 +1,14 @@
{% extends 'base.html' %}
{% block content %}
<h1>Session Delete</h1>
<p>Are you sure you want to delete <strong>{{ character.name}}</strong>?</p>
<form action="" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Delete Character">
</form>
{% endblock content %}

View File

@ -0,0 +1,14 @@
{% extends 'base.html' %}
{% block content %}
<h1>Session Delete</h1>
<p>Are you sure you want to delete <strong>{{ player.name}}</strong>?</p>
<form action="" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Delete Player">
</form>
{% endblock content %}