added directory prefill shortcut creation

This commit is contained in:
Xevion
2020-10-31 18:47:16 -05:00
parent 688ffe88dd
commit cda841065a
4 changed files with 27 additions and 8 deletions

View File

@@ -58,7 +58,10 @@ def file(request, directory_id, file):
def add(request):
return render(request, 'add.html', {'title': 'Add New Directory'})
context = {'title': 'Add New Directory'}
if 'path' in request.GET.keys():
context['path_prefill'] = request.GET['path']
return render(request, 'add.html', context)
def submit_new(request):