begin working on add directory functionality, finished bulma frontend form design

This commit is contained in:
Xevion
2020-10-31 18:03:25 -05:00
parent 5d6d21e97d
commit 4cc1402d21
4 changed files with 80 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
import os
from django.http import FileResponse
from django.http import FileResponse, HttpResponse
from django.shortcuts import render, get_object_or_404
from viewer.helpers import extra_listdir
@@ -54,3 +54,11 @@ def file(request, directory_id, file):
)
}
return render(request, 'message.html', context, status=500)
def add(request):
return render(request, 'add.html', {'title': 'Add New Directory'})
def submit_new(request):
return HttpResponse('')