From cc2c3b4440bf83c4bbd1423c1c6c2098d7f4e287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 27 May 2016 11:44:28 +0200 Subject: [PATCH] alfortville: turn "info" screen into the same screen as others (#11080) --- welco/contrib/alfortville/views.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/welco/contrib/alfortville/views.py b/welco/contrib/alfortville/views.py index f62731e..4076d8f 100644 --- a/welco/contrib/alfortville/views.py +++ b/welco/contrib/alfortville/views.py @@ -171,6 +171,7 @@ def copies_ajax(request, *args, **kwargs): class MailTable(TemplateView): template_name = 'alfortville/mail-table.html' + button_text = _('Next') def get_context_data(self, *args, **kwargs): context = super(MailTable, self).get_context_data(**kwargs) @@ -192,8 +193,7 @@ class MailTable(TemplateView): context['subtype'] = self.subtype context['button_text'] = self.button_text context['title'] = self.title - if self.subtype != Inbox.INFO: - context['display_comments_field'] = True + context['display_comments_field'] = True return context @@ -213,7 +213,6 @@ class MailTable(TemplateView): class TableMandatoryAvis(MailTable): subtype = Inbox.MANDATORY_AVIS title = _('Mandatory Avis Copies') - button_text = _('Next') table_mandatory_avis = login_required(TableMandatoryAvis.as_view()) @@ -221,7 +220,6 @@ table_mandatory_avis = login_required(TableMandatoryAvis.as_view()) class TableAvis(MailTable): subtype = Inbox.AVIS title = _('Avis Copies') - button_text = _('Next') table_avis = login_required(TableAvis.as_view()) @@ -229,7 +227,6 @@ table_avis = login_required(TableAvis.as_view()) class TableInfo(MailTable): subtype = Inbox.INFO title = _('Info Copies') - button_text = _('Mark as Seen') table_info = login_required(TableInfo.as_view())