diff --git a/PDMI/static/store/dropzone-style.css b/PDMI/static/store/dropzone-style.css new file mode 100644 index 0000000..5547961 --- /dev/null +++ b/PDMI/static/store/dropzone-style.css @@ -0,0 +1,3 @@ +.dropzone { + border-style: dashed; +} diff --git a/PDMI/store/templates/store/store-navbar.html b/PDMI/store/templates/store/store-navbar.html index 534e33b..454cea2 100644 --- a/PDMI/store/templates/store/store-navbar.html +++ b/PDMI/store/templates/store/store-navbar.html @@ -8,7 +8,7 @@ diff --git a/PDMI/store/templates/store/upload.html b/PDMI/store/templates/store/upload.html index 2de33ce..086d8c6 100644 --- a/PDMI/store/templates/store/upload.html +++ b/PDMI/store/templates/store/upload.html @@ -3,81 +3,81 @@ {% block extra_static %} + {% endblock extra_static %} +{% block navbar %} + {% include "store/store-navbar.html" %} +{% endblock navbar %} {% block body %} -
-
- - +
+
+ +
+ + +
+ +
+
+
+ + +
+
- - + +
{% endblock body %} diff --git a/PDMI/store/urls.py b/PDMI/store/urls.py index 2d52cc5..6c7dc75 100644 --- a/PDMI/store/urls.py +++ b/PDMI/store/urls.py @@ -23,5 +23,5 @@ urlpatterns = [ path('login/', views.CustomLoginView.as_view(), name='login'), path('signup/', views.SignUpView.as_view(), name='signup'), path('logout/', LogoutView.as_view(), name='logout'), - path('upload/', views.FileFieldView.as_view(), name='upload'), + path('upload/', views.UploadView.as_view(), name='upload'), ] diff --git a/PDMI/store/views.py b/PDMI/store/views.py index ec01af0..26dec6a 100644 --- a/PDMI/store/views.py +++ b/PDMI/store/views.py @@ -20,7 +20,7 @@ class CustomLoginView(BSModalLoginView): success_message = 'Success: You were successfully logged in.' extra_content = dict(success_url=reverse_lazy('index')) -class FileFieldView(FormView): +class UploadView(FormView): form_class = FileFieldForm template_name = 'store/upload.html'