Implement bulk message sending
parent
48cb7d98bd
commit
c38b194f9c
@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0.4 on 2022-05-16 14:13
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("app", "0007_shiftregistration_state"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="message",
|
||||
name="sent_at",
|
||||
field=models.DateTimeField(blank=True, null=True),
|
||||
),
|
||||
]
|
@ -0,0 +1,21 @@
|
||||
{% extends "team_base.html" %}
|
||||
|
||||
{% block title %}Massen-Nachricht{% endblock %}
|
||||
{% block content %}
|
||||
<h3 class="title">Massen-Nachricht versenden</h3>
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
{% for field in form %}
|
||||
<div class="field">
|
||||
<label class="label" for="{{ field.id_for_label }}">{{ field.label }}</label>
|
||||
<div class="control">
|
||||
{{ field }}
|
||||
</div>
|
||||
{% for error in field.errors %}
|
||||
<p class="help is-danger">{{ error }}</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<button class="button is-primary" type="submit">Versenden</button>
|
||||
</form>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue