equal
deleted
inserted
replaced
124 widget=widgets.FullTinyMCE(attrs={'rows': 25, 'cols': 100})), |
124 widget=widgets.FullTinyMCE(attrs={'rows': 25, 'cols': 100})), |
125 'scope_path': forms.CharField(widget=forms.HiddenInput, |
125 'scope_path': forms.CharField(widget=forms.HiddenInput, |
126 required=True), |
126 required=True), |
127 'organization': forms.CharField(label='Organization Link ID', |
127 'organization': forms.CharField(label='Organization Link ID', |
128 required=True), |
128 required=True), |
|
129 'clean_content': cleaning.clean_html_content('content'), |
129 'clean_organization': cleaning.clean_link_id('organization'), |
130 'clean_organization': cleaning.clean_link_id('organization'), |
130 'clean_additional_info': cleaning.clean_url('additional_info'), |
131 'clean_additional_info': cleaning.clean_url('additional_info'), |
131 'clean': cleaning.validate_student_proposal('organization', |
132 'clean': cleaning.validate_student_proposal('organization', |
132 'scope_path', student_logic, org_logic), |
133 'scope_path', student_logic, org_logic), |
133 } |
134 } |
172 'required': False, |
173 'required': False, |
173 }, |
174 }, |
174 ] |
175 ] |
175 |
176 |
176 dynaproperties = params_helper.getDynaFields(dynafields) |
177 dynaproperties = params_helper.getDynaFields(dynafields) |
|
178 dynaproperties['clean_comment'] = cleaning.clean_html_content('comment') |
177 |
179 |
178 public_review_form = dynaform.newDynaForm(dynamodel=None, |
180 public_review_form = dynaform.newDynaForm(dynamodel=None, |
179 dynabase=helper.forms.BaseForm, dynainclude=None, |
181 dynabase=helper.forms.BaseForm, dynainclude=None, |
180 dynaexclude=None, dynaproperties=dynaproperties) |
182 dynaexclude=None, dynaproperties=dynaproperties) |
181 params['public_review_form'] = public_review_form |
183 params['public_review_form'] = public_review_form |
215 'and the review will be public.', |
217 'and the review will be public.', |
216 }, |
218 }, |
217 ] |
219 ] |
218 |
220 |
219 dynaproperties = params_helper.getDynaFields(dynafields) |
221 dynaproperties = params_helper.getDynaFields(dynafields) |
|
222 dynaproperties['clean_comment'] = cleaning.clean_html_content('comment') |
220 |
223 |
221 mentor_review_form = dynaform.newDynaForm(dynamodel=None, |
224 mentor_review_form = dynaform.newDynaForm(dynamodel=None, |
222 dynabase=helper.forms.BaseForm, dynainclude=None, |
225 dynabase=helper.forms.BaseForm, dynainclude=None, |
223 dynaexclude=None, dynaproperties=dynaproperties) |
226 dynaexclude=None, dynaproperties=dynaproperties) |
224 params['mentor_review_form'] = mentor_review_form |
227 params['mentor_review_form'] = mentor_review_form |
244 'Leave this box empty if you don\'t want any mentor assigned.', |
247 'Leave this box empty if you don\'t want any mentor assigned.', |
245 }, |
248 }, |
246 ] |
249 ] |
247 |
250 |
248 dynaproperties = params_helper.getDynaFields(dynafields) |
251 dynaproperties = params_helper.getDynaFields(dynafields) |
|
252 dynaproperties['clean_comment'] = cleaning.clean_html_content('comment') |
249 |
253 |
250 admin_review_form = dynaform.extendDynaForm(dynaform=mentor_review_form, |
254 admin_review_form = dynaform.extendDynaForm(dynaform=mentor_review_form, |
251 dynaproperties=dynaproperties) |
255 dynaproperties=dynaproperties) |
252 |
256 |
253 params['admin_review_form'] = admin_review_form |
257 params['admin_review_form'] = admin_review_form |