summaryrefslogtreecommitdiff
path: root/public/app/routes/user.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/app/routes/user.php')
-rw-r--r--public/app/routes/user.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/public/app/routes/user.php b/public/app/routes/user.php
index e43eaa9..67032e6 100644
--- a/public/app/routes/user.php
+++ b/public/app/routes/user.php
@@ -187,10 +187,15 @@ if (Auth::in_admin_group()) {
Office::set_protocol();
}, 'post');
+
// invite user(s)
// --- -- -- - - -
Route::add('/admin/invite', function() {
- Render::view('admin/invite');
+ $teachers = Registry::use('database')->runQuery(
+ "SELECT id, concat(last_name, ' ', first_name) as TeacherName
+ FROM user ORDER BY TeacherName", []
+ );
+ Render::view('templates/invite', ['teachers' => $teachers]);
});
}