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 <andrew.nicols@luns.net.uk>
Signed-off-by: default avatarEvan Goldenberg <evang@catalyst.net.nz>
parent c44cc94b
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
<div class="viewfooter cb"> <div class="viewfooter cb">
{if $tags}<div class="tags">{str tag=tags}: {list_tags owner=$owner tags=$tags}</div>{/if} {if $tags}<div class="tags">{str tag=tags}: {list_tags owner=$owner tags=$tags}</div>{/if}
<div>{$releaseform}</div> <div>{$releaseform}</div>
{if $view_group_submission_form}<div>{$view_group_submission_form}</div>{/if}
<table id="feedbacktable" class="fullwidth table"> <table id="feedbacktable" class="fullwidth table">
<thead><tr><th>{str tag="feedback" section="view"}</th></tr></thead> <thead><tr><th>{str tag="feedback" section="view"}</th></tr></thead>
<tbody> <tbody>
......
...@@ -274,6 +274,13 @@ if (isset($objectionform)) { ...@@ -274,6 +274,13 @@ if (isset($objectionform)) {
} }
$smarty->assign('viewbeingwatched', $viewbeingwatched); $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));
}
}
$smarty->display('view/view.tpl'); $smarty->display('view/view.tpl');
?> ?>
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