Commit c28081db authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Ensure pieforms.js is included on my views page

parent 8d54236c
......@@ -112,11 +112,13 @@ function submitto_submit(Pieform $form, $values) {
redirect('/view/submit.php?id=' . $values['view'] . '&group=' . $values['options']);
}
$createviewform = pieform(create_view_form());
$smarty = smarty();
$smarty->assign('views', $data->data);
$smarty->assign('pagination', $pagination['html']);
$smarty->assign('PAGEHEADING', hsc(get_string('myviews')));
$smarty->assign('createviewform', pieform(create_view_form()));
$smarty->assign('createviewform', $createviewform);
$smarty->display('view/index.tpl');
?>
Markdown is supported
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