diff --git a/pylons_app/controllers/repos.py b/pylons_app/controllers/repos.py --- a/pylons_app/controllers/repos.py +++ b/pylons_app/controllers/repos.py @@ -88,7 +88,9 @@ class ReposController(BaseController): def show(self, id, format='html'): """GET /repos/id: Show a specific item""" # url('repo', id=ID) - return render('/repos_show.html') + def edit(self, id, format='html'): """GET /repos/id/edit: Form to edit an existing item""" # url('edit_repo', id=ID) + c.new_repo = id + return render('admin/repos/repo_edit.html') diff --git a/pylons_app/templates/admin/repos/repo_edit.html b/pylons_app/templates/admin/repos/repo_edit.html --- a/pylons_app/templates/admin/repos/repo_edit.html +++ b/pylons_app/templates/admin/repos/repo_edit.html @@ -15,7 +15,7 @@ <%def name="main()">
| ${_('Name')} | @@ -31,7 +31,7 @@||
| - | ${h.submit('add','add')} | +${h.submit('update','update')} |