Revision b7c802a2 snf-astakos-app/astakos/im/tables.py
b/snf-astakos-app/astakos/im/tables.py | ||
---|---|---|
172 | 172 |
|
173 | 173 |
# Table classes |
174 | 174 |
class UserProjectApplicationsTable(tables.Table): |
175 |
caption = _('My projects') |
|
175 | 176 |
|
176 | 177 |
def __init__(self, *args, **kwargs): |
177 | 178 |
self.user = None |
... | ... | |
187 | 188 |
name = tables.LinkColumn('astakos.im.views.project_detail', args=(A('pk'),)) |
188 | 189 |
issue_date = tables.DateColumn(format=DEFAULT_DATE_FORMAT) |
189 | 190 |
start_date = tables.DateColumn(format=DEFAULT_DATE_FORMAT) |
191 |
end_date = tables.DateColumn(format=DEFAULT_DATE_FORMAT) |
|
190 | 192 |
members_count = tables.Column(verbose_name=_("Enrolled"), default=0, |
191 | 193 |
sortable=False) |
192 |
membership_status = tables.Column(verbose_name=_("My status"), empty_values=(),
|
|
193 |
orderable=False)
|
|
194 |
membership_status = tables.Column(verbose_name=_("Status"), empty_values=(),
|
|
195 |
sortable=False)
|
|
194 | 196 |
project_action = RichLinkColumn(verbose_name=_('Action'), |
195 | 197 |
extra_context=action_extra_context, |
196 | 198 |
sortable=False) |
... | ... | |
205 | 207 |
|
206 | 208 |
class Meta: |
207 | 209 |
model = ProjectApplication |
208 |
fields = ('name', 'membership_status', 'issue_date', 'start_date', 'members_count') |
|
210 |
fields = ('name', 'membership_status', 'issue_date', 'start_date','end_date', 'members_count')
|
|
209 | 211 |
attrs = {'id': 'projects-list', 'class': 'my-projects alt-style'} |
210 |
caption = _('My projects') |
|
211 | 212 |
template = "im/table_render.html" |
212 | 213 |
|
213 | 214 |
|
Also available in: Unified diff