blob: 4114b5ad6e6e06bf9837f30e52bb35fa99cd0bb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?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/edit" 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=\"video_guid\" value=\"{$vars['entity']->getGUID()}\" />";
}
echo elgg_view('input/securitytoken');
?>
<input type="submit" value="<?php echo elgg_echo("save"); ?>" />
</p>
</form>
|