diff --git a/django/website/hid/templates/hid/view.html b/django/website/hid/templates/hid/view.html new file mode 100644 index 0000000000000000000000000000000000000000..ac20d756409996bd6d59500b619d59ac8591bc4b --- /dev/null +++ b/django/website/hid/templates/hid/view.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block maincontent %} +<h2>View data</h2> +<p>{% trans "This is the view data page." %}</p> + +{% endblock maincontent %} diff --git a/django/website/hid/urls.py b/django/website/hid/urls.py index eb4ab3515ec3714e48c17ef3db837b525c5f4573..34b0e36002c8521b45de022bffcdf120a8e5b5a4 100644 --- a/django/website/hid/urls.py +++ b/django/website/hid/urls.py @@ -10,5 +10,6 @@ urlpatterns = patterns('', url(r'^sources/upload/$', login_required(UploadSpreadsheetView.as_view()), name='sources-upload'), url(r'^sources/(?P<label>\w+)/$', login_required(ListSources.as_view()), name='sources-edit'), url(r'^sources/$', login_required(ListSources.as_view()), name='sources'), + url(r'^view/$', login_required(TemplateView.as_view(template_name='hid/view.html')), name="data-view"), url(r'^$', login_required(TemplateView.as_view(template_name='hid/dashboard.html')), name="dashboard"), ) diff --git a/django/website/hid/views.py b/django/website/hid/views.py index 83aef1720ef9582cb0b74df40ae20b41b476987e..275f5e6bf5c811be350d5debf2e974aa5ab44cb3 100644 --- a/django/website/hid/views.py +++ b/django/website/hid/views.py @@ -33,7 +33,7 @@ class UploadSpreadsheetView(FormView): template_name = 'hid/upload.html' def get_success_url(self): - return reverse("sources") + return reverse("data-view") def form_valid(self, form): data = form.cleaned_data