summaryrefslogtreecommitdiffstats
path: root/core/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/forms.py')
-rw-r--r--core/forms.py30
1 files changed, 20 insertions, 10 deletions
diff --git a/core/forms.py b/core/forms.py
index 19a3b1b..f3df10a 100644
--- a/core/forms.py
+++ b/core/forms.py
@@ -68,18 +68,28 @@ class EntranceForm(ModelForm):
the other fields are present on the form, but use the default presentaiton style
'''
name = forms.CharField(required = False, widget=forms.TextInput(attrs={'size': '45'}))
- entrance_description = forms.CharField(required = False, widget=forms.Textarea(attrs={'rows':9}))
+ entrance_description = forms.CharField(required = False, widget=HTMLarea(
+ attrs={"height":"80%", "rows":20, 'placeholder': "Enter page content (using HTML)"}))
explorers = forms.CharField(required = False, widget=forms.TextInput(attrs={'size': '45'}))
#explorers = forms.CharField(required = False, widget=TinyMCE(attrs={'cols': 80, 'rows': 10}))
- map_description = forms.CharField(required = False, widget=forms.Textarea(attrs={'rows':3}))
- location_description = forms.CharField(required = False, widget=forms.Textarea(attrs={'rows':3}))
- approach = forms.CharField(required = False, widget=forms.Textarea(attrs={'rows':3}))
- underground_description = forms.CharField(required = False, widget=forms.Textarea(attrs={'rows':3}))
- photo = forms.CharField(required = False, widget=forms.Textarea(attrs={'rows':2}))
- marking_comment = forms.CharField(required = False, widget=forms.Textarea(attrs={'rows':2}))
- findability_description = forms.CharField(required = False, widget=forms.Textarea(attrs={'rows':2}))
- other_description = forms.CharField(required = False, widget=forms.Textarea(attrs={'rows':2}))
- bearings = forms.CharField(required = False, widget=forms.Textarea(attrs={'rows':2}))
+ map_description = forms.CharField(required = False, widget=HTMLarea(
+ attrs={"height":"80%", "rows":20, 'placeholder': "Enter page content (using HTML)"}))
+ location_description = forms.CharField(required = False, widget=HTMLarea(
+ attrs={"height":"80%", "rows":20, 'placeholder': "Enter page content (using HTML)"}))
+ approach = forms.CharField(required = False, widget=HTMLarea(
+ attrs={"height":"80%", "rows":20, 'placeholder': "Enter page content (using HTML)"}))
+ underground_description = forms.CharField(required = False, widget=HTMLarea(
+ attrs={"height":"80%", "rows":20, 'placeholder': "Enter page content (using HTML)"}))
+ photo = forms.CharField(required = False, widget=HTMLarea(
+ attrs={"height":"80%", "rows":20, 'placeholder': "Enter page content (using HTML)"}))
+ marking_comment = forms.CharField(required = False, widget=HTMLarea(
+ attrs={"height":"80%", "rows":20, 'placeholder': "Enter page content (using HTML)"}))
+ findability_description = forms.CharField(required = False, widget=HTMLarea(
+ attrs={"height":"80%", "rows":20, 'placeholder': "Enter page content (using HTML)"}))
+ other_description = forms.CharField(required = False, widget=HTMLarea(
+ attrs={"height":"80%", "rows":20, 'placeholder': "Enter page content (using HTML)"}))
+ bearings = forms.CharField(required = False, widget=HTMLarea(
+ attrs={"height":"80%", "rows":20, 'placeholder': "Enter page content (using HTML)"}))
other_station = forms.CharField(required=False)
tag_station = forms.CharField(required=False)
exact_station = forms.CharField(required=False)