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())