From 4e0c1576475390faa2f1fb4c4dc2902a953f440e Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 25 Feb 2009 12:16:53 +0000 Subject: First commit --- views/default/tidypics/forms/edit.php | 115 ++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 views/default/tidypics/forms/edit.php (limited to 'views/default/tidypics/forms/edit.php') diff --git a/views/default/tidypics/forms/edit.php b/views/default/tidypics/forms/edit.php new file mode 100644 index 000000000..efe4aa508 --- /dev/null +++ b/views/default/tidypics/forms/edit.php @@ -0,0 +1,115 @@ +title); + $action = "tidypics/editalbum"; + $title = $vars['entity']->title; + $body = $vars['entity']->description; + $tags = $vars['entity']->tags; + $access_id = $vars['entity']->access_id; + $subtype = $vars['subtype']; + + // if nothing is sent, create new, but only new albums are sent here + // new images are sent to upload.php + } else { + $title = elgg_echo("album:add"); + $action = "tidypics/addalbum"; + $tags = ""; + $title = ""; + $description = ""; + } + + // in case we have some cached details + if (isset($vars['albumtitle'])) { + $title = $vars['albumtitle']; + $body = $vars['albumbody']; + $tags = $vars['albumtags']; + } + + $container_guid = get_input('container_guid'); + if (!$container_guid) $container_guid = page_owner(); + +?> +
+

+ + "albumtitle", "value" => $title,)); ?> +

+ +

+ + "albumbody","value" => $body,)); ?> +

+ +

+ + "albumbody","value" => $body,)); ?> +

+ +

+ + "albumtags","value" => $tags,)); ?> +

+ + guid; + $container_guid = $vars['entity']->container_guid; + $cover_guid = get_entity($container_guid)->cover; + + if($cover_guid == $vars['entity']->guid) + $cover = 'yes'; + + ?> +

+ + "cover", "value" => $cover, 'options' => array(elgg_echo('album:cover:yes')))); ?> +

+

+ + 'access_id','value' => $access_id)); ?> +

+ + +

+ + 'access_id','value' => $access_id)); ?> +

+ + + + + +

+
\ No newline at end of file -- cgit v1.2.3