diff options
author | cash <cash.costello@gmail.com> | 2011-11-19 18:43:35 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-19 18:43:35 -0500 |
commit | 98664daa72a390fe760b69116af8bfa9327826e3 (patch) | |
tree | 0c28594625cd810dcb2c22fc736191071c55b7fa /views/default/forms | |
parent | 4562cfbb1a630b14fd194271f99f1f8c098dc38d (diff) | |
download | elgg-98664daa72a390fe760b69116af8bfa9327826e3.tar.gz elgg-98664daa72a390fe760b69116af8bfa9327826e3.tar.bz2 |
album creation and editing is working
Diffstat (limited to 'views/default/forms')
-rw-r--r-- | views/default/forms/photos/admin/settings.php (renamed from views/default/forms/tidypics/admin/settings.php) | 0 | ||||
-rw-r--r-- | views/default/forms/photos/ajax_upload.php (renamed from views/default/forms/tidypics/ajax_upload.php) | 0 | ||||
-rw-r--r-- | views/default/forms/photos/album/save.php | 48 | ||||
-rw-r--r-- | views/default/forms/photos/basic_upload.php (renamed from views/default/forms/tidypics/basic_upload.php) | 0 |
4 files changed, 48 insertions, 0 deletions
diff --git a/views/default/forms/tidypics/admin/settings.php b/views/default/forms/photos/admin/settings.php index 06b3f4cb9..06b3f4cb9 100644 --- a/views/default/forms/tidypics/admin/settings.php +++ b/views/default/forms/photos/admin/settings.php diff --git a/views/default/forms/tidypics/ajax_upload.php b/views/default/forms/photos/ajax_upload.php index a1d13e80b..a1d13e80b 100644 --- a/views/default/forms/tidypics/ajax_upload.php +++ b/views/default/forms/photos/ajax_upload.php diff --git a/views/default/forms/photos/album/save.php b/views/default/forms/photos/album/save.php new file mode 100644 index 000000000..8a1202c07 --- /dev/null +++ b/views/default/forms/photos/album/save.php @@ -0,0 +1,48 @@ +<?php +/** + * Save album form body + * + * @author Cash Costello + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 + */ + +$title = elgg_extract('title', $vars, ''); +$description = elgg_extract('description', $vars, ''); +$tags = elgg_extract('tags', $vars, ''); +$access_id = elgg_extract('access_id', $vars, get_default_access()); +$container_guid = elgg_extract('container_guid', $vars, elgg_get_page_owner_guid()); +$guid = elgg_extract('guid', $vars, 0); + +?> + +<div> + <label><?php echo elgg_echo('album:title'); ?></label> + <?php echo elgg_view('input/text', array('name' => 'title', 'value' => $title)); ?> +</div> +<div> + <label><?php echo elgg_echo('album:desc'); ?></label> + <?php echo elgg_view('input/longtext', array('name' => 'description', 'value' => $description)); ?> +</div> +<div> + <label><?php echo elgg_echo('tags'); ?></label> + <?php echo elgg_view('input/tags', array('name' => 'tags', 'value' => $tags)); ?> +</div> +<?php + +$categories = elgg_view('input/categories', $vars); +if ($categories) { + echo $categories; +} + +?> +<div> + <label><?php echo elgg_echo('access'); ?></label> + <?php echo elgg_view('input/access', array('name' => 'access_id', 'value' => $access_id)); ?> +</div> +<div class="elgg-foot"> +<?php +echo elgg_view('input/hidden', array('name' => 'guid', 'value' => $guid)); +echo elgg_view('input/hidden', array('name' => 'container_guid', 'value' => $container_guid)); +echo elgg_view('input/submit', array('value' => elgg_echo('save'))); +?> +</div> diff --git a/views/default/forms/tidypics/basic_upload.php b/views/default/forms/photos/basic_upload.php index 55ab854a4..55ab854a4 100644 --- a/views/default/forms/tidypics/basic_upload.php +++ b/views/default/forms/photos/basic_upload.php |