diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-16 12:52:01 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-16 12:52:01 +0000 |
commit | 254d24bef4f9bc84da8496f4014e65763bdcffd9 (patch) | |
tree | 2aaa32d649f24c6b8f3f12bdbc7ec4f52a1a4470 /views/default/friends/forms/edit.php | |
parent | 7c4ba8ffa30cfdedd254e0946f1351619ad9f190 (diff) | |
download | elgg-254d24bef4f9bc84da8496f4014e65763bdcffd9.tar.gz elgg-254d24bef4f9bc84da8496f4014e65763bdcffd9.tar.bz2 |
theme updates
git-svn-id: https://code.elgg.org/elgg/trunk@2761 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/friends/forms/edit.php')
-rw-r--r-- | views/default/friends/forms/edit.php | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/views/default/friends/forms/edit.php b/views/default/friends/forms/edit.php index 80a080f3e..683e0503c 100644 --- a/views/default/friends/forms/edit.php +++ b/views/default/friends/forms/edit.php @@ -1,31 +1,31 @@ -<?php
-
- /**
- * Elgg friend collections add/edit
- *
- * @package Elgg
- * @subpackage Core
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.org/
- *
- * @uses $vars['object'] Optionally, the collection edit
- */
-
- // var_export($vars['collection'][0]->id);
-
- // Set title, form destination
- if (isset($vars['collection'])) {
- $action = "friends/editcollection";
- $title = $vars['collection'][0]->name;
- } else {
- $action = "friends/addcollection";
- $title = "";
- }
+<?php + + /** + * Elgg friend collections add/edit + * + * @package Elgg + * @subpackage Core + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Curverider Ltd + * @copyright Curverider Ltd 2008-2009 + * @link http://elgg.org/ + * + * @uses $vars['object'] Optionally, the collection edit + */ + + // var_export($vars['collection'][0]->id); + + // Set title, form destination + if (isset($vars['collection'])) { + $action = "friends/editcollection"; + $title = $vars['collection'][0]->name; + } else { + $action = "friends/addcollection"; + $title = ""; + } - $form_body = "<p><label>" . elgg_echo("friends:collectionname") . "<br />" . + $form_body = "<div class='contentWrapper'><p><label>" . elgg_echo("friends:collectionname") . "<br />" . elgg_view("input/text", array( "internalname" => "collection_name", "value" => $title, @@ -45,15 +45,15 @@ $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><label>" . elgg_echo("friends:addfriends") . "</label>". + elgg_view('friends/picker',array('entities' => $vars['friends'], 'internalname' => 'friends_collection')) . "</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>"; + $form_body .= "</p></div>"; - echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/$action"));
+ echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/$action")); ?>
\ No newline at end of file |