diff --git a/src/librehatti/print/urls.py b/src/librehatti/print/urls.py new file mode 100644 index 0000000..c8b3929 --- /dev/null +++ b/src/librehatti/print/urls.py @@ -0,0 +1,6 @@ +from django.conf.urls import url, patterns + +urlpatterns = patterns('librehatti.print.views', + url(r'^addmaterial/', 'add_material'), + +) diff --git a/src/librehatti/print/views.py b/src/librehatti/print/views.py deleted file mode 100644 index 2054430..0000000 --- a/src/librehatti/print/views.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.shortcuts import render -from librehatti.catalog.models import * - - diff --git a/src/librehatti/urls.py b/src/librehatti/urls.py index 8add822..15fb817 100644 --- a/src/librehatti/urls.py +++ b/src/librehatti/urls.py @@ -10,5 +10,6 @@ url(r'^$', 'librehatti.catalog.views.index'), url(r'^catalog/', include('librehatti.catalog.urls')), url(r'^useraccounts/', include('useraccounts.urls')), + url(r'^print/', include('librehatti.print.urls')), url(r'^admin/', include(admin.site.urls)), ) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) diff --git a/src/templates/print/form.html b/src/templates/print/form.html index 4745a24..bf18ce2 100644 --- a/src/templates/print/form.html +++ b/src/templates/print/form.html @@ -3,12 +3,12 @@ Lab Reports -
- {% csrf_token %} + + {% csrf_token %} Material: - + {% for i in material_name %} + {% endfor %}

Time span: