issue submission forms
This commit is contained in:
parent
e7fc0f24ae
commit
52c02a4101
18 changed files with 652 additions and 79 deletions
16
src/c3nav/site/forms.py
Normal file
16
src/c3nav/site/forms.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from django.forms import ModelForm
|
||||
|
||||
from c3nav.mapdata.forms import I18nModelFormMixin
|
||||
from c3nav.mapdata.models.report import Report
|
||||
|
||||
|
||||
class ReportIssueForm(I18nModelFormMixin, ModelForm):
|
||||
class Meta:
|
||||
model = Report
|
||||
fields = ['title', 'description']
|
||||
|
||||
|
||||
class ReportMissingLocationForm(I18nModelFormMixin, ModelForm):
|
||||
class Meta:
|
||||
model = Report
|
||||
fields = ['title', 'description', 'created_title', 'created_groups']
|
Loading…
Add table
Add a link
Reference in a new issue