diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-11 16:11:52 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-11 16:11:52 +0000 |
commit | 36d955b6c9fff6984838f9e281a2aa79dea3dd19 (patch) | |
tree | 8b9aa3b3eaa545503a8a597092afa0c72f372d87 /views/default | |
parent | 649ba62bd4a9c6c102342c52237b1ca288f8de86 (diff) | |
download | elgg-36d955b6c9fff6984838f9e281a2aa79dea3dd19.tar.gz elgg-36d955b6c9fff6984838f9e281a2aa79dea3dd19.tar.bz2 |
Refs #210 & #211: Friends form moved to action_gatekeeper code.
git-svn-id: https://code.elgg.org/elgg/trunk@1839 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/friends/forms/edit.php | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/views/default/friends/forms/edit.php b/views/default/friends/forms/edit.php index 7c8a3f455..e4065e67e 100644 --- a/views/default/friends/forms/edit.php +++ b/views/default/friends/forms/edit.php @@ -23,10 +23,42 @@ $action = "friends/addcollection";
$title = "";
}
-
+ + + $form_body = "<p><label>" . elgg_echo("friends:collectionname") . "<br />" . + elgg_view("input/text", array( + "internalname" => "collection_name", + "value" => $title, + )) . "</label></p>"; + + $form_body .= "<p>"; + + if($vars['collection_members']){ + $form_body .= elgg_echo("friends:collectionfriends") . "<br />"; + foreach($vars['collection_members'] as $mem){ + + $form_body .= elgg_view("profile/icon",array('entity' => $mem, 'size' => 'tiny')); + $form_body .= $mem->name; + + } + } + + $form_body .= "</p>"; + + $form_body .= "<p><label>" . elgg_echo("friends:addfriends") . "<br />". + elgg_view('friends/picker',array('entities' => $vars['friends'], 'internalname' => 'friends_collection')) . "</label></p>"; + + $form_body .= "<p>"; + if (isset($vars['collection'])) { + $form_body .= elgg_view('input/hidden', array('internalname' => 'collection_id', 'value' => "{$vars['collection'][0]->id}")); + } + $form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('save'))); + $form_body .= "</p>"; + + echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/$action"));
?>
- <form action="<?php echo $vars['url']; ?>action/<?php echo $action; ?>" method="post">
+<!-- <form action="<?php echo $vars['url']; ?>action/<?php echo $action; ?>" method="post">
<p>
<label><?php echo elgg_echo("friends:collectionname"); ?><br />
<?php
@@ -73,4 +105,4 @@ <input type="submit" name="submit" value="<?php echo elgg_echo('save'); ?>" />
</p>
- </form>
\ No newline at end of file + </form> -->
\ No newline at end of file |