From ba48adab6dee434213c9cb7a58d4d48e114b3c46 Mon Sep 17 00:00:00 2001 From: Skia Date: Fri, 29 Jul 2016 13:00:32 +0200 Subject: [PATCH] Improve launderette plannings and admin part --- core/templates/core/user_tools.jinja | 5 + launderette/migrations/0003_machine_type.py | 20 +++ .../migrations/0004_token_start_date.py | 22 +++ launderette/models.py | 10 +- .../launderette/launderette_book.jinja | 23 ++- .../launderette/launderette_detail.jinja | 9 +- launderette/urls.py | 3 + launderette/views.py | 105 +++++++++--- locale/fr/LC_MESSAGES/django.mo | Bin 20085 -> 20385 bytes locale/fr/LC_MESSAGES/django.po | 150 ++++++++---------- 10 files changed, 232 insertions(+), 115 deletions(-) create mode 100644 launderette/migrations/0003_machine_type.py create mode 100644 launderette/migrations/0004_token_start_date.py diff --git a/core/templates/core/user_tools.jinja b/core/templates/core/user_tools.jinja index a577ed71..e88ccb16 100644 --- a/core/templates/core/user_tools.jinja +++ b/core/templates/core/user_tools.jinja @@ -16,12 +16,17 @@ {% if user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or user.is_in_group(settings.SITH_GROUPS['root']['name']) %}
  • {% trans %}Subscriptions{% endtrans %}
  • {% endif %} +
    {% trans %}Launderette{% endtrans %}
    + {% if user.is_in_group(settings.SITH_GROUPS['launderette-admin']['name']) %} +
  • {% trans %}Launderette{% endtrans %}
  • + {% endif %}

    {% trans %}Counters{% endtrans %}