Commit 12d46d3e authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Create view button on site views

parent bfdba008
......@@ -58,6 +58,7 @@ $pagination = build_pagination(array(
$smarty->assign('views', $data->data);
$smarty->assign('institution', 'mahara');
$smarty->assign('pagination', $pagination['html']);
$smarty->assign('createviewform', pieform(create_view_form(null, 'mahara')));
$smarty->display('view/index.tpl');
......
......@@ -181,7 +181,7 @@ function editaccess_submit(Pieform $form, $values) {
redirect('/view/groupviews.php?group='.$group);
}
if ($institution) {
redirect('/view/institutionviews.php?group='.$institution);
redirect('/view/institutionviews.php?institution='.$institution);
}
redirect('/view/');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment