# HG changeset patch # User Todd Larsen # Date 1231965476 0 # Node ID 208659644a7f9909501df1b232b16e45b7d82d55 # Parent 757cc13ecd39071669edea2b8639fa3478ca0f8d 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 diff -r 757cc13ecd39 -r 208659644a7f app/soc/views/models/program.py --- 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})),