yt-links aktualisiert

This commit is contained in:
holger.trampe 2020-10-25 23:19:34 +01:00
parent e9f3562047
commit 802868c3b8
2 changed files with 32 additions and 10 deletions

View File

@ -16,7 +16,37 @@
</div>
{% endfor %}
{% endif %}
<form method="POST">
{% csrf_token %}
<fieldset class="form-group" >
<legend class="border-bottom mb-4" style="text-align: center;">
<i class="fas fa-laptop"></i>
<h3>Registrieren Sie Ihre Agentur</h3>
</legend>
{% for field in form %}
{% if field.name != 'captcha' %}
{{field.field_name}}
{% if field.name == 'agb' %}
{{field}}&nbsp;&nbsp;<a style="" href="{% url 'datenschutzda' %}" target="_blank">AGB's*</a><br />
{% elif field.name == 'av' %}
{{field}}&nbsp;&nbsp;<a style="" href="{% url 'impressumda' %}" target="_blank">Auftragsverarbeitung*</a>
{% else %}
{{field|as_crispy_field}}
{% endif %}
{% endif %}
{% endfor %}
{{form.captcha|as_crispy_field}}
<!--<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="isvve" onclick="javascript:changeVVE()">
<label class="form-check-label" for="isvve">
VVE-Mitglied
</label>
</div>-->
</fieldset>
<div class="form-group">
<button type="submit" class="btn btn-primary btn-lg" style="float: right;">Registrieren</button>
</div>
</form>
</div>
</div>
<script type="text/javascript">

View File

@ -215,12 +215,8 @@ def onlyRD(request):
context = {
"form" : FormRD()
}
if requst.user.is_authenticated():
context['profile'] = user.profile
return render (request, 'users/register_rd.html',context)
'''
Neue Agentur UND Notfallhilfe bestellen
@ -301,8 +297,6 @@ def registerNewAgencyRD(request):
context = {
"form" : NewAgencyFormRD()
}
if requst.user.is_authenticated():
context['profile'] = user.profile
return render (request, 'users/register_da_rd.html',context)
@ -379,10 +373,8 @@ def registerNewAgency(request):
return render (request, 'users/register.html',context)
else:
context = {
#"form" : NewAgencyForm()
"form" : NewAgencyForm()
}
if requst.user.is_authenticated():
context['profile'] = user.profile
return render (request, 'users/register.html',context)
class AgencyCreateView(CreateView):