# Path: remo/reports/views.py
# LIST_NG_REPORTS_DEFAULT_SORT = 'created_date_desc'
# LIST_NG_REPORTS_VALID_SORTS = {
#     'reporter_desc': '-user__last_name,user__first_name',
#     'reporter_asc': 'user__last_name,user__first_name',
#     'mentor_desc': '-mentor__last_name,mentor__first_name',
#     'mentor_asc': 'mentor__last_name,mentor__first_name',
#     'activity_desc': '-activity__name',
#     'activity_asc': 'activity__name',
#     'report_date_desc': '-report_date',
#     'report_date_asc': 'report_date',
#     'created_date_desc': '-created_on',
#     'created_date_asc': 'created_on'}
# def edit_ng_report(request, display_name='', year=None, month=None, day=None, id=None):
# def view_ng_report(request, display_name, year, month, day=None, id=None):
# def delete_ng_report(request, display_name, year, month, day, id):
# def delete_ng_report_comment(request, display_name, year, month, day, id, comment_id):
# def list_ng_reports(request, mentor=None, rep=None, functional_area_slug=None):


from django.conf.urls import url
from remo.reports import views

OPTIONAL_PARAMETER_REGEX = r'(?:/(?P<day>\d+)/(?P<id>\d+))?'

urlpatterns = [
    url(r'^(?P<year>\d+)/(?P<month>\w+)%s/$' % OPTIONAL_PARAMETER_REGEX,

# Path: remo/reports/views.py
# LIST_NG_REPORTS_DEFAULT_SORT = 'created_date_desc'
# LIST_NG_REPORTS_VALID_SORTS = {
#     'reporter_desc': '-user__last_name,user__first_name',
#     'reporter_asc': 'user__last_name,user__first_name',
#     'mentor_desc': '-mentor__last_name,mentor__first_name',
#     'mentor_asc': 'mentor__last_name,mentor__first_name',
#     'activity_desc': '-activity__name',
#     'activity_asc': 'activity__name',
#     'report_date_desc': '-report_date',
#     'report_date_asc': 'report_date',
#     'created_date_desc': '-created_on',
#     'created_date_asc': 'created_on'}
# def edit_ng_report(request, display_name='', year=None, month=None, day=None, id=None):
# def view_ng_report(request, display_name, year, month, day=None, id=None):
# def delete_ng_report(request, display_name, year, month, day, id):
# def delete_ng_report_comment(request, display_name, year, month, day, id, comment_id):
# def list_ng_reports(request, mentor=None, rep=None, functional_area_slug=None):


# Path: remo/reports/r_urls.py
from django.conf.urls import url
from remo.reports import views


OPTIONAL_PARAMETER_REGEX = r'(?:/(?P<day>\d+)/(?P<id>\d+))?'

urlpatterns = [
    url(r'^(?P<year>\d+)/(?P<month>\w+)%s/$' % OPTIONAL_PARAMETER_REGEX,

        views.view_ng_report, name='reports_ng_view_report'),