{% trans name=form.instance.__class__._meta.verbose_name %}Create {{ name }}{% endtrans %}
-{% trans name=form.instance.__class__._meta.verbose_name %}Create {{ name }}{% endtrans %}
+{% trans %}Delete confirmation{% endtrans %}
-{% trans %}Delete confirmation{% endtrans %}
+{% trans obj=object %}Are you sure you want to delete "{{ obj }}"?{% endtrans %}
-{% trans obj=object %}Edit {{ obj }}{% endtrans %}
-{% else %} -{% trans %}Save{% endtrans %}
-{% endif %} -{% trans obj=object %}Edit {{ obj }}{% endtrans %}
+ {% else %} +{% trans %}Save{% endtrans %}
+ {% endif %} +-{% if file %} -{% block file %} -{% endblock %} -{% endif %} + {% if file %} + {% block file %} + {% endblock %} + {% endif %} -{% block script %} -{{ super() }} -{% if popup %} - -{% endif %} -{% endblock %} + {% block script %} + {{ super() }} + {% if popup %} + + {% endif %} + {% endblock %} {% endblock %} diff --git a/core/templates/core/file_delete_confirm.jinja b/core/templates/core/file_delete_confirm.jinja index 3efd2bd7f..521413e29 100644 --- a/core/templates/core/file_delete_confirm.jinja +++ b/core/templates/core/file_delete_confirm.jinja @@ -1,18 +1,18 @@ {% extends "core/file.jinja" %} {% block title %} -{% trans %}Delete confirmation{% endtrans %} + {% trans %}Delete confirmation{% endtrans %} {% endblock %} {% block file %} -
{% trans %}Delete confirmation{% endtrans %}
-{% trans %}Delete confirmation{% endtrans %}
+{% trans obj=object %}Are you sure you want to delete "{{ obj }}"?{% endtrans %}
--{% if file.is_folder %} - -{% else %} - -{% endif %} -{{ file.get_display_name() }} -
-{% trans %}Owner: {% endtrans %}{{ file.owner.get_display_name() }}
-{% if file.is_folder %} -{% if user.can_edit(file) %} -+
+ {% if file.is_folder %} + + {% else %} + + {% endif %} + {{ file.get_display_name() }} +
+{% trans %}Owner: {% endtrans %}{{ file.owner.get_display_name() }}
+ {% if file.is_folder %} + {% if user.can_edit(file) %} +| | | -
- {% if clipboard %} -{% trans %}Clipboard: {% endtrans %} -
-
- {% for f in clipboard %}
-
- {{ f.get_full_path() }} - {% endfor %} -
-
+
+ {% if clipboard %}
+
- {{ f.get_full_path() }} + {% endfor %} +
- +
- {% if f.is_folder %} - + {% else %} - + {% endif %} {{ f.get_display_name() }} {% endfor %} -
{% trans %}Clipboard: {% endtrans %} +
-
+ {% for f in clipboard %}
+
-
{% for f in file.children.order_by('-is_folder', 'name').all() %}
-
{% trans %}Real name: {% endtrans %}{{ file.file.name.split('/')[-1] }}
-{% trans %}Date: {% endtrans %}{{ file.date|localtime|date(DATETIME_FORMAT) }} - -{{ file.date|localtime|time(DATETIME_FORMAT) }}
-{% trans %}Type: {% endtrans %}{{ file.mime_type }}
-{% trans %}Size: {% endtrans %}{{ file.size }} {% trans %}bytes{% endtrans %}
+ + + {% else %} +{% trans %}Real name: {% endtrans %}{{ file.file.name.split('/')[-1] }}
+{% trans %}Date: {% endtrans %}{{ file.date|localtime|date(DATETIME_FORMAT) }} - + {{ file.date|localtime|time(DATETIME_FORMAT) }}
+{% trans %}Type: {% endtrans %}{{ file.mime_type }}
+{% trans %}Size: {% endtrans %}{{ file.size }} {% trans %}bytes{% endtrans %}
-{% trans %}Download{% endtrans %}
-{% endif %} -{% if not file.home_of and not file.home_of_club and file.parent %} -{% trans %}Delete{% endtrans %}
-{% endif %} -{% if user.is_com_admin %} -{% trans %}Moderate{% endtrans %}
-{% endif %} +{% trans %}Download{% endtrans %}
+ {% endif %} + {% if not file.home_of and not file.home_of_club and file.parent %} +{% trans %}Delete{% endtrans %}
+ {% endif %} + {% if user.is_com_admin %} +{% trans %}Moderate{% endtrans %}
+ {% endif %} {% endblock %} {% block script %} -{{ super() }} - + {{ super() }} + {% endblock %} diff --git a/core/templates/core/file_edit.jinja b/core/templates/core/file_edit.jinja index 38d746955..338fa2b9e 100644 --- a/core/templates/core/file_edit.jinja +++ b/core/templates/core/file_edit.jinja @@ -1,12 +1,12 @@ {% extends "core/file.jinja" %} {% block file %} -{% trans obj=object %}Edit {{ obj }}{% endtrans %}
-{% trans obj=object %}Edit {{ obj }}{% endtrans %}
+{% trans %}File list{% endtrans %}
--
- {% for f in file_list %}
-
- - {% if f.is_folder %} - - {% else %} - - {% endif %} - {{ f.name }} - {% endfor %} -
{% trans %}There is no file in this website.{% endtrans %}
-{% endif %} + {{ super() }} + {% if file_list %} +{% trans %}File list{% endtrans %}
+-
+ {% for f in file_list %}
+
- + {% if f.is_folder %} + + {% else %} + + {% endif %} + {{ f.name }} + {% endfor %} +
{% trans %}There is no file in this website.{% endtrans %}
+ {% endif %} {% endblock %} diff --git a/core/templates/core/file_moderation.jinja b/core/templates/core/file_moderation.jinja index ba46d8067..f8fd255e0 100644 --- a/core/templates/core/file_moderation.jinja +++ b/core/templates/core/file_moderation.jinja @@ -1,28 +1,28 @@ {% extends "core/base.jinja" %} {% block title %} -{% trans %}File moderation{% endtrans %} + {% trans %}File moderation{% endtrans %} {% endblock %} {% block content %} -{% trans %}File moderation{% endtrans %}
-{% trans %}File moderation{% endtrans %}
+
- {{ f.name }}
- {% trans %}Full name: {% endtrans %}{{ f.get_parent_path()+'/'+f.name }}
- {% trans %}Owner: {% endtrans %}{{ f.owner.get_display_name() }}
- {% trans %}Date: {% endtrans %}{{ f.date|date(DATE_FORMAT) }} {{ f.date|time(TIME_FORMAT) }}
+ {{ f.name }}
+ {% trans %}Full name: {% endtrans %}{{ f.get_parent_path()+'/'+f.name }}
+ {% trans %}Owner: {% endtrans %}{{ f.owner.get_display_name() }}
+ {% trans %}Date: {% endtrans %}{{ f.date|date(DATE_FORMAT) }} {{ f.date|time(TIME_FORMAT) }}
{% trans %}Moderate{% endtrans %} - - {% trans %}Delete{% endtrans %}
-{{ object }}
-{% trans %}Back to list{% endtrans %}
- {% if form.users_removed | length <= 0 %} -{% trans %}No user in this group{% endtrans %}
- {% else %} -- {% csrf_token %} - - {{ form.users_removed.errors }} - {% for user in form.users_removed %} - - {% endfor %} - -
{{ object }}
+{% trans %}Back to list{% endtrans %}
+ {% if form.users_removed | length <= 0 %} +{% trans %}No user in this group{% endtrans %}
+ {% else %}- {{ form.users_added.errors }} - - {{ form.users_added }} - {{ form.users_added.help_text }} -
- + {{ select_all_checkbox("add_users") }} ++ {% csrf_token %} + + {{ form.users_removed.errors }} + {% for user in form.users_removed %} + + {% endfor %} +
+ {{ form.users_added.errors }} + + {{ form.users_added }} + {{ form.users_added.help_text }} +
+ +{% trans %}Back to list{% endtrans %}
-{% trans %}Edit group{% endtrans %}
-{% trans %}Back to list{% endtrans %}
+{% trans %}Edit group{% endtrans %}
+{% trans %}Group list{% endtrans %}
-{% trans %}New group{% endtrans %}
-{% trans %}ID{% endtrans %} | -{% trans %}Group{% endtrans %} | -{% trans %}Description{% endtrans %} | -||
{{ group.id }} | -{{ group }} | -{{ group.description }} | -{% trans %}Edit{% endtrans %} | -{% trans %}Delete{% endtrans %} | -
{% trans %}Group list{% endtrans %}
+{% trans %}New group{% endtrans %}
+{% trans %}ID{% endtrans %} | +{% trans %}Group{% endtrans %} | +{% trans %}Description{% endtrans %} | +||
{{ group.id }} | +{{ group }} | +{{ group.description }} | +{% trans %}Edit{% endtrans %} | +{% trans %}Delete{% endtrans %} | +
{% trans %}Login{% endtrans %}
+{% trans %}Login{% endtrans %}
- {% if next %} - {% if user.is_authenticated %} -{% trans %}Your account doesn't have access to this page. To proceed, + {% if next %} + {% if user.is_authenticated %} +
{% trans %}Your account doesn't have access to this page. To proceed, please login with an account that has access.{% endtrans %}
- {% else %} -{% trans %}Please login or create an account to see this page.{% endtrans %}
- {% endif %} + {% else %} +{% trans %}Please login or create an account to see this page.{% endtrans %}
{% endif %} + {% endif %} -{% trans %}Your username and password didn't match. Please try again.{% endtrans %}
-- {% endif %} +
{% trans %}Your username and password didn't match. Please try again.{% endtrans %}
++ {% endif %} - {% csrf_token %} - {% render_honeypot_field %} + {% csrf_token %} + {% render_honeypot_field %} -
- {% trans %}Lost password?{% endtrans %} - - {% trans %}Create account{% endtrans %} -
-+ {% trans %}Lost password?{% endtrans %} + + {% trans %}Create account{% endtrans %} +
+ {% endblock %} diff --git a/core/templates/core/macros.jinja b/core/templates/core/macros.jinja index 02a3ceaed..2344de379 100644 --- a/core/templates/core/macros.jinja +++ b/core/templates/core/macros.jinja @@ -1,155 +1,155 @@ {% macro user_profile_link(user) -%} -{{ user.get_display_name() }} + {{ user.get_display_name() }} {%- endmacro %} {% macro user_profile_link_short_name(user) -%} -{{ user.get_short_name() }} + {{ user.get_short_name() }} {%- endmacro %} {% macro user_link_with_pict(user) -%} - + {{ user.get_mini_item()|safe }} - + {%- endmacro %} {% macro link_news_logo(news) -%} - {% if news.club.logo -%} - {{ news.club.logo.url }} - {% else -%} - {{ static("com/img/news.png") }} - {% endif %} + {% if news.club.logo -%} + {{ news.club.logo.url }} + {% else -%} + {{ static("com/img/news.png") }} + {% endif %} {%- endmacro %} {% macro gen_news_metatags(news) -%} - - - - - - - - + + + + + + + + {%- endmacro %} {% macro facebook_share(news) -%} -{% trans %}Share on Facebook{% endtrans %} + {% trans %}Share on Facebook{% endtrans %} {%- endmacro %} {% macro tweet(news) -%} -{% trans %}Tweet{% endtrans %} + {% trans %}Tweet{% endtrans %} {%- endmacro %} {% macro fb_quick(news) -%} - + {%- endmacro %} {% macro tweet_quick(news) -%} - + {%- endmacro %} {% macro user_mini_profile(user) %} -![Promo {{ user.promo }} Promo {{ user.promo }}]({{ static('core/img/promo_%02d.png' % user.promo) }})
![Promo {{ user.promo }} Promo {{ user.promo }}]({{ static('core/img/promo_%02d.png' % user.promo) }})
![{% trans %}Profile{% endtrans %} {% trans %}Profile{% endtrans %}]({{ static('core/img/unknown.jpg') }})
- {% trans %}Account number: {% endtrans %}{{ user.customer.account_id }}
+ {% trans subscription_end=user.subscriptions.order_by('subscription_end').last().subscription_end %}Subscribed until {{ subscription_end }}{% endtrans %}
+ {% trans %}Account number: {% endtrans %}{{ user.customer.account_id }}
{%- endmacro %} {% macro show_slots(user) %} - {% if user.slots.filter(start_date__gte=timezone.now()).exists() %} -
{% trans %}Slot{% endtrans %}
--
- {% for i in user.slots.filter(start_date__gte=timezone.now().replace(tzinfo=None)).all() %}
-
- {{ i.get_type_display() }} - {{i.machine.launderette }}, {{ i.start_date|date("l j") }} : - {{ i.start_date|time(DATETIME_FORMAT) }} | - {% trans %}Delete{% endtrans %} - {% endfor %} -
{% trans %}Slot{% endtrans %}
+-
+ {% for i in user.slots.filter(start_date__gte=timezone.now().replace(tzinfo=None)).all() %}
+
- {{ i.get_type_display() }} - {{i.machine.launderette }}, {{ i.start_date|date("l j") }} : + {{ i.start_date|time(DATETIME_FORMAT) }} | + {% trans %}Delete{% endtrans %} + {% endfor %} +
{% trans %}Tokens{% endtrans %}
--
- {% for i in user.tokens.all() %}
-
- {{ i }} - {% endfor %} -
{% trans %}Tokens{% endtrans %}
+-
+ {% for i in user.tokens.all() %}
+
- {{ i }} + {% endfor %} +
{% trans page_name=page.name %}You're seeing the history of page "{{ page_name }}"{% endtrans %}
--
+
- {% trans %}last{% endtrans %} - - {{ user_profile_link(page.revisions.last().author) }} - - {{ page.revisions.last().date|localtime|date(DATETIME_FORMAT) }} {{ page.revisions.last().date|localtime|time(DATETIME_FORMAT) }} - {% else %} + {{ user_profile_link(page.revisions.last().author) }} - + {{ page.revisions.last().date|localtime|date(DATETIME_FORMAT) }} {{ page.revisions.last().date|localtime|time(DATETIME_FORMAT) }} + {% else %}
- {{ r.revision }} - - {{ user_profile_link(r.author) }} - - {{ r.date|localtime|date(DATETIME_FORMAT) }} {{ r.date|localtime|time(DATETIME_FORMAT) }} - {% endif %} + {{ user_profile_link(r.author) }} - + {{ r.date|localtime|date(DATETIME_FORMAT) }} {{ r.date|localtime|time(DATETIME_FORMAT) }} + {% endif %} {% endfor %} -
{% trans page_name=page.name %}You're seeing the history of page "{{ page_name }}"{% endtrans %}
+-
{% for r in (page.revisions.all()|sort(attribute='date', reverse=True)) %}
- {% if loop.index < 2 %}
+ {% if loop.index < 2 %}
{% trans %}Edit page{% endtrans %}
-{% trans %}Edit page{% endtrans %}
+{% trans %}Notification list{% endtrans %}
--
-{% for n in notification_list %}
- {% if n.viewed %}
-
- - {% else %} -
-
- {% endif %}
-
+
{% trans %}Notification list{% endtrans %}
+-
+ {% for n in notification_list %}
+ {% if n.viewed %}
+
- + {% else %} +
-
+ {% endif %}
+
{{ n.date|localtime|date(DATE_FORMAT) }} {{
- n.date|localtime|time(DATETIME_FORMAT) }}
+ n.date|localtime|time(DATETIME_FORMAT) }}
{{ n }} -
-{% endfor %}
-
+ {% endfor %}
+
-{% if page %} -{% block page %} -{% endblock %} -{% else %} -
{% trans %}Page does not exist{% endtrans %}
-- {% trans %}Create it?{% endtrans %}
-{% endif %} + {% if page %} + {% block page %} + {% endblock %} + {% else %} +{% trans %}Page does not exist{% endtrans %}
++ {% trans %}Create it?{% endtrans %}
+ {% endif %} {% endblock %} diff --git a/core/templates/core/page_detail.jinja b/core/templates/core/page_detail.jinja index afa5d3ca8..054ee6122 100644 --- a/core/templates/core/page_detail.jinja +++ b/core/templates/core/page_detail.jinja @@ -1,16 +1,16 @@ {% extends "core/page.jinja" %} {% block page %} -{% if rev %} -{% trans rev_id=rev.revision %}This may not be the last update, you are seeing revision {{ rev_id }}!{% endtrans %}
-{{ rev.title }}
-{{ page.revisions.last().title }}
-{% trans rev_id=rev.revision %}This may not be the last update, you are seeing revision {{ rev_id }}!{% endtrans %}
+{{ rev.title }}
+{{ page.revisions.last().title }}
+{% trans %}Page history{% endtrans %}
-{{ page_history(page) }} +{% trans %}Page history{% endtrans %}
+ {{ page_history(page) }} {% endblock %} diff --git a/core/templates/core/page_list.jinja b/core/templates/core/page_list.jinja index 39e9b69fc..dfb8ea48f 100644 --- a/core/templates/core/page_list.jinja +++ b/core/templates/core/page_list.jinja @@ -1,20 +1,20 @@ {% extends "core/base.jinja" %} {% block title %} -{% trans %}Page list{% endtrans %} + {% trans %}Page list{% endtrans %} {% endblock %} {% block content %} -{% if page_list %} -{% trans %}Page list{% endtrans %}
--
- {% for p in page_list %}
-
- {{ p.get_display_name() }} - {% endfor %} -
{% trans %}Page list{% endtrans %}
+-
+ {% for p in page_list %}
+
- {{ p.get_display_name() }} + {% endfor %} +
{% trans %}Page properties{% endtrans %}
-{% trans %}Page properties{% endtrans %}
+{% trans user=target.get_display_name() %}Change password for {{ user }}{% endtrans %}
-{% endif %} -{% trans %}You successfully changed your password!{% endtrans %}
+{% trans %}You successfully changed your password!{% endtrans %}
{% endblock %} diff --git a/core/templates/core/password_reset.jinja b/core/templates/core/password_reset.jinja index b0a63fc3b..3f141d711 100644 --- a/core/templates/core/password_reset.jinja +++ b/core/templates/core/password_reset.jinja @@ -1,10 +1,10 @@ {% extends "core/base.jinja" %} {% block content %} -{% trans %}You successfully reset your password!{% endtrans %}
-{% trans %}Login{% endtrans %} +{% trans %}You successfully reset your password!{% endtrans %}
+ {% trans %}Login{% endtrans %} {% endblock %} diff --git a/core/templates/core/password_reset_confirm.jinja b/core/templates/core/password_reset_confirm.jinja index e90c9f367..fe172f1ff 100644 --- a/core/templates/core/password_reset_confirm.jinja +++ b/core/templates/core/password_reset_confirm.jinja @@ -1,14 +1,14 @@ {% extends "core/base.jinja" %} {% block content %} -{% if form %} -{% trans %}Password reset sent{% endtrans %}
+{% trans %}Password reset sent{% endtrans %}
--{% trans %}We've emailed you instructions for setting your password, if an account exists with the email you entered. You should -receive them shortly.{% endtrans %} -
++ {% trans %}We've emailed you instructions for setting your password, if an account exists with the email you entered. You should + receive them shortly.{% endtrans %} +
--{% trans %}If you don't receive an email, please make sure you've entered the address you registered with, and check your spam -folder.{% endtrans %} -
++ {% trans %}If you don't receive an email, please make sure you've entered the address you registered with, and check your spam + folder.{% endtrans %} +
{% endblock %} diff --git a/core/templates/core/password_reset_email.jinja b/core/templates/core/password_reset_email.jinja index 65532865e..6e0f6f63f 100644 --- a/core/templates/core/password_reset_email.jinja +++ b/core/templates/core/password_reset_email.jinja @@ -1,15 +1,15 @@ {% autoescape off %} -{% trans %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endtrans %} + {% trans %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endtrans %} -{% trans %}Please go to the following page and choose a new password:{% endtrans %} -{% block reset_link %} -{{ protocol }}://{{ domain }}{{ url('core:password_reset_confirm', uidb64=uid, token=token) }} -{% endblock %} -{% trans %}Your username, in case you've forgotten: {% endtrans %} {{ user.get_username() }} + {% trans %}Please go to the following page and choose a new password:{% endtrans %} + {% block reset_link %} + {{ protocol }}://{{ domain }}{{ url('core:password_reset_confirm', uidb64=uid, token=token) }} + {% endblock %} + {% trans %}Your username, in case you've forgotten: {% endtrans %} {{ user.get_username() }} -{% trans %}Thanks for using our site! {% endtrans %} + {% trans %}Thanks for using our site! {% endtrans %} -{% trans %}The {{ site_name }} team{% endtrans %} + {% trans %}The {{ site_name }} team{% endtrans %} {% endautoescape %} diff --git a/core/templates/core/poster_list.jinja b/core/templates/core/poster_list.jinja index 816c8332e..fe65658c9 100644 --- a/core/templates/core/poster_list.jinja +++ b/core/templates/core/poster_list.jinja @@ -1,53 +1,53 @@ {% extends "core/base.jinja" %} {% block script %} -{{ super() }} - + {{ super() }} + {% endblock %} {% block title %} -{% trans %}Poster{% endtrans %} + {% trans %}Poster{% endtrans %} {% endblock %} {% block content %} -{% trans %}Posters{% endtrans %}
-{% trans %}Posters{% endtrans %}
+{% trans %}Register{% endtrans %}
+{% trans %}Register{% endtrans %}
-{% trans %}Users{% endtrans %}
--
+
- +
- {{ user_link_with_pict(i) }} - + {% endfor %} -
- +
- {{ i }} - + {% endfor %} -
{% trans %}Users{% endtrans %}
+-
{% for i in result.users %}
-
{% trans %}Clubs{% endtrans %}
--
+
{% trans %}Clubs{% endtrans %}
+-
{% for i in result.clubs %}
-
-
{% trans %}Markdown{% endtrans %}
-{{- text_md -}}-
-
{% trans %}Render{% endtrans %}
-+
{% trans %}Markdown{% endtrans %}
+{{- text_md -}}+
+
{% trans %}Render{% endtrans %}
+{% trans %}Year{% endtrans %} | -{% trans %}Month{% endtrans %} | -{% trans %}Total{% endtrans %} | -
{% trans %}Year{% endtrans %} | +{% trans %}Month{% endtrans %} | +{% trans %}Total{% endtrans %} | +
{{ dict['date'].year }} | -{{ dict['date']|date("E") }} | -{{ dict['sum'] }} € | -
{{ dict['date'].year }} | +{{ dict['date']|date("E") }} | +{{ dict['sum'] }} € | +
{% trans %}User account{% endtrans %}
-{% trans %}Amount: {% endtrans %}{{ customer.amount }} €
-{% trans %}Account purchases{% endtrans %}
- {{ monthly(buyings_month) }} - {% endif %} - {% if refilled %} -{% trans %}Reloads{% endtrans %}
- {{ monthly(refilling_month) }} - {% endif %} -{% endif %} - {% if customer.user.invoices.exists() %} -{% trans %}Eboutic invoices{% endtrans %}
+ {% if customer %} +{% trans %}User account{% endtrans %}
+{% trans %}Amount: {% endtrans %}{{ customer.amount }} €
+{% trans %}Account purchases{% endtrans %}
+ {{ monthly(buyings_month) }} + {% endif %} + {% if refilled %} +{% trans %}Reloads{% endtrans %}
+ {{ monthly(refilling_month) }} + {% endif %} + {% endif %} + {% if customer.user.invoices.exists() %} +{% trans %}Eboutic invoices{% endtrans %}
{{ monthly(invoices_month) }} - {% endif %} - {% if etickets %} -{% trans %}Etickets{% endtrans %}
--
- {% for s in etickets %}
-
- {{ s.quantity }} x {{ s.product.eticket }} - {% endfor %} -
{% trans %}Etickets{% endtrans %}
+-
+ {% for s in etickets %}
+
- {{ s.quantity }} x {{ s.product.eticket }} + {% endfor %} +
{% trans %}User has no account{% endtrans %}
-{% endif %} + {% else %} +{% trans %}User has no account{% endtrans %}
+ {% endif %} {% endblock %} {% block script %} -{{ super() }} - + {% endblock %} diff --git a/core/templates/core/user_account_detail.jinja b/core/templates/core/user_account_detail.jinja index ccb35f38d..8c9b3c3c2 100644 --- a/core/templates/core/user_account_detail.jinja +++ b/core/templates/core/user_account_detail.jinja @@ -1,19 +1,19 @@ {% extends "core/base.jinja" %} {% block title %} -{% trans user_name=profile.get_display_name() %}{{ user_name }}'s account{% endtrans %} + {% trans user_name=profile.get_display_name() %}{{ user_name }}'s account{% endtrans %} {% endblock %} {% block content %} -{% if customer %} -{% trans %}User account{% endtrans %}
-{% trans %}Amount: {% endtrans %}{{ customer.amount }} €
- -{% if customer.buyings.exists() %} -{% trans %}Account purchases{% endtrans %}
-{% trans %}Date{% endtrans %} | {% trans %}Counter{% endtrans %} | {% trans %}Barman{% endtrans %} | @@ -21,85 +21,85 @@{% trans %}Quantity{% endtrans %} | {% trans %}Total{% endtrans %} | {% trans %}Payment method{% endtrans %} | -||
{{ i.date|localtime|date(DATETIME_FORMAT) }} - {{ i.date|localtime|time(DATETIME_FORMAT) }} | -{{ i.counter }} | -{{ i.seller.get_display_name() }} | -{{ i.label }} | -{{ i.quantity }} | -{{ i.quantity * i.unit_price }} € | -{{ i.get_payment_method_display() }} | - {% if i.is_owned_by(user) %} -{% trans %}Delete{% endtrans %} | - {% endif %} -
{{ i.date|localtime|date(DATETIME_FORMAT) }} - {{ i.date|localtime|time(DATETIME_FORMAT) }} | +{{ i.counter }} | +{{ i.seller.get_display_name() }} | +{{ i.label }} | +{{ i.quantity }} | +{{ i.quantity * i.unit_price }} € | +{{ i.get_payment_method_display() }} | + {% if i.is_owned_by(user) %} +{% trans %}Delete{% endtrans %} | + {% endif %} +
{% trans %}Reloads{% endtrans %}
-{% trans %}Reloads{% endtrans %}
+{% trans %}Date{% endtrans %} | -{% trans %}Counter{% endtrans %} | -{% trans %}Barman{% endtrans %} | -{% trans %}Amount{% endtrans %} | -{% trans %}Payment method{% endtrans %} | +{% trans %}Date{% endtrans %} | +{% trans %}Counter{% endtrans %} | +{% trans %}Barman{% endtrans %} | +{% trans %}Amount{% endtrans %} | +{% trans %}Payment method{% endtrans %} |
{{ i.date|localtime|date(DATETIME_FORMAT) }} - {{ i.date|localtime|time(DATETIME_FORMAT) }} | -{{ i.counter }} | -{{ i.operator.get_display_name() }} | -{{ i.amount }} € | -{{ i.get_payment_method_display() }} | - {% if i.is_owned_by(user) %} -{% trans %}Delete{% endtrans %} | - {% endif %} -
{% trans %}Eboutic invoices{% endtrans %}
-{{ i.date|localtime|date(DATETIME_FORMAT) }} - {{ i.date|localtime|time(DATETIME_FORMAT) }} | +{{ i.counter }} | +{{ i.operator.get_display_name() }} | +{{ i.amount }} € | +{{ i.get_payment_method_display() }} | + {% if i.is_owned_by(user) %} +{% trans %}Delete{% endtrans %} | + {% endif %} +
{% trans %}Eboutic invoices{% endtrans %}
+{% trans %}Date{% endtrans %} | -{% trans %}Items{% endtrans %} | -{% trans %}Amount{% endtrans %} | +{% trans %}Date{% endtrans %} | +{% trans %}Items{% endtrans %} | +{% trans %}Amount{% endtrans %} |
{{ i.date|localtime|date(DATETIME_FORMAT) }} - {{ i.date|localtime|time(DATETIME_FORMAT) }} | -+ | {{ i.date|localtime|date(DATETIME_FORMAT) }} - {{ i.date|localtime|time(DATETIME_FORMAT) }} | +
|
- {{ i.get_total() }} € | -
{% trans %}User has no account{% endtrans %}
+{% trans %}User has no account{% endtrans %}
{% endif %} {% endblock %} diff --git a/core/templates/core/user_clubs.jinja b/core/templates/core/user_clubs.jinja index f6e96b9aa..324f8389e 100644 --- a/core/templates/core/user_clubs.jinja +++ b/core/templates/core/user_clubs.jinja @@ -1,80 +1,80 @@ {% extends "core/base.jinja" %} {% block title %} - {% trans user_name=profile.get_display_name() %}{{ user_name }}'s club(s){% endtrans %} + {% trans user_name=profile.get_display_name() %}{{ user_name }}'s club(s){% endtrans %} {% endblock %} {% block content %} -{% trans%}Club(s){% endtrans %}
--
{% trans%}Current club(s) :{% endtrans %}
--
{% trans %}Club{% endtrans %} | -{% trans %}Role{% endtrans %} | -{% trans %}Description{% endtrans %} | -{% trans %}Since{% endtrans %} | -- | - | |||||
{% trans %}Club{% endtrans %} | +{% trans %}Role{% endtrans %} | +{% trans %}Description{% endtrans %} | +{% trans %}Since{% endtrans %} | ++ | + | |||||
{{ m.club }} | -{{ settings.SITH_CLUB_ROLES[m.role] }} | -{{ m.description }} | -{{ m.start_date }} | - {% if m.can_be_edited_by(user) %} +{{ m.club }} | +{{ settings.SITH_CLUB_ROLES[m.role] }} | +{{ m.description }} | +{{ m.start_date }} | + {% if m.can_be_edited_by(user) %}{% trans %}Mark as old{% endtrans %} | - {% endif %} - {% if user.is_root %} -{% trans %}Delete{% endtrans %} | - {% endif %} + {% endif %} + {% if user.is_root %} +{% trans %}Delete{% endtrans %} | + {% endif %}
-
{% trans%}Old club(s) :{% endtrans %}
--
+
{% trans%}Old club(s) :{% endtrans %}
++
{% trans %}Club{% endtrans %} | -{% trans %}Role{% endtrans %} | -{% trans %}Description{% endtrans %} | -{% trans %}From{% endtrans %} | -{% trans %}To{% endtrans %} | +|||||||
{% trans %}Club{% endtrans %} | +{% trans %}Role{% endtrans %} | +{% trans %}Description{% endtrans %} | +{% trans %}From{% endtrans %} | +{% trans %}To{% endtrans %} | -|||||||
{{ m.club }} | -{{ settings.SITH_CLUB_ROLES[m.role] }} | -{{ m.description }} | -{{ m.start_date }} | -{{ m.end_date }} | - {% if user.is_root %} -{% trans %}Delete{% endtrans %} | - {% endif %} +{{ m.club }} | +{{ settings.SITH_CLUB_ROLES[m.role] }} | +{{ m.description }} | +{{ m.start_date }} | +{{ m.end_date }} | + {% if user.is_root %} +{% trans %}Delete{% endtrans %} | + {% endif %}
{% trans %}Subscribed mailing lists{% endtrans %}
- {% for sub in profile.mailing_subscriptions.all() %} -{{ sub.mailing.email }} {% trans %}Unsubscribe{% endtrans %}
- {% endfor %} + {% if + profile.mailing_subscriptions.exists() + and (profile.id == user.id or user.is_root or user.is_com_admin) + %} +{% trans %}Subscribed mailing lists{% endtrans %}
+ {% for sub in profile.mailing_subscriptions.all() %} +{{ sub.mailing.email }} {% trans %}Unsubscribe{% endtrans %}
+ {% endfor %} {% endif %} {% endblock %} diff --git a/core/templates/core/user_detail.jinja b/core/templates/core/user_detail.jinja index b7651b88c..9f5824fc6 100644 --- a/core/templates/core/user_detail.jinja +++ b/core/templates/core/user_detail.jinja @@ -2,279 +2,279 @@ {% from "core/macros.jinja" import show_slots, show_tokens, user_subscription %} {%- block additional_css -%} - + {%- endblock -%} {% block title %} -{% trans user_name=profile.get_display_name() %}{{ user_name }}'s profile{% endtrans %} + {% trans user_name=profile.get_display_name() %}{{ user_name }}'s profile{% endtrans %} {% endblock %} {% block additional_js %} - + {% endblock %} {% block content %} -{{ profile.get_full_name() }}
- {% if profile.nick_name %} -{{ profile.get_full_name() }}
+ {% if profile.nick_name %} +-
![Promo {{ profile.promo }}]({{ static('core/img/promo_%02d.png' % profile.promo) }})
+
![Promo {{ profile.promo }}]({{ static('core/img/promo_%02d.png' % profile.promo) }})
![{% trans %}Profile{% endtrans %} {% trans %}Profile{% endtrans %}]({{ static('core/img/unknown.jpg') }})
![{% trans %}Profile{% endtrans %} {% trans %}Profile{% endtrans %}]({{ static('core/img/unknown.jpg') }})
![{% trans %}Profile{% endtrans %} {% trans %}Profile{% endtrans %}]({{ static('core/img/unknown.jpg') }})
![{% trans %}Profile{% endtrans %} {% trans %}Profile{% endtrans %}]({{ static('core/img/unknown.jpg') }})
![{% trans %}Avatar{% endtrans %} {% trans %}Avatar{% endtrans %}]({{ static('core/img/unknown.jpg') }})
![{% trans %}Avatar{% endtrans %} {% trans %}Avatar{% endtrans %}]({{ static('core/img/unknown.jpg') }})
![{% trans %}Scrub{% endtrans %} {% trans %}Scrub{% endtrans %}]({{ static('core/img/unknown.jpg') }})
![{% trans %}Scrub{% endtrans %} {% trans %}Scrub{% endtrans %}]({{ static('core/img/unknown.jpg') }})
- {% if profile.is_subscribed %} - {% if user == profile or user.is_root or user.is_board_member %} -
+ {% if profile.is_subscribed %} + {% if user == profile or user.is_root or user.is_board_member %} +
- {% if profile.was_subscribed and (user == profile or user.can_read_subscription_history)%} -
{% trans %}Subscription start{% endtrans %} | -{% trans %}Subscription end{% endtrans %} | -{% trans %}Subscription type{% endtrans %} | -{% trans %}Payment method{% endtrans %} | -
---|---|---|---|
{{ sub.subscription_start }} | -{{ sub.subscription_end }} | -{{ sub.subscription_type }} | -{{ sub.get_payment_method_display() }} | -
+{% if profile.was_subscribed and (user == profile or user.can_read_subscription_history)%} +
{% trans %}Subscription start{% endtrans %} | +{% trans %}Subscription end{% endtrans %} | +{% trans %}Subscription type{% endtrans %} | +{% trans %}Payment method{% endtrans %} | +
---|---|---|---|
{{ sub.subscription_start }} | +{{ sub.subscription_end }} | +{{ sub.subscription_type }} | +{{ sub.get_payment_method_display() }} | +
-
-
-
- {% for gift in gifts %}
-
- {{ gift }} - - - - - {% endfor %} -
+
+
-
+ {% for gift in gifts %}
+
- {{ gift }} + + + + + {% endfor %} +
{%- trans -%}Edit user profile{%- endtrans -%}
-{%- trans -%}Edit user profile{%- endtrans -%}
+![{%- trans -%}Profile{%- endtrans -%} {%- trans -%}Profile{%- endtrans -%}]({{ static('core/img/unknown.jpg') }})
{{ form["profile_pict"].label }}
- {{ form["profile_pict"] }} - {%- else -%} - {% trans %}To edit your profile picture, ask a member of the AE{% endtrans %} - {%- endif -%} - {%- if user.is_board_member and form.instance.profile_pict.id -%} - - {%- trans -%}Delete{%- endtrans -%} - - {%- endif -%} -![{%- trans -%}Profile{%- endtrans -%} {%- trans -%}Profile{%- endtrans -%}]({{ static('core/img/unknown.jpg') }})
![{%- trans -%}Profile{%- endtrans -%} {%- trans -%}Profile{%- endtrans -%}]({{ static('core/img/unknown.jpg') }})
{{ form["avatar_pict"].label }}
- {{ form["avatar_pict"] }} - {%- if user.is_board_member and form.instance.avatar_pict.id -%} - - {%- trans -%}Delete{%- endtrans -%} - - {%- endif -%} -{{ form["profile_pict"].label }}
+ {{ form["profile_pict"] }} + {%- else -%} + {% trans %}To edit your profile picture, ask a member of the AE{% endtrans %} + {%- endif -%} + {%- if user.is_board_member and form.instance.profile_pict.id -%} + + {%- trans -%}Delete{%- endtrans -%} + + {%- endif -%}![{%- trans -%}Profile{%- endtrans -%} {%- trans -%}Profile{%- endtrans -%}]({{ static('core/img/unknown.jpg') }})
{{ form["scrub_pict"].label }}
- {{ form["scrub_pict"] }} - {%- if user.is_board_member and form.instance.scrub_pict.id -%} - - {%- trans -%}Delete{%-endtrans -%} - - {%- endif -%} -![{%- trans -%}Profile{%- endtrans -%} {%- trans -%}Profile{%- endtrans -%}]({{ static('core/img/unknown.jpg') }})
{{ form["avatar_pict"].label }}
+ {{ form["avatar_pict"] }} + {%- if user.is_board_member and form.instance.avatar_pict.id -%} + + {%- trans -%}Delete{%- endtrans -%} + + {%- endif -%} +![{%- trans -%}Profile{%- endtrans -%} {%- trans -%}Profile{%- endtrans -%}]({{ static('core/img/unknown.jpg') }})
{{ form["scrub_pict"].label }}
+ {{ form["scrub_pict"] }} + {%- if user.is_board_member and form.instance.scrub_pict.id -%} + + {%- trans -%}Delete{%-endtrans -%} + + {%- endif -%} ++ {%- trans -%}Change my password{%- endtrans -%} +
+{%- elif user.is_root -%} ++ + {%- trans -%}Change user password{%- endtrans -%} + +
+{%- endif -%} - {%- if form.instance == user -%} -- {%- trans -%}Change my password{%- endtrans -%} -
- {%- elif user.is_root -%} -- - {%- trans -%}Change user password{%- endtrans -%} - -
- {%- endif -%} - -- -
++ +
- {%- trans -%}Username: {%- endtrans -%} {{ form.instance.username }}
-
- {%- if form.instance.customer -%}
+ {%- trans -%}Username: {%- endtrans -%} {{ form.instance.username }}
+
+ {%- if form.instance.customer -%}
{%- trans -%}Account number: {%- endtrans -%} {{ form.instance.customer.account_id }}
- {%- endif -%}
+ {%- endif -%}
{% trans %}Godfathers / Godmothers{% endtrans %}
{% if profile.godfathers.exists() %} --
- {% for u in profile.godfathers.all() %}
-
- - - {{ u.get_mini_item() | safe }} - - {{ delete_godfather(user, profile, u, True) }} - - {% endfor %} -
-
+ {% for u in profile.godfathers.all() %}
+
- + + {{ u.get_mini_item() | safe }} + + {{ delete_godfather(user, profile, u, True) }} + + {% endfor %} +
{% trans %}No godfathers / godmothers{% endtrans %} +
{% trans %}No godfathers / godmothers{% endtrans %} {% endif %}
{% trans %}Godchildren{% endtrans %}
{% if profile.godchildren.exists() %} --
- {% for u in profile.godchildren.all() %}
-
- - - {{ u.get_mini_item()|safe }} - - {{ delete_godfather(user, profile, u, False) }} - - {% endfor %} -
-
+ {% for u in profile.godchildren.all() %}
+
- + + {{ u.get_mini_item()|safe }} + + {{ delete_godfather(user, profile, u, False) }} + + {% endfor %} +
{% trans %}No godchildren{% endtrans %} +
{% trans %}No godchildren{% endtrans %} {% endif %} {% if profile == user or user.is_root %} -
-
- {% for u in user.__getattribute__(param).all() %}
-
-
-
+ {% if user.__getattribute__(param).exists() %}
+
-
+ {% for u in user.__getattribute__(param).all() %}
+
- + {{ u.get_short_name() }} - - {% if u in members_set %} +
- {% endfor %}
-
- {% trans %}Back to family{% endtrans %}
- {% if profile.__getattribute__(param).exists() %} - {% if param == "godchildren" %} -- {% trans %}Show a picture of the tree{% endtrans %}
-{% trans u=profile.get_short_name() %}Descent tree of {{ u }}{% endtrans %}
- {% else %} -- {% trans %}Show a picture of the tree{% endtrans %}
-{% trans u=profile.get_short_name() %}Ancestors tree of {{ u }}{% endtrans %}
- {% endif %} - {{ members_set.add(profile) or "" }} - {{ display_members_list(profile) }} ++ {% trans %}Back to family{% endtrans %}
+ {% if profile.__getattribute__(param).exists() %} + {% if param == "godchildren" %} ++ {% trans %}Show a picture of the tree{% endtrans %}
+{% trans u=profile.get_short_name() %}Descent tree of {{ u }}{% endtrans %}
{% else %} - {% if param == "godchildren" %} -{% trans %}No godchildren{% endtrans %} - {% else %} -
{% trans %}No godfathers / godmothers{% endtrans %} - {% endif %} +
+ {% trans %}Show a picture of the tree{% endtrans %}
+{% trans u=profile.get_short_name() %}Ancestors tree of {{ u }}{% endtrans %}
{% endif %} + {{ members_set.add(profile) or "" }} + {{ display_members_list(profile) }} + {% else %} + {% if param == "godchildren" %} +{% trans %}No godchildren{% endtrans %} + {% else %} +
{% trans %}No godfathers / godmothers{% endtrans %}
+ {% endif %}
+ {% endif %}
{% endblock %}
diff --git a/core/templates/core/user_group.jinja b/core/templates/core/user_group.jinja
index 3becceb8e..7fd30d615 100644
--- a/core/templates/core/user_group.jinja
+++ b/core/templates/core/user_group.jinja
@@ -1,16 +1,16 @@
{% extends "core/base.jinja" %}
{%- block additional_css -%}
-
+
{%- endblock -%}
{% block content %}
-{% trans user_name=profile.get_full_name() %}Edit user groups for {{ user_name }}{% endtrans %}
{% trans %}User list{% endtrans %}
--
-{% for u in user_list %}
-
- {{ u.get_display_name() }} -{% endfor %} -
{% trans %}User list{% endtrans %}
+-
+ {% for u in user_list %}
+
- {{ u.get_display_name() }} + {% endfor %} +
{{ a.name }}
-{{ a.name }}
++
{% endfor %} -
{% trans %}Preferences{% endtrans %}
-{% trans %}General{% endtrans %}
-{% trans %}Preferences{% endtrans %}
+{% trans %}General{% endtrans %}
+{% trans %}Trombi{% endtrans %}
+{% trans %}Trombi{% endtrans %}
- {% if trombi_form %} -{% trans trombi=user.trombi_user.trombi %}You already choose to be in that Trombi: {{ trombi }}.{% endtrans %}
-
- {% trans %}Go to my Trombi tools{% endtrans %}
-
{% trans trombi=user.trombi_user.trombi %}You already choose to be in that Trombi: {{ trombi }}.{% endtrans %}
+
+ {% trans %}Go to my Trombi tools{% endtrans %}
+
{% trans %}Student cards{% endtrans %}
+ {% if profile.customer %} +{% trans %}Student cards{% endtrans %}
- {% if profile.customer.student_cards.exists() %} --
- {% for card in profile.customer.student_cards.all() %}
-
- - {{ card.uid }} - - - - {% trans %}Delete{% endtrans %} - - - {% endfor %} -
- {% trans %}You can add a card by asking at a counter or add it yourself here. If you want to manually - add a student card yourself, you'll need a NFC reader. We store the UID of the card which is 14 characters long.{% endtrans %} -
- {% endif %} + {% if profile.customer.student_cards.exists() %} +-
+ {% for card in profile.customer.student_cards.all() %}
+
- + {{ card.uid }} + - + + {% trans %}Delete{% endtrans %} + + + {% endfor %} +
+ {% trans %}You can add a card by asking at a counter or add it yourself here. If you want to manually + add a student card yourself, you'll need a NFC reader. We store the UID of the card which is 14 characters long.{% endtrans %} +
+ {% endif %} -{% trans %}Permanencies{% endtrans %}
-{% trans %}Permanencies{% endtrans %}
+{% trans %}Buyings{% endtrans %}
{% trans %}Product top 10{% endtrans %}
-{% trans %}Product{% endtrans %} | -{% trans %}Quantity{% endtrans %} | -||
{% trans %}Product{% endtrans %} | +{% trans %}Quantity{% endtrans %} | +||
{{ p['product__name'] }} | -{{ p['product_sum'] }} | +{{ p['product__name'] }} | +{{ p['product_sum'] }} |
{% trans %}User Tools{% endtrans %}
{% trans %}Sith management{% endtrans %}
--
- {% if user.is_root %}
-
- {% trans %}Groups{% endtrans %} -
- {% trans %}Merge users{% endtrans %} -
- {% trans %}Operation logs{% endtrans %} -
- {% trans %}Delete user's forum messages{% endtrans %} - {% endif %} - {% if user.can_create_subscription or user.is_root %} -
- {% trans %}Subscriptions{% endtrans %} - {% endif %} - {% if user.is_board_member or user.is_root %} -
- {% trans %}Subscription stats{% endtrans %} -
- {% trans %}New club{% endtrans %} - {% endif %} -
{% trans %}Counters{% endtrans %}
--
- {% if user.is_root
- or user.is_in_group(pk=settings.SITH_GROUP_COUNTER_ADMIN_ID)
- %}
-
- {% trans %}General counters management{% endtrans %} -
- {% trans %}Products management{% endtrans %} -
- {% trans %}Product types management{% endtrans %} -
- {% trans %}Cash register summaries{% endtrans %} -
- {% trans %}Invoices call{% endtrans %} -
- {% trans %}Etickets{% endtrans %} - {% endif %} -
-
- {% for b in settings.SITH_COUNTER_BARS %}
- {% if user.is_in_group(name=b[1]+" admin") %}
- {% set c = Counter.objects.filter(id=b[0]).first() %}
-
-
- - {{ b[1] }} - - - - {% trans %}Edit{% endtrans %} - {% trans %}Stats{% endtrans %} - {% if c.stock %} - Stock - {% endif %} - - {% if c.stock %} - {% trans %}Shopping lists{% endtrans %} - {% else %} - {% trans %}Create new stock{% endtrans%} - {% endif %} - - - {% endif %} - {% endfor %} -
{% trans %}Accounting{% endtrans %}
--
- {% if user.is_root
- or user.is_in_group(pk=settings.SITH_GROUP_ACCOUNTING_ADMIN_ID)
- %}
-
- {% trans %}Refound Account{% endtrans %} -
- {% trans %}General accounting{% endtrans %} -
- {% trans %}Company list{% endtrans %} - {% endif %} - - {% for m in user.memberships.filter(end_date=None).filter(role__gte=7).all() -%} - {%- for b in m.club.bank_accounts.all() %} -
- - {% trans %}Bank account: {% endtrans %} - {{ b }} - - {%- endfor %} - - {% if m.club.club_account.exists() -%} - {% for ca in m.club.club_account.all() %} -
- - {% trans %}Club account: {% endtrans %} - {{ ca }} - - {%- endfor %} - {%- endif -%} - {%- endfor %} -
{% trans %}Communication{% endtrans %}
--
- {% if user.is_com_admin or user.is_root %}
-
- {% trans %}Create weekmail article{% endtrans %} -
- {% trans %}Weekmail{% endtrans %} -
- {% trans %}Weekmail destinations{% endtrans %} -
- {% trans %}Create news{% endtrans %} -
- {% trans %}Moderate news{% endtrans %} -
- {% trans %}Edit alert message{% endtrans %} -
- {% trans %}Edit information message{% endtrans %} -
- {% trans %}Moderate files{% endtrans %} -
- {% trans %}Mailing lists administration{% endtrans %} -
- {% trans %}Posters{% endtrans %} -
- {% trans %}Screens{% endtrans %} - {% endif %} - {% if user.is_in_group(pk=settings.SITH_GROUP_SAS_ADMIN_ID) %} -
- {% trans %}Moderate pictures{% endtrans %} - {% endif %} -
{% trans %}Club tools{% endtrans %}
--
- {% for m in user.memberships.filter(end_date=None).all() %}
-
- {{ m.club }} - {% endfor %} -
{% trans %}Pedagogy{% endtrans %}
- -{% trans %}Elections{% endtrans %}
--
-
- {% trans %}See available elections{% endtrans %} -
- {% trans %}See archived elections{% endtrans %} - {%- if user.is_subscribed -%} -
- {% trans %}Create a new election{% endtrans %} - {%- endif -%} -
{% trans %}Other tools{% endtrans %}
--
-
- {% trans %}Convert dokuwiki/BBcode syntax to Markdown{% endtrans %} -
- {% trans %}Trombi tools{% endtrans %} -
{% trans %}Sith management{% endtrans %}
+-
+ {% if user.is_root %}
+
- {% trans %}Groups{% endtrans %} +
- {% trans %}Merge users{% endtrans %} +
- {% trans %}Operation logs{% endtrans %} +
- {% trans %}Delete user's forum messages{% endtrans %} + {% endif %} + {% if user.can_create_subscription or user.is_root %} +
- {% trans %}Subscriptions{% endtrans %} + {% endif %} + {% if user.is_board_member or user.is_root %} +
- {% trans %}Subscription stats{% endtrans %} +
- {% trans %}New club{% endtrans %} + {% endif %} +
{% trans %}Counters{% endtrans %}
+-
+ {% if user.is_root
+ or user.is_in_group(pk=settings.SITH_GROUP_COUNTER_ADMIN_ID)
+ %}
+
- {% trans %}General counters management{% endtrans %} +
- {% trans %}Products management{% endtrans %} +
- {% trans %}Product types management{% endtrans %} +
- {% trans %}Cash register summaries{% endtrans %} +
- {% trans %}Invoices call{% endtrans %} +
- {% trans %}Etickets{% endtrans %} +{% endif %} +
-
+ {% for b in settings.SITH_COUNTER_BARS %}
+ {% if user.is_in_group(name=b[1]+" admin") %}
+ {% set c = Counter.objects.filter(id=b[0]).first() %}
+
+
- + {{ b[1] }} + + + + {% trans %}Edit{% endtrans %} + {% trans %}Stats{% endtrans %} + {% if c.stock %} + Stock + {% endif %} + + {% if c.stock %} + {% trans %}Shopping lists{% endtrans %} + {% else %} + {% trans %}Create new stock{% endtrans%} + {% endif %} + + + {% endif %} + {% endfor %} +
{% trans %}Accounting{% endtrans %}
+-
+ {% if user.is_root
+ or user.is_in_group(pk=settings.SITH_GROUP_ACCOUNTING_ADMIN_ID)
+ %}
+
- {% trans %}Refound Account{% endtrans %} +
- {% trans %}General accounting{% endtrans %} +
- {% trans %}Company list{% endtrans %} + {% endif %} + + {% for m in user.memberships.filter(end_date=None).filter(role__gte=7).all() -%} + {%- for b in m.club.bank_accounts.all() %} +
- + {% trans %}Bank account: {% endtrans %} + {{ b }} + + {%- endfor %} + + {% if m.club.club_account.exists() -%} + {% for ca in m.club.club_account.all() %} +
- + {% trans %}Club account: {% endtrans %} + {{ ca }} + + {%- endfor %} + {%- endif -%} + {%- endfor %} +
{% trans %}Communication{% endtrans %}
+-
+ {% if user.is_com_admin or user.is_root %}
+
- {% trans %}Create weekmail article{% endtrans %} +
- {% trans %}Weekmail{% endtrans %} +
- {% trans %}Weekmail destinations{% endtrans %} +
- {% trans %}Create news{% endtrans %} +
- {% trans %}Moderate news{% endtrans %} +
- {% trans %}Edit alert message{% endtrans %} +
- {% trans %}Edit information message{% endtrans %} +
- {% trans %}Moderate files{% endtrans %} +
- {% trans %}Mailing lists administration{% endtrans %} +
- {% trans %}Posters{% endtrans %} +
- {% trans %}Screens{% endtrans %} + {% endif %} + {% if user.is_in_group(pk=settings.SITH_GROUP_SAS_ADMIN_ID) %} +
- {% trans %}Moderate pictures{% endtrans %} + {% endif %} +
{% trans %}Club tools{% endtrans %}
+-
+ {% for m in user.memberships.filter(end_date=None).all() %}
+
- {{ m.club }} + {% endfor %} +
{% trans %}Pedagogy{% endtrans %}
+ +{% trans %}Elections{% endtrans %}
+-
+
- {% trans %}See available elections{% endtrans %} +
- {% trans %}See archived elections{% endtrans %} + {%- if user.is_subscribed -%} +
- {% trans %}Create a new election{% endtrans %} + {%- endif -%} +
{% trans %}Other tools{% endtrans %}
+ +{% trans counter_name=counter %}{{ counter_name }} activity{% endtrans %}
- {% if counter.type == 'BAR' %} -{% trans %}Barmen list{% endtrans %}
--
- {% if counter.barmen_list | length > 0 %}
- {% for b in counter.barmen_list %}
-
- {{ user_profile_link(b) }} - {% endfor %} - {% else %} - {% trans %}There is currently no barman connected.{% endtrans %} - {% endif %} -
{% trans counter_name=counter %}{{ counter_name }} activity{% endtrans %}
+ {% if counter.type == 'BAR' %} +{% trans %}Barmen list{% endtrans %}
+-
+ {% if counter.barmen_list | length > 0 %}
+ {% for b in counter.barmen_list %}
+
- {{ user_profile_link(b) }} + {% endfor %} + {% else %} + {% trans %}There is currently no barman connected.{% endtrans %} + {% endif %} +
{% trans %}Legend{% endtrans %}
-{% trans %}Legend{% endtrans %}
+{% trans %}Make a cash register summary{% endtrans %}
-{% trans %}Make a cash register summary{% endtrans %}
+- {% if field.name[:5] == "check" and field.name[8:] == "value" %} - {% set name = field.name[:7] + "_quantity" %} - {{ field.errors }} {{ field }} - {{ form[name].errors }} {{ form[name] }} - {% elif field.name[:5] != "check" %} - {{ field.errors }} {{ field }} - {% endif %} -
++ {% if field.name[:5] == "check" and field.name[8:] == "value" %} + {% set name = field.name[:7] + "_quantity" %} + {{ field.errors }} {{ field }} + {{ form[name].errors }} {{ form[name] }} + {% elif field.name[:5] != "check" %} + {{ field.errors }} {{ field }} + {% endif %} +
{% endfor %} -{% trans %}Cash register summary list{% endtrans %}
-{% trans %}Theoric sums{% endtrans %}
-{% trans %}Reloads{% endtrans %}
-
-{% for b,s in refilling_sums.items() %}
- {{ b }}: {{ s }} €
-{% endfor %}
-
{% trans %}Cash register summaries{% endtrans %}
-
-{% for b,s in summaries_sums.items() %}
- {{ b }}: {{ s }} €
-{% endfor %}
-
{% trans %}User{% endtrans %} | -{% trans %}Counter{% endtrans %} | -{% trans %}Date{% endtrans %} | -{% trans %}Total{% endtrans %} | -{% trans %}Emptied{% endtrans %} | -{% trans %}Comment{% endtrans %} | +{% trans %}User{% endtrans %} | +{% trans %}Counter{% endtrans %} | +{% trans %}Date{% endtrans %} | +{% trans %}Total{% endtrans %} | +{% trans %}Emptied{% endtrans %} | +{% trans %}Comment{% endtrans %} |
{{ user_profile_link(c.user) }} | -{{ c.counter }} | -{{ c.date|localtime|date(DATETIME_FORMAT) }} - {{ c.date|localtime|time(DATETIME_FORMAT) }} | -{{ c.get_total() }} € | - {% if c.emptied %} -{% trans %}yes{% endtrans %} | - {% else %} -- {% endif %} - | {{ c.comment }} | -{% trans %}Edit{% endtrans %} | -||||
{{ user_profile_link(c.user) }} | +{{ c.counter }} | +{{ c.date|localtime|date(DATETIME_FORMAT) }} - {{ c.date|localtime|time(DATETIME_FORMAT) }} | +{{ c.get_total() }} € | + {% if c.emptied %} +{% trans %}yes{% endtrans %} | + {% else %} ++ {% endif %} + | {{ c.comment }} | +{% trans %}Edit{% endtrans %} | +
-{% if is_paginated %} - {{ paginate(page_obj, paginator) }} -{% endif %} -{% else %} -{% trans %}There is no cash register summary in this website.{% endtrans %} -{% endif %} + +
+ {% if is_paginated %} + {{ paginate(page_obj, paginator) }} + {% endif %} + {% else %} + {% trans %}There is no cash register summary in this website.{% endtrans %} + {% endif %} {% endblock %} diff --git a/counter/templates/counter/counter_click.jinja b/counter/templates/counter/counter_click.jinja index ec018fe8d..743ba732c 100644 --- a/counter/templates/counter/counter_click.jinja +++ b/counter/templates/counter/counter_click.jinja @@ -2,12 +2,12 @@ {% from "core/macros.jinja" import user_mini_profile, user_subscription %} {% block title %} - {{ counter }} + {{ counter }} {% endblock %} {% block additional_js %} - - + + {% endblock %} {% block info_boxes %} @@ -18,180 +18,180 @@ {% endblock %} {% block content %} -
{{ counter }}
- -{% trans %}Customer{% endtrans %}
- {{ user_mini_profile(customer.user) }} - {{ user_subscription(customer.user) }} -{% trans %}Amount: {% endtrans %}{{ customer.amount }} €
-{% trans %}This is not a valid student card UID{% endtrans %}
- {% endif %} - -{% trans %}Registered cards{% endtrans %}
- {% if student_cards %} -{{ student_cards }}
--
- {% for card in student_cards %}
-
- {{ card.uid }} - {% endfor %} -
{{ counter }}
+ +{% trans %}Customer{% endtrans %}
+ {{ user_mini_profile(customer.user) }} + {{ user_subscription(customer.user) }} +{% trans %}Amount: {% endtrans %}{{ customer.amount }} €
+{% trans %}This is not a valid student card UID{% endtrans %}
+ {% endif %} + +{% trans %}Registered cards{% endtrans %}
+ {% if student_cards %} +{{ student_cards }}
+-
+ {% for card in student_cards %}
+
- {{ card.uid }} + {% endfor %} +
{% trans %}Selling{% endtrans %}
-{% trans %}Selling{% endtrans %}
+{% trans %}Basket: {% endtrans %}
- --
-
-
- Total: - - € -
- -{% trans %}Basket: {% endtrans %}
+ +-
+
+
{% trans %}Refilling{% endtrans %}
-+ Total: + + € +
+ +{% trans %}Refilling{% endtrans %}
+-
- {% for category in categories.keys() -%}
-
- {{ category }} - {%- endfor %} -
{{ category }}
- {% for p in categories[category] -%} --
+ {% for category in categories.keys() -%}
+
- {{ category }} + {%- endfor %} +
{{ category }}
+ {% for p in categories[category] -%} +{% trans %}New counter{% endtrans %}
-{% if counter_list %} -{% trans %}Counter admin list{% endtrans %}
-{% trans %}Eboutic{% endtrans %}
--
- {% for c in counter_list.filter(type="EBOUTIC").order_by('name') %}
-
- - {{ c }} - - {% if user.can_edit(c) %} - {% trans %}Edit{% endtrans %} - - {% trans %}Stats{% endtrans %} - - {% endif %} - {% if user.is_owner(c) %} - {% trans %}Props{% endtrans %} - - {% trans %}Reloads list{% endtrans %} - {% endif %} - - {% endfor %} -
{% trans %}Bars{% endtrans %}
--
- {% for c in counter_list.filter(type="BAR").order_by('name') %}
-
- - {{ c }} - - {% if user.can_edit(c) %} - {% trans %}Edit{% endtrans %} - - {% trans %}Stats{% endtrans %} - - {% endif %} - {% if c.stock %} - Stock - - {% trans %}Shopping lists{% endtrans %} - - {% else %} - {% trans %}Create new stock{% endtrans%} - - {% endif %} - {% if user.is_owner(c) %} - {% trans %}Props{% endtrans %} - - {% trans %}Reloads list{% endtrans %} - {% endif %} - - {% endfor %} -
{% trans %}Offices{% endtrans %}
--
- {% for c in counter_list.exclude(type="BAR").exclude(type="EBOUTIC").order_by('name') %}
-
- - {{ c }} - - {% if user.can_edit(c) %} - {% trans %}Edit{% endtrans %} - - {% trans %}Stats{% endtrans %} - - {% endif %} - {% if user.is_owner(c) %} - {% trans %}Props{% endtrans %} - {% endif %} - - {% endfor %} -
{% trans %}New counter{% endtrans %}
+ {% if counter_list %} +{% trans %}Counter admin list{% endtrans %}
+{% trans %}Eboutic{% endtrans %}
+-
+ {% for c in counter_list.filter(type="EBOUTIC").order_by('name') %}
+
- + {{ c }} - + {% if user.can_edit(c) %} + {% trans %}Edit{% endtrans %} - + {% trans %}Stats{% endtrans %} - + {% endif %} + {% if user.is_owner(c) %} + {% trans %}Props{% endtrans %} - + {% trans %}Reloads list{% endtrans %} + {% endif %} + + {% endfor %} +
{% trans %}Bars{% endtrans %}
+-
+ {% for c in counter_list.filter(type="BAR").order_by('name') %}
+
- + {{ c }} - + {% if user.can_edit(c) %} + {% trans %}Edit{% endtrans %} - + {% trans %}Stats{% endtrans %} - + {% endif %} + {% if c.stock %} + Stock - + {% trans %}Shopping lists{% endtrans %} - + {% else %} + {% trans %}Create new stock{% endtrans%} - + {% endif %} + {% if user.is_owner(c) %} + {% trans %}Props{% endtrans %} - + {% trans %}Reloads list{% endtrans %} + {% endif %} + + {% endfor %} +
{% trans %}Offices{% endtrans %}
+-
+ {% for c in counter_list.exclude(type="BAR").exclude(type="EBOUTIC").order_by('name') %}
+
- + {{ c }} - + {% if user.can_edit(c) %} + {% trans %}Edit{% endtrans %} - + {% trans %}Stats{% endtrans %} - + {% endif %} + {% if user.is_owner(c) %} + {% trans %}Props{% endtrans %} + {% endif %} + + {% endfor %} +
{% trans counter_name=counter %}{{ counter_name }} counter{% endtrans %}
-{% trans %}Sales{% endtrans %}
- {% if last_basket %} -{% trans %}Last selling: {% endtrans %}
-{% trans %}Client: {% endtrans %}{{ last_customer }} - {% trans %}New amount: {% endtrans %}{{ new_customer_amount }} €.
--
- {% for s in last_basket %}
-
- {{ s }} - {% endfor %} -
{% trans %}Total: {% endtrans %}{{ last_total }} €
- {% endif %} - {% if barmen %} -{% trans %}Enter client code:{% endtrans %}
-{% trans %}Please, login{% endtrans %}
- {% endif %} -{% trans counter_name=counter %}{{ counter_name }} counter{% endtrans %}
+{% trans %}Sales{% endtrans %}
+ {% if last_basket %} +{% trans %}Last selling: {% endtrans %}
+{% trans %}Client: {% endtrans %}{{ last_customer }} - {% trans %}New amount: {% endtrans %}{{ new_customer_amount }} €.
+-
+ {% for s in last_basket %}
+
- {{ s }} + {% endfor %} +
{% trans %}Total: {% endtrans %}{{ last_total }} €
+ {% endif %} + {% if barmen %} +{% trans %}Enter client code:{% endtrans %}
+{% trans %}Please, login{% endtrans %}
+ {% endif %} +{% trans %}Barman: {% endtrans %}
- {% for b in barmen %} +{% trans %}Barman: {% endtrans %}
+ {% for b in barmen %}{{ barman_logout_link(b) }}
- {% endfor %} -{% trans %}New eticket{% endtrans %}
-{% if eticket_list %} -{% trans %}Eticket list{% endtrans %}
--
- {% for t in eticket_list %}
-
- {{ t }} (ID: {{ t.product.id }} | Hash:
{{ t.secret }}
)
- {% endfor %}
-
{% trans %}New eticket{% endtrans %}
+ {% if eticket_list %} +{% trans %}Eticket list{% endtrans %}
+-
+ {% for t in eticket_list %}
+
- {{ t }} (ID: {{ t.product.id }} | Hash:
{{ t.secret }}
)
+ {% endfor %}
+
{% trans date=start_date|date("F Y") %}Invoices call for {{ date }}{% endtrans %}
-{% trans %}Choose another month: {% endtrans %}
-{% trans date=start_date|date("F Y") %}Invoices call for {{ date }}{% endtrans %}
+{% trans %}Choose another month: {% endtrans %}
+-
{% trans %}CB Payments{% endtrans %} : {{ sum_cb }} €
--
{% trans %}Club{% endtrans %} | -{% trans %}Sum{% endtrans %} | +{% trans %}Club{% endtrans %} | +{% trans %}Sum{% endtrans %} | - {% for i in sums %} + {% for i in sums %}
{{ i['club__name'] }} | -{{ i['selling_sum'] }} € | +{{ i['club__name'] }} | +{{ i['selling_sum'] }} € |
{% trans counter_name=counter %}{{ counter_name }} last operations{% endtrans %}
-{% trans %}Reloads{% endtrans %}
-{% trans %}Date{% endtrans %} | -{% trans %}Barman{% endtrans %} | -{% trans %}Customer{% endtrans %} | -{% trans %}Amount{% endtrans %} | -{% trans %}Payment method{% endtrans %} | -|||||||
{% trans %}Date{% endtrans %} | +{% trans %}Barman{% endtrans %} | +{% trans %}Customer{% endtrans %} | +{% trans %}Amount{% endtrans %} | +{% trans %}Payment method{% endtrans %} | +|||||||
{{ i.date|localtime|date(DATETIME_FORMAT) }} - {{ i.date|localtime|time(DATETIME_FORMAT) }} | -{{ i.operator.get_display_name() }} | -{{ i.customer.user.get_display_name() }} | -{{ i.amount }} € | -{{ i.get_payment_method_display() }} | -{% trans %}Delete{% endtrans %} | +{{ i.date|localtime|date(DATETIME_FORMAT) }} - {{ i.date|localtime|time(DATETIME_FORMAT) }} | +{{ i.operator.get_display_name() }} | +{{ i.customer.user.get_display_name() }} | +{{ i.amount }} € | +{{ i.get_payment_method_display() }} | +{% trans %}Delete{% endtrans %} |
{% trans %}Sales{% endtrans %}
-{% trans %}Date{% endtrans %} | -{% trans %}Barman{% endtrans %} | -{% trans %}Customer{% endtrans %} | -{% trans %}Label{% endtrans %} | -{% trans %}Quantity{% endtrans %} | -{% trans %}Total{% endtrans %} | -{% trans %}Payment method{% endtrans %} | -|||||||||
{% trans %}Date{% endtrans %} | +{% trans %}Barman{% endtrans %} | +{% trans %}Customer{% endtrans %} | +{% trans %}Label{% endtrans %} | +{% trans %}Quantity{% endtrans %} | +{% trans %}Total{% endtrans %} | +{% trans %}Payment method{% endtrans %} | +|||||||||
{{ i.date|localtime|date(DATETIME_FORMAT) }} - {{ i.date|localtime|time(DATETIME_FORMAT) }} | -{{ i.seller.get_display_name() }} | -{{ i.customer.user.get_display_name() }} | -{{ i.label }} | -{{ i.quantity }} | -{{ i.quantity * i.unit_price }} € | -{{ i.get_payment_method_display() }} | -{% trans %}Delete{% endtrans %} | +{{ i.date|localtime|date(DATETIME_FORMAT) }} - {{ i.date|localtime|time(DATETIME_FORMAT) }} | +{{ i.seller.get_display_name() }} | +{{ i.customer.user.get_display_name() }} | +{{ i.label }} | +{{ i.quantity }} | +{{ i.quantity * i.unit_price }} € | +{{ i.get_payment_method_display() }} | +{% trans %}Delete{% endtrans %} |
{% trans %}New product{% endtrans %}
-{% endif %} -{% if product_list %} -{% trans %}Product list{% endtrans %}
-{% for t in ProductType.objects.all().order_by('name') %} -{{ t }}
--
- {% for p in product_list.filter(product_type=t).all().order_by('name') %}
-
- {{ p }} ({{ p.code }}) + {% if current_tab == "products" %} +
- {{ p }} ({{ p.code }}) + {% endfor %} +
{% trans %}New product{% endtrans %}
+ {% endif %} + {% if product_list %} +{% trans %}Product list{% endtrans %}
+ {% for t in ProductType.objects.all().order_by('name') %} +{{ t }}
+-
+ {% for p in product_list.filter(product_type=t).all().order_by('name') %}
+
{% trans %}Uncategorized{% endtrans %}
--
- {% for p in product_list.filter(product_type=None).all().order_by('name') %}
-
- {{ p }} ({{ p.code }}) - {% endfor %} -
{% trans %}Uncategorized{% endtrans %}
+-
+ {% for p in product_list.filter(product_type=None).all().order_by('name') %}
+
- {{ p }} ({{ p.code }}) + {% endfor %} +
{% trans %}New product type{% endtrans %}
-{% if producttype_list %} -{% trans %}Product type list{% endtrans %}
--
- {% for t in producttype_list %}
-
- {{ t }} - {% endfor %} -
{% trans %}New product type{% endtrans %}
+ {% if producttype_list %} +{% trans %}Product type list{% endtrans %}
+-
+ {% for t in producttype_list %}
+
- {{ t }} + {% endfor %} +
{% trans %}Refilling{% endtrans %}
{% trans %}Customer{% endtrans %} | -{% trans %}Amount{% endtrans %} | -{% trans %}Payment method{% endtrans %} | -{% trans %}Seller{% endtrans %} | -{% trans %}Date{% endtrans %} - | {% trans %}Actions{% endtrans %} | -
---|---|---|---|---|---|
{{ refilling.customer }} | -{{ refilling.amount }} | -{{ refilling.payment_method }} | -{{ refilling.operator }} | -{{ refilling.date }} | -Delete | -
{% trans %}Report this comment{% endtrans %}
{{ comment.publish_date.strftime('%d/%m/%Y') }}
{{ user_profile_link(comment.author) }}