Style AStA membership confirmation
This commit is contained in:
parent
afb4aa274d
commit
0b58d47dbb
|
@ -42,8 +42,8 @@ class RegisterForm(forms.Form):
|
||||||
class AstaForm(forms.Form):
|
class AstaForm(forms.Form):
|
||||||
confirm = forms.BooleanField(
|
confirm = forms.BooleanField(
|
||||||
required=True,
|
required=True,
|
||||||
label="Ich habe mich beim AStA als reguläres Mitglied angemeldet",
|
label="Ich habe mich beim AStA als reguläres Mitglied angemeldet.",
|
||||||
help_text="Aus Versicherungsgründen müssen Helfer*innen AStA Mitglieder sein. Die Mitgliedschaft ist kostenlos.",
|
help_text="Aus Versicherungsgründen müssen Helfer*innen AStA-Mitglieder sein. Die Mitgliedschaft ist kostenlos.",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{% extends "helper_base.html" %}
|
{% extends "helper_base.html" %}
|
||||||
|
|
||||||
{% block title %}Registrierung{% endblock %}
|
{% block title %}AStA-Mitgliedschaft{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<a href="https://asta-bamberg.de/mitglied-werden" target="_blank" class="button is-primary">AStA Formular</a>
|
<a class="button is-primary mb-2" href="https://asta-bamberg.de/mitglied-werden" target="_blank">AStA-Formular</a>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% for field in form %}
|
{% for field in form %}
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
{% block title %}Help!{% endblock %}
|
{% block title %}Help!{% endblock %}
|
||||||
|
|
||||||
{% block custom_notifications %}
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block navbar %}
|
{% block navbar %}
|
||||||
<div class="navbar-start">
|
<div class="navbar-start">
|
||||||
{% if not helper%}
|
{% if not helper%}
|
||||||
|
@ -23,17 +19,13 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
<section class="section">
|
||||||
|
<div class="container">
|
||||||
{% if helper and not helper.asta_confirmed %}
|
{% if helper and not helper.asta_confirmed %}
|
||||||
<section class="section">
|
|
||||||
<div class="container">
|
|
||||||
<div class="notification is-danger">
|
<div class="notification is-danger">
|
||||||
<a href="{% url 'asta' %}">Bitte Bestätige deine AStA Mitgliedschaft</a>
|
<a href="{% url 'asta' %}">Bitte bestätige deine AStA-Mitgliedschaft</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<section class="section">
|
|
||||||
<div class="container">
|
|
||||||
{% include 'notifications.html' %}
|
{% include 'notifications.html' %}
|
||||||
{% if helper %}
|
{% if helper %}
|
||||||
<h1 class="title is-1">Hallo {{ helper.name }}!</h1>
|
<h1 class="title is-1">Hallo {{ helper.name }}!</h1>
|
||||||
|
|
|
@ -252,7 +252,7 @@ def cancel(request, shiftid):
|
||||||
|
|
||||||
|
|
||||||
def asta(request):
|
def asta(request):
|
||||||
if not request.helper:
|
if not request.helper or request.helper.asta_confirmed:
|
||||||
return redirect("index")
|
return redirect("index")
|
||||||
form = AstaForm()
|
form = AstaForm()
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
|
@ -263,7 +263,7 @@ def asta(request):
|
||||||
messages.add_message(
|
messages.add_message(
|
||||||
request,
|
request,
|
||||||
messages.SUCCESS,
|
messages.SUCCESS,
|
||||||
"Deine AStA-Mitgliedschaft wurde gespeichert",
|
"Deine AStA-Mitgliedschaft wurde gespeichert.",
|
||||||
)
|
)
|
||||||
return redirect("index")
|
return redirect("index")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue