Kleine anpassungen für die Stablität der Seite.

* Methode Bilder zu löschen wurde geändert damit weniger Fehlermeldungen auftreten.
* kleine änderungen für PEP-8 kompatibiltät
* Nicht alle Seiten sind im Menü verankert, hier hat der Teaser-Block Fehler verursacht.
* reCaptcha wird keine IP Adresse übergeben (Das funktioniert leider nicht)
This commit is contained in:
Christian Berg
2015-02-08 11:33:13 +01:00
parent 9c2413a794
commit cb4b15b3c6
53 changed files with 259 additions and 243 deletions

View File

@@ -145,7 +145,6 @@ class RegistrationForm(forms.ModelForm):
user.is_active = False
if commit:
user.save()
activation = models.ActivationRequest.objects.create_pending_registration(
user)
activation = models.ActivationRequest.objects.create_pending_registration(user) # @IgnorePep8
self.send_email(activation)
return user

View File

@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kasu.membership\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-12-14 01:12+0100\n"
"POT-Creation-Date: 2015-01-05 19:23+0100\n"
"PO-Revision-Date: 2014-12-08 16:18+0100\n"
"Last-Translator: Christian Berg <xeniac.at@gmail.com>\n"
"Language-Team: Kasu <verein@kasu.at>\n"

View File

@@ -3,14 +3,16 @@
{% block title %}Account aktivierung fehlgeschlagen{% endblock %}
{% block teaser %}<h1>Account aktivierung fehlgeschlagen</h1>{% endblock %}
{% block maincontent %}
<h2 class="grid_12">Aktivierung fehlgeschlagen</h2>
<p class="grid_12">Leider war die Aktivierung des Schlüssels &ldquo;{{ activation_key }}&rdquo; war nicht erfolgreich, dies könnte mehrere Gründe haben:</p>
<img class="grid_4" src="" alt="" />
<ul class="grid_8">
<li><strong>Der Aktivierungs Link ist nicht korrekt.</strong> Bitte kopiere die ganze Zeile aus der E-Mail in die Adressleiste.</li>
<li><strong>Der Aktivierungs Schlüssel ist abgelaufen.</strong> Dieser ist nur {{ expiration_days }} Tage gültig.In diesem Fall fülle das <a href="{% url 'membership-register' %}">Registrierungs Formular</a> bitte erneut aus.</p></li>
<li><strong>Der Account wurde schon aktiviert.</strong> Dies passiert sehr schnell, veruche zuerst dich mit deinen Daten <a href="{% url 'login' %}">anzumelden</a>. Sollte das nicht funktionieren, kannst du dir ja mal <a href="{% url 'password_reset' %}">neue Zugangsdaten zuschicken</a> lassen.</li>
<li><strong>Ein obskurer Fehler ist aufgetreten.</strong> In diesem Fall, nimm bitte Kontakt mit dem Webadmin auf.</li>
<li><strong>Der Aktivierungs Link ist nicht korrekt.</strong> Bitte kopiere die ganze Zeile aus der E-Mail in die Adressleiste.</li>
<li><strong>Der Aktivierungs Schlüssel ist abgelaufen.</strong> Dieser ist nur {{ expiration_days }} Tage gültig.In diesem Fall fülle das <a href="{% url 'membership-register' %}">Registrierungs Formular</a> bitte erneut aus.</p></li>
<li><strong>Der Account wurde schon aktiviert.</strong> Dies passiert sehr schnell, veruche zuerst dich mit deinen Daten <a href="{% url 'login' %}">anzumelden</a>. Sollte das nicht funktionieren, kannst du dir ja mal <a href="{% url 'password_reset' %}">neue Zugangsdaten zuschicken</a> lassen.</li>
<li><strong>Ein obskurer Fehler ist aufgetreten.</strong> In diesem Fall, nimm bitte Kontakt mit dem Webadmin auf.</li>
</ul>
{% endblock %}

View File

@@ -2,6 +2,8 @@
{% block title %}Bestätigungs E-Mail wurde abgeschickt{% endblock %}
{% block teaser %}<h1>Bestätigungs E-Mail wurde abgeschickt</h1>{% endblock %}
{% block content %}
<div class="left_column">
<h2>Bestätigungs E-Mail wurde abgeschickt</h2>

View File

@@ -2,6 +2,9 @@
{% block title %}Aktivierung erfolgreich{% endblock %}
{% block teaser %}<h1>Aktivierung erfolgreich</h1>{% endblock %}
{% block maincontent %}
<h2 class="grid_12">Aktivierung erfolgreich</h2>

View File

@@ -3,7 +3,7 @@
{% block title %}{{ membership.first_name }} {{membership.last_name}}{% endblock %}
{% block teaser %}<h2>{% trans 'profile for' %} {{membership.user.username|title}}</h2>{% endblock %}
{% block teaser %}<h1>{% trans 'profile for' %} {{membership.user.username|title}}</h1>{% endblock %}
{% block navigation %}
<ul id="navigation">

View File

@@ -1,6 +1,10 @@
{% extends "base.html" %}
{% load i18n %}
{% block title %}{% trans "Edit Userprofile" %}{% endblock %}
{% block teaser %}<h1>{% trans "Edit Userprofile" %}</h1>{% endblock %}
{% block extra_head %}
<link rel="stylesheet" href="{{STATIC_URL}}css/jquery-ui-1.8.16.custom.css" type="text/css">
<script type="text/javascript" src="{{STATIC_URL}}js/jquery-ui-1.8.16.custom.min.js"></script>
@@ -28,14 +32,14 @@
{% block javascript %}
$(function() {
$( "#id_birthday" ).datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'yy-mm-dd',
yearRange: '-50,0',
firstDay: 1
});
});
$( "#id_birthday" ).datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'yy-mm-dd',
yearRange: '-50,0',
firstDay: 1
});
});
{% endblock %}
{% block buttonbar %}{% endblock %}

View File

@@ -3,11 +3,8 @@
{% load url from future %}
{% block title %}{% trans "Registration"%}{% endblock %}
{% block teaser%}
<h1>{% trans "Registration"%}</h1>
<div id="teaser_text">
</div>
{% endblock %}
{% block teaser%}<h1>{% trans "Registration"%}</h1>{% endblock %}
{% block maincontent %}
<form method="post" action="{% url 'membership-register' %}">

View File

@@ -4,6 +4,8 @@
{% block title %}{% trans "Activation sent"%}{% endblock %}
{% block teaser %}<h1>{% trans "Activation sent"%}</h1>{% endblock %}
{% block content %}
<h2>{% trans "Activation sent"%}</h2>
@@ -11,4 +13,4 @@
Es ist dabei wichtig eine gültige E-Mail Adresse anzugeben, welche du öfters abrufst.</p>
<p>Während der Registrierung schicken wir dir eine E-Mail, diese enthält einen Link zur Aktivierung.
Ohne diesen Schritt ist es nicht Möglich sich mit dem Account anzumelden.</p>
{% endblock %}
{% endblock %}