# Path: timepiece/contracts/views.py
# class ContractDetail(DetailView):
# class ContractList(ListView):
# class ListInvoices(SearchListView):
# class InvoiceDetail(DetailView):
# class InvoiceEntriesDetail(InvoiceDetail):
# class InvoiceDetailCSV(CSVViewMixin, InvoiceDetail):
# class InvoiceEdit(InvoiceDetail):
# class InvoiceDelete(InvoiceDetail):
#     def get_context_data(self, *args, **kwargs):
#     def get_context_data(self, *args, **kwargs):
# def create_invoice(request):
# def list_outstanding_invoices(request):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def get_context_data(self, **kwargs):
#     def get_filename(self, context):
#     def convert_context_to_csv(self, context):
#     def get_context_data(self, **kwargs):
#     def post(self, request, **kwargs):
#     def post(self, request, **kwargs):
# def delete_invoice_entry(request, invoice_id, entry_id):


from django.conf.urls import url
from timepiece.contracts import views



urlpatterns = [
    # Contracts
    url(r'^contract/$',
        views.ContractList.as_view(),
        name='list_contracts'),
    url(r'^contract/(?P<contract_id>\d+)/$',
        views.ContractDetail.as_view(),
        name='view_contract'),

    # Invoices
    url(r'invoice/$',
        views.ListInvoices.as_view(),
        name='list_invoices'),
    url(r'invoice/outstanding/$',
        views.list_outstanding_invoices,
        name='list_outstanding_invoices'),
    url(r'invoice/create/$',
        views.create_invoice,
        name='create_invoice'),
    url(r'invoice/(?P<invoice_id>\d+)/$',

# Path: timepiece/contracts/views.py
# class ContractDetail(DetailView):
# class ContractList(ListView):
# class ListInvoices(SearchListView):
# class InvoiceDetail(DetailView):
# class InvoiceEntriesDetail(InvoiceDetail):
# class InvoiceDetailCSV(CSVViewMixin, InvoiceDetail):
# class InvoiceEdit(InvoiceDetail):
# class InvoiceDelete(InvoiceDetail):
#     def get_context_data(self, *args, **kwargs):
#     def get_context_data(self, *args, **kwargs):
# def create_invoice(request):
# def list_outstanding_invoices(request):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def get_context_data(self, **kwargs):
#     def get_filename(self, context):
#     def convert_context_to_csv(self, context):
#     def get_context_data(self, **kwargs):
#     def post(self, request, **kwargs):
#     def post(self, request, **kwargs):
# def delete_invoice_entry(request, invoice_id, entry_id):


# Path: timepiece/contracts/urls.py
from django.conf.urls import url
from timepiece.contracts import views




urlpatterns = [
    # Contracts
    url(r'^contract/$',
        views.ContractList.as_view(),
        name='list_contracts'),
    url(r'^contract/(?P<contract_id>\d+)/$',
        views.ContractDetail.as_view(),
        name='view_contract'),

    # Invoices
    url(r'invoice/$',
        views.ListInvoices.as_view(),
        name='list_invoices'),
    url(r'invoice/outstanding/$',
        views.list_outstanding_invoices,
        name='list_outstanding_invoices'),
    url(r'invoice/create/$',
        views.create_invoice,
        name='create_invoice'),
    url(r'invoice/(?P<invoice_id>\d+)/$',

        views.InvoiceDetail.as_view(),