Expose the theme RSS feeds
[rockboxthemes.git] / private / templates / adminlist.tpl
blob5f74744dab127dd75c675013ec92ea0412c08752
1 {include file="header.tpl" title="Admin - handle themes for $mainlcd"}
3 <h1>Manage themes for {$mainlcd}</h1>
4    
5    <a href="{$smarty.server.SCRIPT_NAME}?target={$smarty.request.target}&amp;approved=any">Show{if $approved=="any"}ing{/if} all</a>
6  | <a href="{$smarty.server.SCRIPT_NAME}?target={$smarty.request.target}&amp;approved=approved">Show{if $approved=="approved"}ing{/if} approved</a>
7  | <a href="{$smarty.server.SCRIPT_NAME}?target={$smarty.request.target}&amp;approved=hidden">Show{if $approved=="hidden"}ing{/if} hidden</a>
9 {if count($themes) == 0}
10 <p>No themes match your selection</p>
11 {else}
12 <form method="POST" action="{$smarty.server.SCRIPT_NAME}">
13 <input type="hidden" name="target" value="{$smarty.request.target}" />
14 <input type="hidden" name="approved" value="{$smarty.request.approved}" />
15 <table border="1">
16 {section name=mysec loop=$themes}
17     <tr>
18         <td>{html_image file="`$datadir`/`$mainlcd`/`$themes[mysec].shortname`/`$themes[mysec].sshot_wps`" href="`$datadir`/`$mainlcd`/`$themes[mysec].shortname`/`$themes[mysec].zipfile`"}</td>
19         <td>{$themes[mysec].name}</td>
20         <td>
21             <input type="hidden" name="id[]" value="{$themes[mysec].id}" />
22             <input type="hidden" name="prevstatus[]" value="{$themes[mysec].approved}" />
23             Approved <input type="radio" name="status[]" value="1" {if $themes[mysec].approved == 1}checked="checked" {/if}/><br />
24             Hidden <input type="radio" name="status[]" value="0" {if $themes[mysec].approved == 0}checked="checked" {/if}/><br />
25             Delete <input type="radio" name="status[]" value="-1" />
26         </td>
27         <td>
28             <textarea rows="10" cols="40" name="reason[]">{$themes[mysec].reason}</textarea>
29         </td>
30     </tr>
31 {/section}
32 </table>
34 <p><input type="submit" name="changestatuses" value="Update all themes" /></p>
35 </form>
36 {/if}
37 {include file="footer.tpl"}