diff options
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); |