aboutsummaryrefslogtreecommitdiff
path: root/mod/guidtool/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/guidtool/views')
-rw-r--r--mod/guidtool/views/default/forms/guidtool/import.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/mod/guidtool/views/default/forms/guidtool/import.php b/mod/guidtool/views/default/forms/guidtool/import.php
index a2ee30406..872eba8cc 100644
--- a/mod/guidtool/views/default/forms/guidtool/import.php
+++ b/mod/guidtool/views/default/forms/guidtool/import.php
@@ -13,11 +13,14 @@
$format = $vars['format'];
if (!$format) $format = 'opendd';
+
+
+ $formbody = "<p>" . sprintf(elgg_echo('guidtool:import:desc'), $format) . "</p>" .
+ elgg_view('input/longtext', array('internalname' => 'data')) . elgg_view('input/submit', array('value' => elgg_echo("save")));
?>
<div>
-<form action="<?php echo $CONFIG->url; ?>action/import/<?php echo $format; ?>" method="post">
- <p><?php echo sprintf(elgg_echo('guidtool:import:desc'), $format); ?></p>
- <?php echo elgg_view('input/longtext', array('internalname' => 'data')); ?>
- <input type="submit" class="submit_button" value="<?php echo elgg_echo("save"); ?>" />
-</form>
+<?php
+ echo elgg_view('input/form', array('body' => $formbody, 'action' => "{$CONFIG->url}action/import/$format"))
+?>
+
</div> \ No newline at end of file