[xiph-commits] r3315 - in arkaiv/trunk/arkaiv: model templates

dcrowdy at svn.annodex.net dcrowdy at svn.annodex.net
Sun Dec 16 04:10:51 PST 2007


Author: dcrowdy
Date: 2007-12-16 04:10:49 -0800 (Sun, 16 Dec 2007)
New Revision: 3315

Modified:
   arkaiv/trunk/arkaiv/model/__init__.pyc
   arkaiv/trunk/arkaiv/templates/searchresults.mak
Log:
Added ability to add searched for items to be added to playlists as well as meta tag info and clips.  Not sure why that wasn't there in the first place...


Modified: arkaiv/trunk/arkaiv/model/__init__.pyc
===================================================================
(Binary files differ)

Modified: arkaiv/trunk/arkaiv/templates/searchresults.mak
===================================================================
--- arkaiv/trunk/arkaiv/templates/searchresults.mak	2007-12-16 11:55:13 UTC (rev 3314)
+++ arkaiv/trunk/arkaiv/templates/searchresults.mak	2007-12-16 12:10:49 UTC (rev 3315)
@@ -3,13 +3,36 @@
 
 <hr>
 <p>Items:</p>
+<form name='items' action='additemstoplaylist'>
+<table>
+<tr>
+<td>Item</td>
+<td>Name</td>
+<td></td>
+</tr>
+<%
+i = 0
+%>
+
 % for item in c.items:
-<li>
-	${item['index']}
-	${ h.link_to(item['name'], h.url(action="displayitem", edit="no", id=item['index']))}
-</li>
+<tr>
+<td>${item['index']}</td>
+<td>${ h.link_to(item['name'], h.url(action="displayitem", edit="no", id=item['index']))}</td>
+<td><input type='checkbox' name='${i}' value='${item['index']}'></td>
+</tr>
+<%
+i = i + 1
+%>
 % endfor
+</table>
+Playlist:
+${ h.select("playlist", c.playlistinfo)}
 
+${ h.hidden_field('nummetas', value=i) }
+${ h.submit('Add') } 
+</form>
+
+<hr>
 <p>Meta names:</p>
 <form name='metas' action='additemstoplaylist'>
 <table>



More information about the commits mailing list