summaryrefslogtreecommitdiffstats
path: root/templates/show_edit_album_row.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-22 16:47:22 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-22 16:47:22 +0000
commit472072028560aa178211ae248fc0dad4526533c7 (patch)
tree247111303a40c5e07fad73d10a3b4aff868c7c8d /templates/show_edit_album_row.inc.php
parentb337d84d9af8a7db8e0171c9c0f4bedeae0ef05e (diff)
downloadampache-472072028560aa178211ae248fc0dad4526533c7.tar.gz
ampache-472072028560aa178211ae248fc0dad4526533c7.tar.bz2
ampache-472072028560aa178211ae248fc0dad4526533c7.zip
corrected ajax but introduced with prototype, tweaked how ajax stuff is done, now uses ajax:: class also replaced player with a logout icon
Diffstat (limited to 'templates/show_edit_album_row.inc.php')
-rw-r--r--templates/show_edit_album_row.inc.php23
1 files changed, 16 insertions, 7 deletions
diff --git a/templates/show_edit_album_row.inc.php b/templates/show_edit_album_row.inc.php
index b66ae255..b5fd8d6d 100644
--- a/templates/show_edit_album_row.inc.php
+++ b/templates/show_edit_album_row.inc.php
@@ -21,12 +21,21 @@
?>
<td colspan="6">
<form method="post" id="edit_album_<?php echo $album->id; ?>">
-<input type="input" name="name" value="<?php echo scrub_out($album->name); ?>" />
-<input type="hidden" name="id" value="<?php echo $album->id; ?>" />
-<input type="hidden" name="type" value="album" />
-<span onclick="ajaxPost('<?php echo Config::get('ajax_url'); ?>?action=edit_object&amp;id=<?php echo $album->id; ?>&amp;type=album','edit_album_<?php echo $album->id; ?>');">
- <img src="<?php echo Config::get('web_path'); ?>/images/icon_download.png">
-</span>
-</form>
+<table border="0" cellpadding="3" cellspacing="0">
+<td>
+ <input type="textbox" name="name" value="<?php echo scrub_out($album->name); ?>" />
+</td>
+<td>
+ <?php show_artist_pulldown($album->artist_id,'artist_id'); ?>
+</td>
+<td>
+ <input type="textbox" name="year" value="<?php echo scrub_out($album->year); ?>" />
</td>
+<td>
+ <input type="hidden" name="id" value="<?php echo $album->id; ?>" />
+ <input type="hidden" name="type" value="album" />
+ <?php echo Ajax::button('?action=edit_object&id=' . $album->id . '&type=album','download',_('Save Changes'),'save_album_' . $album->id,'edit_album_' . $album->id); ?>
+</td>
+</table>
+</form>
</td>