aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 13:50:33 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 13:50:33 +0000
commitb43d13eca7331e81f108202ffe7a2dacd237bb0f (patch)
treeb40a0e2e7f75ce41a1d778987d227b0218f4d235 /views/default/widgets
parent72a267095253a9e26b1cb17faad3ee28bfd23ab9 (diff)
downloadelgg-b43d13eca7331e81f108202ffe7a2dacd237bb0f.tar.gz
elgg-b43d13eca7331e81f108202ffe7a2dacd237bb0f.tar.bz2
Refs #210 & #211 : Widgets edit now using action_gatekeeper
git-svn-id: https://code.elgg.org/elgg/trunk@1827 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets')
-rw-r--r--views/default/widgets/editwrapper.php33
1 files changed, 7 insertions, 26 deletions
diff --git a/views/default/widgets/editwrapper.php b/views/default/widgets/editwrapper.php
index 058d19a61..bde4da474 100644
--- a/views/default/widgets/editwrapper.php
+++ b/views/default/widgets/editwrapper.php
@@ -12,34 +12,15 @@
*/
$guid = $vars['entity']->getGUID();
-
+
+
+ $form_body = $vars['body'];
+ $form_body .= "<p><label>" . elgg_echo('access') . ": " . elgg_view('input/access', array('internalname' => 'params[access_id]','value' => $vars['entity']->access_id)) . "</label></p>";
+ $form_body .= "<p>" . elgg_view('input/hidden', array('internalname' => 'guid', 'value' => $guid)) . elgg_view('input/hidden', array('internalname' => 'noforward', 'value' => 'true')) . elgg_view('input/submit', array('internalname' => "submit$guid", 'value' => elgg_echo('save'))) . "</p>";
+
+ echo elgg_view('input/form', array('internalid' => "widgetform$guid", 'body' => $form_body, 'action' => "{$vars['url']}action/widgets/save"))
?>
-<form id="widgetform<?php echo $guid; ?>" action="<?php echo $vars['url']; ?>action/widgets/save" method="post">
-
- <?php
-
- echo $vars['body'];
-
- ?>
-
- <p>
- <label>
- <?php echo elgg_echo('access'); ?>:
- <?php echo elgg_view('input/access', array('internalname' => 'params[access_id]','value' => $vars['entity']->access_id)); ?>
- </label>
- </p>
- <p>
- <input type="hidden" name="guid" value="<?php echo $guid; ?>" />
- <input type="hidden" name="noforward" value="true" />
- <input type="submit" id="submit<?php echo $guid; ?>" value="<?php
-
- echo elgg_echo('save');
-
- ?>" />
- </p>
-
-</form>
<script type="text/javascript">
$(document).ready(function() {