aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms
diff options
context:
space:
mode:
authorPete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-29 18:43:13 +0000
committerPete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-29 18:43:13 +0000
commit4fa7aaa7e363514dc2def25cceafd8cf4333404c (patch)
tree0b6e31e52f017e962639860f38fd4ad7c595c1e7 /views/default/forms
parentdd489f623628930e527e8112142576bb0de24b57 (diff)
downloadelgg-4fa7aaa7e363514dc2def25cceafd8cf4333404c.tar.gz
elgg-4fa7aaa7e363514dc2def25cceafd8cf4333404c.tar.bz2
Added a basic edit view for videolist (form action/tokens needs fixing still)
Diffstat (limited to 'views/default/forms')
-rw-r--r--views/default/forms/edit.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/views/default/forms/edit.php b/views/default/forms/edit.php
new file mode 100644
index 000000000..09dba432c
--- /dev/null
+++ b/views/default/forms/edit.php
@@ -0,0 +1,36 @@
+<?php
+/**
+* Elgg Video Plugin > Edit view
+*/
+// Make sure we're logged in (send us to the front page if not)
+gatekeeper();
+$page_owner = page_owner_entity();
+$container_guid = $vars['entity']->container_guid;
+?>
+
+<form action="<?php echo $vars['url']; ?>action/videolist/add" enctype="multipart/form-data" method="post" class="margin_top">
+
+ <p><label><?php echo elgg_echo("title"); ?><br />
+ <?php echo elgg_view("input/text", array("internalname" => "title_videourl","value" => $vars['entity']->title));?>
+ </label></p>
+
+ <p><label><?php echo elgg_echo("tags"); ?><br />
+ <?php echo elgg_view("input/tags", array("internalname" => "tags","value" => $vars['entity']->tags));?>
+ </label></p>
+
+ <p><label><?php echo elgg_echo('access'); ?><br />
+ <?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $vars['entity']->access_id)); ?>
+ </label></p>
+
+ <p>
+ <?php
+ echo "<input type='hidden' name=\"container_guid\" value=\"{$container_guid}\" />";
+
+ if (isset($vars['entity'])) {
+ echo "<input type='hidden' name=\"file_guid\" value=\"{$vars['entity']->getGUID()}\" />";
+ }
+ ?>
+ <input type="submit" value="<?php echo elgg_echo("save"); ?>" />
+ </p>
+
+</form> \ No newline at end of file