aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/edit.php
blob: 09dba432cbb7a9db4dd3da5d850b209e3d3397e5 (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
<?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>