Commit 2e930abb authored by Andrew Robert Nicols's avatar Andrew Robert Nicols Committed by Evan Goldenberg
Browse files

Show the 'submit to group' pieform within a view.

Feedback we've had from some of our users suggests that having the ability
to submit a view to a course group in other locations (e.g. within a view,
and within the relevant group) would make a lot of sense as it reduces
context switches for users.
Signed-off-by: default avatarAndrew Robert Nicols <>
Signed-off-by: default avatarEvan Goldenberg <>
parent c44cc94b
......@@ -21,6 +21,7 @@
<div class="viewfooter cb">
{if $tags}<div class="tags">{str tag=tags}: {list_tags owner=$owner tags=$tags}</div>{/if}
{if $view_group_submission_form}<div>{$view_group_submission_form}</div>{/if}
<table id="feedbacktable" class="fullwidth table">
<thead><tr><th>{str tag="feedback" section="view"}</th></tr></thead>
......@@ -274,6 +274,13 @@ if (isset($objectionform)) {
$smarty->assign('viewbeingwatched', $viewbeingwatched);
if ($tutorgroupdata = group_get_user_course_groups()) {
$options = array();
if (!$view->get('submittedgroup') && !$view->get('submittedhost')) {
$smarty->assign('view_group_submission_form', view_group_submission_form($view->get('id'), $tutorgroupdata));
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