From 0b5a24d7943c6f8bc275d1160f4060b337a3cf7a Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 18 Dec 2010 23:18:43 +0000 Subject: continuing to slash and burn the profile plugin - moving the admin profile fields into core - last major change git-svn-id: http://code.elgg.org/elgg/trunk@7673 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/forms/profile/fields/add.php | 29 ++++++++++++++++++++++++++++ views/default/forms/profile/fields/reset.php | 10 ++++++++++ 2 files changed, 39 insertions(+) create mode 100644 views/default/forms/profile/fields/add.php create mode 100644 views/default/forms/profile/fields/reset.php (limited to 'views/default/forms/profile') diff --git a/views/default/forms/profile/fields/add.php b/views/default/forms/profile/fields/add.php new file mode 100644 index 000000000..50d1600fd --- /dev/null +++ b/views/default/forms/profile/fields/add.php @@ -0,0 +1,29 @@ + '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('add'), 'value' => elgg_echo('add'))); + +$formbody = <<< END +

$label_text: $label_control + $type_text: $type_control + $submit_control

+END; + +echo "

" . elgg_echo('profile:explainchangefields') . "

"; +echo $formbody; diff --git a/views/default/forms/profile/fields/reset.php b/views/default/forms/profile/fields/reset.php new file mode 100644 index 000000000..1661b2fa3 --- /dev/null +++ b/views/default/forms/profile/fields/reset.php @@ -0,0 +1,10 @@ + elgg_echo('profile:resetdefault'), + 'class' => 'action-button disabled', +); +echo elgg_view('input/submit', $params); -- cgit v1.2.3