aboutsummaryrefslogtreecommitdiff
path: root/views/default/translation_editor/add_custom_key.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:58:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:58:52 -0300
commit2d9b20157957a55bd83875775085ed31c9062577 (patch)
treef051d6d805a3448ea243379a2457be8d67dcfa5f /views/default/translation_editor/add_custom_key.php
downloadelgg-2d9b20157957a55bd83875775085ed31c9062577.tar.gz
elgg-2d9b20157957a55bd83875775085ed31c9062577.tar.bz2
Squashed 'mod/translation_editor/' content from commit 9d86955
git-subtree-dir: mod/translation_editor git-subtree-split: 9d86955e6d8b6807578f5a9da0346ac1a146881c
Diffstat (limited to 'views/default/translation_editor/add_custom_key.php')
-rw-r--r--views/default/translation_editor/add_custom_key.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/views/default/translation_editor/add_custom_key.php b/views/default/translation_editor/add_custom_key.php
new file mode 100644
index 000000000..4726479cc
--- /dev/null
+++ b/views/default/translation_editor/add_custom_key.php
@@ -0,0 +1,21 @@
+<?php
+
+ $action = $vars["url"] . "action/translation_editor/add_custom_key";
+
+ $form_body .= "<div>";
+ $form_body .= "<label>" . elgg_echo("translation_editor:custom_keys:key") . "</label>";
+ $form_body .= elgg_view("input/text", array("name" => "key"));
+
+ $form_body .= "<label>" . elgg_echo("translation_editor:custom_keys:translation") . "</label>";
+ $form_body .= "<textarea name='translation'></textarea>";
+ $form_body .= "<span id='translation_editor_custom_keys_translation_info'>" . elgg_echo("translation_editor:custom_keys:translation_info") . "</span>";
+ $form_body .= "</div>";
+
+ $form_body .= elgg_view("input/submit", array("value" => elgg_echo("save")));
+
+ $form = elgg_view("input/form", array("body" => $form_body, "action" => $action, "id" => "translation_editor_custom_keys_form"));
+
+?>
+<h3><?php echo elgg_echo("translation_editor:custom_keys:title"); ?></h3>
+<?php
+ echo $form; \ No newline at end of file