app/soc/views/models/host.py
changeset 553 c0cc20b4afc9
parent 550 577dbfbeef97
child 554 68c7a1dd3c52
equal deleted inserted replaced
552:cb23b3897e0c 553:c0cc20b4afc9
   100 
   100 
   101     params['edit_form'] = EditForm
   101     params['edit_form'] = EditForm
   102     params['create_form'] = CreateForm
   102     params['create_form'] = CreateForm
   103 
   103 
   104     # TODO(tlarsen) Add support for Django style template lookup
   104     # TODO(tlarsen) Add support for Django style template lookup
   105     params['edit_template'] = 'soc/models/edit.html'
       
   106     params['public_template'] = 'soc/host/public.html'
   105     params['public_template'] = 'soc/host/public.html'
   107     params['list_template'] = 'soc/models/list.html'
       
   108     params['invite_template'] = 'soc/models/invite.html'
       
   109 
   106 
   110     params['lists_template'] = {
   107     params['list_row'] = 'soc/host/list/host_row.html'
   111       'list_main': 'soc/list/list_main.html',
   108     params['list_heading'] = 'soc/host/list/host_heading.html'
   112       'list_pagination': 'soc/list/list_pagination.html',
       
   113       'list_row': 'soc/host/list/host_row.html',
       
   114       'list_heading': 'soc/host/list/host_heading.html',
       
   115     }
       
   116 
   109 
   117     params['delete_redirect'] = '/' + params['url_name'] + '/list'
   110     params['delete_redirect'] = '/' + params['url_name'] + '/list'
   118     params['invite_redirect'] = '/request/list'
   111     params['invite_redirect'] = '/request/list'
   119 
   112 
   120     params = dicts.merge(original_params, params)
   113     params = dicts.merge(original_params, params)