aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/forms/edit.php36
-rw-r--r--views/default/videolist/groupprofile_videolist.php6
2 files changed, 39 insertions, 3 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
diff --git a/views/default/videolist/groupprofile_videolist.php b/views/default/videolist/groupprofile_videolist.php
index 2151a8f87..217eda53b 100644
--- a/views/default/videolist/groupprofile_videolist.php
+++ b/views/default/videolist/groupprofile_videolist.php
@@ -11,7 +11,7 @@
?>
<div id="filerepo_widget_layout">
-<h2><?php echo elgg_echo("videolist:group"); ?></h2>
+<h3><?php echo elgg_echo("videolist:group"); ?></h3>
<?php
@@ -41,7 +41,7 @@ if ($videos) {
echo "</div>";
}
echo "<div class=\"filerepo_listview_date\"><p class=\"filerepo_timestamp\"><small>" . friendly_time($f->time_created) . "</small></p></div>";
- echo "</div><div class=\"clearfloat\" style=\"height:8px;\"></div>";
+ echo "</div>";
}
echo "</div>";
@@ -52,7 +52,7 @@ if ($videos) {
echo "<div class=\"forum_latest\"><a href=\"{$users_file_url}\">" . elgg_echo("videolist:groupall") . "</a></div>";
} else {
- echo "<div class=\"forum_latest\">" . elgg_echo("videolist:none") . "</div>";
+ echo "<p class='margin_top'>" . elgg_echo("videolist:none") . "</p>";
}
?>