X-Git-Url: https://code.grnet.gr/git/astakos/blobdiff_plain/d129db21120d052bf131b5716bf31dbd4e41efc1..28c06e759be8794020f9123eaeaac6123fa62ffb:/snf-astakos-app/astakos/im/forms.py diff --git a/snf-astakos-app/astakos/im/forms.py b/snf-astakos-app/astakos/im/forms.py index 5ee0d8b..5df37de 100644 --- a/snf-astakos-app/astakos/im/forms.py +++ b/snf-astakos-app/astakos/im/forms.py @@ -629,5 +629,21 @@ class TimelineForm(forms.Form): class AstakosGroupSortForm(forms.Form): sort_by = forms.ChoiceField(label='Sort by', - choices=(('groupname', 'Name'), ('kindname', 'Type')), + choices=(('groupname', 'Name'), + ('kindname', 'Type'), + ('issue_date', 'Issue Date'), + ('expiration_date', 'Expiration Date'), + ('approved_members_num', 'Participants'), + ('is_enabled', 'Status'), + ('moderation_enabled', 'Moderation'), + ('membership_status','Enrollment Status') + ), + required=False) + +class MembersSortForm(forms.Form): + sort_by = forms.ChoiceField(label='Sort by', + choices=(('person__email', 'User Id'), + ('person__first_name', 'Name'), + ('date_joined', 'Status') + ), required=False)