app/soc/views/models/docs.py
changeset 445 31927f21970d
parent 429 e50e18936f06
child 448 075360be6743
equal deleted inserted replaced
444:6e50bfc6e5a7 445:31927f21970d
    97 
    97 
    98     params['edit_form'] = EditForm
    98     params['edit_form'] = EditForm
    99     params['create_form'] = CreateForm
    99     params['create_form'] = CreateForm
   100 
   100 
   101     # TODO(tlarsen) Add support for Django style template lookup
   101     # TODO(tlarsen) Add support for Django style template lookup
   102     params['edit_template'] = 'soc/docs/edit.html'
   102     params['edit_template'] = 'soc/models/edit.html'
   103     params['public_template'] = 'soc/docs/public.html'
   103     params['public_template'] = 'soc/docs/public.html'
   104     params['list_template'] = 'soc/list/all.html'
   104     params['list_template'] = 'soc/models/list.html'
   105 
   105 
   106     params['lists_template'] = {
   106     params['lists_template'] = {
   107       'list_main': 'soc/list/list_main.html',
   107       'list_main': 'soc/list/list_main.html',
   108       'list_pagination': 'soc/list/list_pagination.html',
   108       'list_pagination': 'soc/list/list_pagination.html',
   109       'list_row': 'soc/docs/list/docs_row.html',
   109       'list_row': 'soc/docs/list/docs_row.html',
   110       'list_heading': 'soc/docs/list/docs_heading.html',
   110       'list_heading': 'soc/docs/list/docs_heading.html',
   111     }
   111     }
   112 
   112 
   113     params['delete_redirect'] = '/docs/list'
   113     params['delete_redirect'] = '/docs/list'
   114     params['create_redirect'] = 'soc/docs/edit.html'
   114     params['create_redirect'] = 'soc/models/edit.html'
   115 
   115 
   116     params['save_message'] = [ugettext_lazy('Profile saved.')]
   116     params['save_message'] = [ugettext_lazy('Profile saved.')]
   117 
   117 
   118     params['edit_params'] = {
   118     params['edit_params'] = {
   119         self.DEF_SUBMIT_MSG_PARAM_NAME: self.DEF_SUBMIT_MSG_PROFILE_SAVED,
   119         self.DEF_SUBMIT_MSG_PARAM_NAME: self.DEF_SUBMIT_MSG_PROFILE_SAVED,