aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-27 13:45:20 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-27 13:45:20 +0000
commitb8774c56edb22840530c6f2ddcbe2f2022a417d1 (patch)
treedcca0992744a46df9a3dbf597ce2b8febe8dc4d0 /mod/groups/views/default
parente658fb3a978e40653d72ef33549177c87cb714ce (diff)
downloadelgg-b8774c56edb22840530c6f2ddcbe2f2022a417d1.tar.gz
elgg-b8774c56edb22840530c6f2ddcbe2f2022a417d1.tar.bz2
Join request management added.
git-svn-id: https://code.elgg.org/elgg/trunk@2980 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default')
-rw-r--r--mod/groups/views/default/groups/membershiprequests.php35
1 files changed, 29 insertions, 6 deletions
diff --git a/mod/groups/views/default/groups/membershiprequests.php b/mod/groups/views/default/groups/membershiprequests.php
index f442c1a93..9279e2bee 100644
--- a/mod/groups/views/default/groups/membershiprequests.php
+++ b/mod/groups/views/default/groups/membershiprequests.php
@@ -1,3 +1,5 @@
+<div class="contentWrapper">
+
<?php
if (!empty($vars['requests']) && is_array($vars['requests'])) {
@@ -7,13 +9,35 @@
?>
<div class="reportedcontent_content active_report">
- <p class="reportedcontent_detail">
+ <div class="groups_membershiprequest_buttons">
<?php
-
- echo $request->name;
+
+ echo str_replace('<a', '<a class="delete_report_button" ', elgg_view('output/confirmlink',array(
+ 'href' => $vars['url'] . 'action/groups/killrequest?user_guid='.$request->guid.'&group_guid=' . $vars['entity']->guid,
+ 'confirm' => elgg_echo('groups:joinrequest:remove:check'),
+ 'text' => elgg_echo('delete'),
+ )));
?>
+ <a href="<?php echo $vars['url']; ?>action/groups/addtogroup?user_guid=<?php echo $request->guid; ?>&group_guid=<?php echo $vars['entity']->guid; ?>" class="archive_report_button"><?php echo elgg_echo('accept'); ?></a>
+ </div>
+ <p class="reportedcontent_detail">
+ <a href="<?php echo $request->getURL(); ?>"><?php echo $request->name; ?></a>
+ </p>
+ <?php
+
+ $status = elgg_view("profile/status", array("entity" => $request));
+ if (!empty($status)) {
+
+ ?>
+ <p class="reportedcontent_detail">
+ <?php echo $status; ?>
</p>
+ <?php
+
+ } else echo "<p class=\"reportedcontent_detail\">&nbsp;</p>";
+
+ ?>
</div>
<?php
@@ -21,10 +45,9 @@
} else {
- echo "<div class=\"contentWrapper\">";
echo "<p>" . elgg_echo('groups:requests:none') . "</p>";
- echo "</div>";
}
-?> \ No newline at end of file
+?>
+</div> \ No newline at end of file