Mercurial > public > sg101
comparison news/forms.py @ 1003:fa52bfb28217
Set id on submit news form for image related js.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 26 Nov 2015 10:47:24 -0600 |
parents | 19b86e684cc2 |
children | 21c592cac71c |
comparison
equal
deleted
inserted
replaced
1002:28d68f97cb26 | 1003:fa52bfb28217 |
---|---|
15 """Form for a user to submit a news story to the admins for review.""" | 15 """Form for a user to submit a news story to the admins for review.""" |
16 title = forms.CharField(widget=forms.TextInput(attrs={'size': 52})) | 16 title = forms.CharField(widget=forms.TextInput(attrs={'size': 52})) |
17 short_markup = forms.CharField( | 17 short_markup = forms.CharField( |
18 label="Article text", | 18 label="Article text", |
19 widget=forms.Textarea(attrs={ | 19 widget=forms.Textarea(attrs={ |
20 'id': 'id_body', # needed for image related js | |
20 'rows': 60, | 21 'rows': 60, |
21 'cols': 80, | 22 'cols': 80, |
22 'class': 'markItUp smileyTarget', | 23 'class': 'markItUp smileyTarget', |
23 'style': 'height:500px', | 24 'style': 'height:500px', |
24 })) | 25 })) |