26 from django import forms |
26 from django import forms |
27 from django.utils.translation import ugettext |
27 from django.utils.translation import ugettext |
28 |
28 |
29 from soc.logic import dicts |
29 from soc.logic import dicts |
30 from soc.logic.helper import timeline as timeline_helper |
30 from soc.logic.helper import timeline as timeline_helper |
31 from soc.logic.models.document import logic as document_logic |
|
32 from soc.logic.models import host as host_logic |
31 from soc.logic.models import host as host_logic |
33 from soc.logic.models import program as program_logic |
32 from soc.logic.models import program as program_logic |
|
33 from soc.logic.models.document import logic as document_logic |
34 from soc.views import helper |
34 from soc.views import helper |
35 from soc.views import out_of_band |
35 from soc.views import out_of_band |
36 from soc.views.helper import access |
36 from soc.views.helper import access |
37 from soc.views.helper import decorators |
37 from soc.views.helper import decorators |
38 from soc.views.helper import redirects |
38 from soc.views.helper import redirects |
205 items += document_view.view.getMenusForScope(entity, params) |
205 items += document_view.view.getMenusForScope(entity, params) |
206 items += self._getTimeDependentEntries(entity, params, id, user) |
206 items += self._getTimeDependentEntries(entity, params, id, user) |
207 |
207 |
208 items += [(redirects.getReviewOverviewRedirect( |
208 items += [(redirects.getReviewOverviewRedirect( |
209 entity, {'url_name': 'org_app'}), |
209 entity, {'url_name': 'org_app'}), |
210 "Review Org Applications", 'any_access')] |
210 "Review Organization Applications", 'any_access')] |
211 # add link to edit Program Profile |
211 # add link to edit Program Profile |
212 items += [(redirects.getEditRedirect(entity, params), |
212 items += [(redirects.getEditRedirect(entity, params), |
213 'Edit Program Profile','any_access')] |
213 'Edit Program Profile','any_access')] |
214 # add link to edit Program Timeline |
214 # add link to edit Program Timeline |
215 items += [(redirects.getEditRedirect(entity, {'url_name': 'timeline'}), |
215 items += [(redirects.getEditRedirect(entity, {'url_name': 'timeline'}), |
247 items += [ |
247 items += [ |
248 (redirects.getApplyRedirect(program_entity, {'url_name': 'org_app'}), |
248 (redirects.getApplyRedirect(program_entity, {'url_name': 'org_app'}), |
249 "Apply to become an Organization", 'any_access')] |
249 "Apply to become an Organization", 'any_access')] |
250 |
250 |
251 if user: |
251 if user: |
252 # add the 'List my Org Applications' link |
252 # add the 'List my Organization Applications' link |
253 items += [ |
253 items += [ |
254 (redirects.getListSelfRedirect(program_entity, |
254 (redirects.getListSelfRedirect(program_entity, |
255 {'url_name' : 'org_app'}), |
255 {'url_name' : 'org_app'}), |
256 "List my Org Applications", 'any_access')] |
256 "List My Organization Applications", 'any_access')] |
257 |
257 |
258 return items |
258 return items |
259 |
259 |
260 |
260 |
261 view = View() |
261 view = View() |