diff options
author | cash <cash.costello@gmail.com> | 2011-11-19 23:13:26 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-19 23:13:26 -0500 |
commit | c51b483f24936c8d04a54a6999412937ec21c49a (patch) | |
tree | d45e3b9ede0115e3ce3b84ea1622bfc98d7470a0 /views/default/forms/photos/batch/edit.php | |
parent | 98664daa72a390fe760b69116af8bfa9327826e3 (diff) | |
download | elgg-c51b483f24936c8d04a54a6999412937ec21c49a.tar.gz elgg-c51b483f24936c8d04a54a6999412937ec21c49a.tar.bz2 |
uploading photos through the basic interface works now
Diffstat (limited to 'views/default/forms/photos/batch/edit.php')
-rw-r--r-- | views/default/forms/photos/batch/edit.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/views/default/forms/photos/batch/edit.php b/views/default/forms/photos/batch/edit.php new file mode 100644 index 000000000..fa017ac96 --- /dev/null +++ b/views/default/forms/photos/batch/edit.php @@ -0,0 +1,32 @@ +<?php +/** + * Edit properties on a batch of images + * + * @uses $vars['batch'] ElggObject + * + * @author Cash Costello + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 + */ + +$batch = $vars['batch']; +$album = $batch->getContainerEntity(); + +$images = elgg_get_entities_from_relationship(array( + 'type' => 'object', + 'subtype' => 'image', + 'relationship' => 'belongs_to_batch', + 'relationship_guid' => $batch->getGUID(), + 'inverse_relationship' => true, +)); + +echo '<ul>'; +foreach ($images as $image) { + echo '<li>'; + echo elgg_view('forms/photos/batch/edit/image', array('entity' => $image)); + echo '</li>'; +} +echo '</ul>'; + +echo '<div class="elgg-foot">'; +echo elgg_view('input/submit', array('value' => elgg_echo('save'))); +echo '</div>'; |