aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-14 11:17:13 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-14 11:17:13 +0000
commit8a636a3aa83809e3db3ca327aa77e806fb7a6ed3 (patch)
tree049358471b2ae27bbc3f73562fc9456e5f090ca8 /mod/profile/views/default
parent71951a0c879937848d47328f305f0ab0724ea243 (diff)
downloadelgg-8a636a3aa83809e3db3ca327aa77e806fb7a6ed3.tar.gz
elgg-8a636a3aa83809e3db3ca327aa77e806fb7a6ed3.tar.bz2
Closes #235: Simple profile editor in place
git-svn-id: https://code.elgg.org/elgg/trunk@2255 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views/default')
-rw-r--r--mod/profile/views/default/profile/editdefaultprofile.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/mod/profile/views/default/profile/editdefaultprofile.php b/mod/profile/views/default/profile/editdefaultprofile.php
new file mode 100644
index 000000000..f7ef24456
--- /dev/null
+++ b/mod/profile/views/default/profile/editdefaultprofile.php
@@ -0,0 +1,35 @@
+<?php
+ /**
+ * Elgg profile index
+ *
+ * @package ElggProfile
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd <info@elgg.com>
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+ $label_text = elgg_echo('profile:label');
+ $type_text = elgg_echo('profile:type');
+
+ $label_control = elgg_view('input/text', array('internalname' => 'label'));
+ $type_control = elgg_view('input/pulldown', array('internalname' => 'type', 'options_values' => array(
+ 'text' => elgg_echo('text'),
+ 'longtext' => elgg_echo('longtext'),
+ 'tags' => elgg_echo('tags'),
+ 'url' => elgg_echo('url'),
+ 'email' => elgg_echo('email')
+ )));
+
+ $submit_control = elgg_view('input/submit', array('internalname' => elgg_echo('save'), 'value' => elgg_echo('save')));
+
+ $formbody = <<< END
+ <div>
+ <p>$label_text: $label_control
+ $type_text: $type_control
+ $submit_control</p>
+ </div>
+END;
+
+ echo elgg_view('input/form', array('body' => $formbody, 'action' => $vars['url'] . 'actions/profile/editdefault'));
+?> \ No newline at end of file