From 80f72df1de43c78f1c04acd35f81b9485d092449 Mon Sep 17 00:00:00 2001 From: Skia Date: Wed, 27 Jul 2016 20:05:45 +0200 Subject: [PATCH] Add product type management views --- core/templates/core/create.jinja | 2 +- core/templates/core/page_hist.jinja | 2 +- core/templates/core/user_tools.jinja | 3 +- counter/models.py | 27 ++- .../templates/counter/producttype_list.jinja | 24 +++ counter/urls.py | 3 + counter/views.py | 41 ++++- locale/fr/LC_MESSAGES/django.mo | Bin 18262 -> 19244 bytes locale/fr/LC_MESSAGES/django.po | 157 +++++++++++++----- 9 files changed, 201 insertions(+), 58 deletions(-) create mode 100644 counter/templates/counter/producttype_list.jinja diff --git a/core/templates/core/create.jinja b/core/templates/core/create.jinja index b175ede7..fcd5e201 100644 --- a/core/templates/core/create.jinja +++ b/core/templates/core/create.jinja @@ -1,7 +1,7 @@ {% extends "core/base.jinja" %} {% block content %} -

{% trans %}Create{% endtrans %}

+

{% trans name=form.instance.__class__._meta.verbose_name %}Create {{ name }}{% endtrans %}

{% csrf_token %} {{ form.as_p() }} diff --git a/core/templates/core/page_hist.jinja b/core/templates/core/page_hist.jinja index 2694ba82..a7554045 100644 --- a/core/templates/core/page_hist.jinja +++ b/core/templates/core/page_hist.jinja @@ -14,7 +14,7 @@ {% else %}
  • {{ r.revision }} - {{ user_profile_link(r.author) }} - - {{ page.revisions.last().date|localtime|date(DATETIME_FORMAT) }} {{ page.revisions.last().date|localtime|time(DATETIME_FORMAT) }}
  • + {{ r.date|localtime|date(DATETIME_FORMAT) }} {{ r.date|localtime|time(DATETIME_FORMAT) }} {% endif %} {% endfor %} diff --git a/core/templates/core/user_tools.jinja b/core/templates/core/user_tools.jinja index d3fc0477..a577ed71 100644 --- a/core/templates/core/user_tools.jinja +++ b/core/templates/core/user_tools.jinja @@ -23,7 +23,8 @@