alfortville: turn "info" screen into the same screen as others (#11080)
This commit is contained in:
parent
d551c14224
commit
cc2c3b4440
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in New Issue