From 7532cb9b16da959c2daf3939175e8786011b1844 Mon Sep 17 00:00:00 2001
From: Nathan Adams
Date: Tue, 27 Oct 2015 19:14:07 -0500
Subject: [PATCH] Issue 110: Add list of projects user is owner of to forge
admin
---
indefero/src/IDF/Views/Admin.php | 2 ++
indefero/src/IDF/templates/idf/gadmin/users/update.html | 9 +++++++++
2 files changed, 11 insertions(+)
diff --git a/indefero/src/IDF/Views/Admin.php b/indefero/src/IDF/Views/Admin.php
index 38b4cb4..bccfbe6 100644
--- a/indefero/src/IDF/Views/Admin.php
+++ b/indefero/src/IDF/Views/Admin.php
@@ -450,11 +450,13 @@ class IDF_Views_Admin
} else {
$form = new IDF_Form_Admin_UserUpdate(null, $params);
}
+ $ownedProjects = \IDF_Views::getOwnedProjects($user);
return Pluf_Shortcuts_RenderToResponse('idf/gadmin/users/update.html',
array(
'page_title' => $title,
'cuser' => $user,
'form' => $form,
+ 'ownedProjects' => $ownedProjects
),
$request);
}
diff --git a/indefero/src/IDF/templates/idf/gadmin/users/update.html b/indefero/src/IDF/templates/idf/gadmin/users/update.html
index d4a081d..6656cc3 100644
--- a/indefero/src/IDF/templates/idf/gadmin/users/update.html
+++ b/indefero/src/IDF/templates/idf/gadmin/users/update.html
@@ -128,6 +128,15 @@ address{/blocktrans}
able to create new projects and update other non staff users.
{/blocktrans} {/if}
+
{/block}