+ {% if user.is_authenticated and not user.profile.email_confirmed %}
+
+ {% trans "Your e-mail address is not validated. Please check your mail inbox and click on the validation link." %}
+
+ {% endif %}
{% block contenttitle %}
{{ title }} {% endblock %}
{% block content %}
diff --git a/templates/member/add_members.html b/templates/member/add_members.html
index c44440bf..ad6f1f29 100644
--- a/templates/member/add_members.html
+++ b/templates/member/add_members.html
@@ -16,6 +16,40 @@
{% endblock %}
{% block extrajavascript %}
-
+
{% endblock %}
diff --git a/templates/member/club_detail.html b/templates/member/club_detail.html
index 3ad29901..fedd43fa 100644
--- a/templates/member/club_detail.html
+++ b/templates/member/club_detail.html
@@ -10,9 +10,11 @@
{% block extrajavascript %}
{% endblock %}
diff --git a/templates/member/club_info.html b/templates/member/club_info.html
index a781bea8..93c76d59 100644
--- a/templates/member/club_info.html
+++ b/templates/member/club_info.html
@@ -49,13 +49,13 @@
diff --git a/templates/member/club_list.html b/templates/member/club_list.html
index 2653ace8..4682164c 100644
--- a/templates/member/club_list.html
+++ b/templates/member/club_list.html
@@ -36,7 +36,6 @@ function getInfo() {
if (asked.length >= 1) {
$.getJSON("/api/members/club/?format=json&search="+asked, function(buttons){
let selected_id = buttons.results.map((a => "#row-"+a.id));
- console.log(selected_id.join());
$(".table-row,"+selected_id.join()).show();
$(".table-row").not(selected_id.join()).hide();
diff --git a/templates/member/club_tables.html b/templates/member/club_tables.html
index fbded9c3..32be9bd4 100644
--- a/templates/member/club_tables.html
+++ b/templates/member/club_tables.html
@@ -1,31 +1,23 @@
{% load render_table from django_tables2 %}
{% load i18n %}
-
-
-
-
- {% render_table member_list %}
-
-
-
-
-
-
-
- {% render_table history_list %}
-
-
+
+
+ {% render_table member_list %}
+
+
+
+
+
+
+
+ {% render_table history_list %}
+
diff --git a/templates/member/profile_detail.html b/templates/member/profile_detail.html
index 42d03d8b..04b15d3b 100644
--- a/templates/member/profile_detail.html
+++ b/templates/member/profile_detail.html
@@ -7,3 +7,14 @@
{% block profile_content %}
{% include "member/profile_tables.html" %}
{% endblock %}
+
+{% block extrajavascript %}
+
+{% endblock %}
diff --git a/templates/member/profile_info.html b/templates/member/profile_info.html
index 9ff20385..74856355 100644
--- a/templates/member/profile_info.html
+++ b/templates/member/profile_info.html
@@ -44,7 +44,7 @@
diff --git a/templates/member/profile_tables.html b/templates/member/profile_tables.html
index 9d2c687f..9629ff14 100644
--- a/templates/member/profile_tables.html
+++ b/templates/member/profile_tables.html
@@ -1,31 +1,34 @@
{% load render_table from django_tables2 %}
{% load i18n %}
-
-
-
-
- {% render_table club_list %}
-
-
+{% load perms %}
-
-
-
-
- {% render_table history_list %}
-
-
+{% if not object.profile.email_confirmed and "member.change_profile_email_confirmed"|has_perm:object.profile %}
+
+{% endif %}
+
+
+
+ {% render_table club_list %}
+
+
+
+
+
+
+
+ {% render_table history_list %}
diff --git a/templates/member/user_list.html b/templates/member/user_list.html
index d0eaaedb..0bcd7e89 100644
--- a/templates/member/user_list.html
+++ b/templates/member/user_list.html
@@ -7,7 +7,13 @@
- {% render_table table %}
+ {% if table.data %}
+ {% render_table table %}
+ {% else %}
+
+ {% trans "There is no pending user with this pattern." %}
+
+ {% endif %}
{% endblock %}
diff --git a/templates/note/transaction_form.html b/templates/note/transaction_form.html
index 65aaa635..0b53df61 100644
--- a/templates/note/transaction_form.html
+++ b/templates/note/transaction_form.html
@@ -28,6 +28,11 @@ SPDX-License-Identifier: GPL-2.0-or-later
{% trans "Debit" %}
{% endif %}
+ {% for activity in activities_open %}
+
+ {% trans "Entries" %} {{ activity.name }}
+
+ {% endfor %}
@@ -137,7 +142,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
diff --git a/templates/note/transactiontemplate_list.html b/templates/note/transactiontemplate_list.html
index af0a02b4..cf9bc5ed 100644
--- a/templates/note/transactiontemplate_list.html
+++ b/templates/note/transactiontemplate_list.html
@@ -37,7 +37,6 @@ function getInfo() {
if (asked.length >= 1) {
$.getJSON("/api/note/transaction/template/?format=json&search="+asked, function(buttons){
let selected_id = buttons.results.map((a => "#row-"+a.id));
- console.log(selected_id.join());
$(".table-row,"+selected_id.join()).show();
$(".table-row").not(selected_id.join()).hide();
diff --git a/templates/registration/email_validation_complete.html b/templates/registration/email_validation_complete.html
new file mode 100644
index 00000000..4835cfa1
--- /dev/null
+++ b/templates/registration/email_validation_complete.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+ {% if validlink %}
+ {% trans "Your email have successfully been validated." %}
+ {% if user.profile.registration_valid %}
+ {% blocktrans %}You can now
log in .{% endblocktrans %}
+ {% else %}
+ {% trans "You must pay now your membership in the Kfet to complete your registration." %}
+ {% endif %}
+ {% else %}
+ {% trans "The link was invalid. The token may have expired. Please send us an email to activate your account." %}
+ {% endif %}
+{% endblock %}
diff --git a/templates/registration/email_validation_email_sent.html b/templates/registration/email_validation_email_sent.html
new file mode 100644
index 00000000..bd4cf8d8
--- /dev/null
+++ b/templates/registration/email_validation_email_sent.html
@@ -0,0 +1,7 @@
+{% extends "base.html" %}
+
+{% block content %}
+
Account Activation
+
+An email has been sent. Please click on the link to activate your account.
+{% endblock %}
\ No newline at end of file
diff --git a/templates/registration/future_profile_detail.html b/templates/registration/future_profile_detail.html
new file mode 100644
index 00000000..8c78fb8d
--- /dev/null
+++ b/templates/registration/future_profile_detail.html
@@ -0,0 +1,119 @@
+{% extends "base.html" %}
+{% load static %}
+{% load i18n %}
+{% load crispy_forms_tags %}
+{% load perms %}
+
+{% block content %}
+
+
+
+
+
+
+ {% trans 'name'|capfirst %}, {% trans 'first name' %}
+ {{ object.last_name }} {{ object.first_name }}
+
+ {% trans 'username'|capfirst %}
+ {{ object.username }}
+
+ {% trans 'email'|capfirst %}
+ {{ object.email }}
+
+ {% if not object.profile.email_confirmed and "member.change_profile_email_confirmed"|has_perm:object.profile %}
+
+
+
+ {% endif %}
+
+ {% trans 'password'|capfirst %}
+
+
+ {% trans 'Change password' %}
+
+
+
+ {% trans 'section'|capfirst %}
+ {{ object.profile.section }}
+
+ {% trans 'address'|capfirst %}
+ {{ object.profile.address }}
+
+ {% trans 'phone number'|capfirst %}
+ {{ object.profile.phone_number }}
+
+ {% trans 'paid'|capfirst %}
+ {{ object.profile.paid|yesno }}
+
+
+
+
+
+
+
+{% endblock %}
+
+{% block extrajavascript %}
+
+{% endblock %}
\ No newline at end of file
diff --git a/templates/registration/future_user_list.html b/templates/registration/future_user_list.html
new file mode 100644
index 00000000..1e10dcbb
--- /dev/null
+++ b/templates/registration/future_user_list.html
@@ -0,0 +1,53 @@
+{% extends "base.html" %}
+{% load render_table from django_tables2 %}
+{% load crispy_forms_tags %}
+{% load i18n %}
+
+{% block content %}
+
{% trans "New user" %}
+
+
+
+
+
+ {% if table.data %}
+ {% render_table table %}
+ {% else %}
+
+ {% trans "There is no pending user with this pattern." %}
+
+ {% endif %}
+
+{% endblock %}
+
+{% block extrajavascript %}
+
+{% endblock %}
diff --git a/templates/registration/mails/email_validation_email.html b/templates/registration/mails/email_validation_email.html
new file mode 100644
index 00000000..577c1220
--- /dev/null
+++ b/templates/registration/mails/email_validation_email.html
@@ -0,0 +1,15 @@
+{% load i18n %}
+
+{% trans "Hi" %} {{ user.username }},
+
+{% trans "You recently registered on the Note Kfet. Please click on the link below to confirm your registration." %}
+
+https://{{ domain }}{% url 'registration:email_validation' uidb64=uid token=token %}
+
+{% trans "This link is only valid for a couple of days, after that you will need to contact us to validate your email." %}
+
+{% trans "After that, you'll have to wait that someone validates your account before you can log in. You will need to pay your membership in the Kfet." %}
+
+{% trans "Thanks" %},
+
+{% trans "The Note Kfet team." %}
diff --git a/templates/member/signup.html b/templates/registration/signup.html
similarity index 100%
rename from templates/member/signup.html
rename to templates/registration/signup.html
diff --git a/tox.ini b/tox.ini
index 01bf4edb..73cf0525 100644
--- a/tox.ini
+++ b/tox.ini
@@ -34,7 +34,7 @@ commands =
[flake8]
# Ignore too many errors, should be reduced in the future
-ignore = D203, W503, E203, I100, I101
+ignore = D203, W503, E203, I100, I101, C901
exclude =
.tox,
.git,