diff options
author | Sem <sembrestels@riseup.net> | 2011-11-03 22:18:13 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2011-11-03 22:18:13 +0100 |
commit | fc7921d05953d3de3130f9d49b7d73ec4c466b34 (patch) | |
tree | dcd6972df015852d455709b4b9111500a2c1602d /views/default/forms/videolist/edit.php | |
parent | 4df99e6a3803f735d6cfa35d66e0b52c3b946255 (diff) | |
download | elgg-fc7921d05953d3de3130f9d49b7d73ec4c466b34.tar.gz elgg-fc7921d05953d3de3130f9d49b7d73ec4c466b34.tar.bz2 |
Upgraded "add video" page.
Diffstat (limited to 'views/default/forms/videolist/edit.php')
-rw-r--r-- | views/default/forms/videolist/edit.php | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/views/default/forms/videolist/edit.php b/views/default/forms/videolist/edit.php new file mode 100644 index 000000000..7d7901bcd --- /dev/null +++ b/views/default/forms/videolist/edit.php @@ -0,0 +1,43 @@ +<?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; +$owner = get_entity($container_guid); +if($owner instanceof ElggGroup){ + $options = group_access_options($owner); +}else{ + $options = ''; +} +?> + +<form action="<?php echo $vars['url']; ?>action/videolist/edit" enctype="multipart/form-data" method="post" id="edit_video_form"> + + <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, 'options' => $options)); ?> + </label></p> + + <p> + <?php + echo "<input type='hidden' name=\"container_guid\" value=\"{$container_guid}\" />"; + + if (isset($vars['entity'])) { + echo "<input type='hidden' name=\"video_guid\" value=\"{$vars['entity']->getGUID()}\" />"; + } + echo elgg_view('input/securitytoken'); + ?> + <input type="submit" value="<?php echo elgg_echo("save"); ?>" /> + </p> + +</form>
\ No newline at end of file |