aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms
diff options
context:
space:
mode:
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