diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-18 23:18:43 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-18 23:18:43 +0000 |
commit | 0b5a24d7943c6f8bc275d1160f4060b337a3cf7a (patch) | |
tree | 105769cfd0c1d29c75fe368b989c5380536aa40a /views/default/forms/profile/fields | |
parent | 09d08af9814a4edfb2050cdb47ad8ae20a944472 (diff) | |
download | elgg-0b5a24d7943c6f8bc275d1160f4060b337a3cf7a.tar.gz elgg-0b5a24d7943c6f8bc275d1160f4060b337a3cf7a.tar.bz2 |
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
Diffstat (limited to 'views/default/forms/profile/fields')
-rw-r--r-- | views/default/forms/profile/fields/add.php | 29 | ||||
-rw-r--r-- | views/default/forms/profile/fields/reset.php | 10 |
2 files changed, 39 insertions, 0 deletions
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 @@ +<?php +/** + * Elgg profile index + * + * @package ElggProfile + */ + +$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('add'), 'value' => elgg_echo('add'))); + +$formbody = <<< END + <p>$label_text: $label_control + $type_text: $type_control + $submit_control</p> +END; + +echo "<p class='margin-top'>" . elgg_echo('profile:explainchangefields') . "</p>"; +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 @@ +<?php +/** + * Reset profile fields form + */ + +$params = array( + 'value' => elgg_echo('profile:resetdefault'), + 'class' => 'action-button disabled', +); +echo elgg_view('input/submit', $params); |