admin: change redirection on role actions to point to the role page
This commit is contained in:
parent
83b38af34a
commit
fdc7da925b
|
@ -160,7 +160,7 @@ class RolePage(Directory):
|
|||
def edit [html] (self):
|
||||
form = self.role_ui.get_form()
|
||||
if form.get_widget('cancel').parse():
|
||||
return redirect('..')
|
||||
return redirect('.')
|
||||
|
||||
if form.is_submitted() and not form.has_errors():
|
||||
try:
|
||||
|
@ -168,7 +168,7 @@ class RolePage(Directory):
|
|||
except ValueError:
|
||||
pass
|
||||
else:
|
||||
return redirect('..')
|
||||
return redirect('.')
|
||||
|
||||
get_response().breadcrumb.append( ('edit', _('Edit')) )
|
||||
html_top('roles', title = _('Edit Role'))
|
||||
|
@ -182,7 +182,7 @@ class RolePage(Directory):
|
|||
form.add_submit("submit", _("Submit"))
|
||||
form.add_submit("cancel", _("Cancel"))
|
||||
if form.get_widget('cancel').parse():
|
||||
return redirect('..')
|
||||
return redirect('.')
|
||||
if not form.is_submitted() or form.has_errors():
|
||||
get_response().breadcrumb.append(('delete', _('Delete')))
|
||||
html_top('roles', title = _('Delete Role'))
|
||||
|
|
Loading…
Reference in New Issue