mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 10:27:17 +00:00
Logbook entry initial form
This commit is contained in:
@@ -52,6 +52,29 @@ class TextForm(forms.Form): # not a model-form, just a form-form
|
||||
class ExpofileRenameForm(forms.Form): # not a model-form, just a form-form
|
||||
renameto = forms.CharField(strip=True, required=False)
|
||||
|
||||
class LogbookEditForm(forms.Form): # not a model-form, just a form-form
|
||||
author = forms.CharField(strip=True, required=False)
|
||||
|
||||
@login_required_if_public
|
||||
def logbookedit(request, year=None):
|
||||
"""Type in a logbook entry.
|
||||
No editing yet, name is implying a future enhancement
|
||||
"""
|
||||
author = "Zonker"
|
||||
if not year:
|
||||
year = 2023
|
||||
form = LogbookEditForm()
|
||||
return render(
|
||||
request,
|
||||
"logbookform.html",
|
||||
{
|
||||
"form": form,
|
||||
"year": year,
|
||||
"author": author,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
@login_required_if_public
|
||||
def expofilerename(request, filepath):
|
||||
"""Rename any single file in /expofiles/ - eventually.
|
||||
|
||||
Reference in New Issue
Block a user