Hide 'tos' pull-down selector from Program profile forms.
Until a way to select Documents for use as the Terms of Service for a Program
exists (see http://code.google.com/p/soc/issues/detail?id=151), there is no
point in hacking in scope_path and link_id fields here. The per-Program ToS
feature will just be unavailable until an appropriate Document selector
exists.
Patch by: Todd Larsen
Review by: to-be-reviewed
--- a/app/soc/views/models/program.py Wed Jan 14 20:37:47 2009 +0000
+++ b/app/soc/views/models/program.py Wed Jan 14 20:37:56 2009 +0000
@@ -67,7 +67,12 @@
new_params['edit_template'] = 'soc/program/edit.html'
- new_params['extra_dynaexclude'] = ['home', 'timeline']
+ new_params['extra_dynaexclude'] = ['timeline',
+ # TODO(tlarsen): these need to be enabled once a button to a list
+ # selection "interstitial" page is implemented, see:
+ # http://code.google.com/p/soc/issues/detail?id=151
+ 'home', 'tos']
+
new_params['create_extra_dynafields'] = {
'description': forms.fields.CharField(widget=helper.widgets.TinyMCE(
attrs={'rows':10, 'cols':40})),