aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/admin/upload.tpl
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-07 02:07:55 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-07 02:07:55 +0000
commit5a7723ff10ee2b01770542b2b5726cdfb8769e4a (patch)
tree75c44637d12d9eeaef8fa80ddca680b554d17d17 /template/yoga/admin/upload.tpl
parent111a34e5814410be7cf17675d89687c4f420ab8a (diff)
- some more smarty migration (admin upload ws_checker profile and plugin)
git-svn-id: http://piwigo.org/svn/trunk@2260 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/yoga/admin/upload.tpl')
-rw-r--r--template/yoga/admin/upload.tpl68
1 files changed, 35 insertions, 33 deletions
diff --git a/template/yoga/admin/upload.tpl b/template/yoga/admin/upload.tpl
index 755e5ac35..419a01ec0 100644
--- a/template/yoga/admin/upload.tpl
+++ b/template/yoga/admin/upload.tpl
@@ -1,51 +1,53 @@
-<!-- DEV TAG: not smarty migrated -->
-<!-- $Id$ -->
+{* $Id$ *}
<div class="titrePage">
- <h2>{lang:waiting} {TABSHEET_TITLE}</h2>
- {TABSHEET}
+ <h2>{'waiting'|@translate} {$TABSHEET_TITLE}</h2>
+ {$TABSHEET}
</div>
-<h3>{lang:title_upload}</h3>
+<h3>{'title_upload'|@translate}</h3>
-<form action="{F_ACTION}" method="post" id="waiting">
- <table style="width:100%;" >
+<form action="{$F_ACTION}" method="post" id="waiting">
+ <table style="width:99%;" >
<tr class="throw">
- <th style="width:20%;">{lang:category}</th>
- <th style="width:20%;">{lang:date}</th>
- <th style="width:20%;">{lang:file}</th>
- <th style="width:20%;">{lang:thumbnail}</th>
- <th style="width:20%;">{lang:Author}</th>
+ <th style="width:20%;">{'category'|@translate}</th>
+ <th style="width:20%;">{'date'|@translate}</th>
+ <th style="width:20%;">{'file'|@translate}</th>
+ <th style="width:20%;">{'thumbnail'|@translate}</th>
+ <th style="width:20%;">{'Author'|@translate}</th>
<th style="width:1px;">&nbsp;</th>
</tr>
- <!-- BEGIN picture -->
- <tr>
- <td class="{picture.WAITING_CLASS}" style="white-space:nowrap;">{picture.CATEGORY_IMG}</td>
- <td class="{picture.WAITING_CLASS}" style="white-space:nowrap;">{picture.DATE_IMG}</td>
- <td class="{picture.WAITING_CLASS}" style="white-space:nowrap;">
- <a href="{picture.PREVIEW_URL_IMG}" title="{picture.FILE_TITLE}">{picture.FILE_IMG}</a>
+
+ {if not empty($pictures) }
+ {foreach from=$pictures item=picture name=picture_loop}
+ <tr class="{if $smarty.foreach.picture_loop.index is odd}row1{else}row2{/if}">
+ <td style="white-space:nowrap;">{$picture.CATEGORY_IMG}</td>
+ <td style="white-space:nowrap;">{$picture.DATE_IMG}</td>
+ <td style="white-space:nowrap;">
+ <a href="{$picture.PREVIEW_URL_IMG}" title="{$picture.FILE_TITLE}">{$picture.FILE_IMG}</a>
</td>
- <td class="{picture.WAITING_CLASS}" style="white-space:nowrap;">
- <!-- BEGIN thumbnail -->
- <a href="{picture.thumbnail.PREVIEW_URL_TN_IMG}" title="{picture.thumbnail.FILE_TN_TITLE}">{picture.thumbnail.FILE_TN_IMG}</a>
- <!-- END thumbnail -->
+ <td style="white-space:nowrap;">
+ {if not empty($picture.thumbnail) }
+ <a href="{$picture.thumbnail.PREVIEW_URL_TN_IMG}" title="{$picture.thumbnail.FILE_TN_TITLE}">{$picture.thumbnail.FILE_TN_IMG}</a>
+ {/if}
</td>
- <td class="{picture.WAITING_CLASS}" style="white-space:nowrap;">
- <a href="mailto:{picture.UPLOAD_EMAIL}">{picture.UPLOAD_USERNAME}</a>
+ <td style="white-space:nowrap;">
+ <a href="mailto:{$picture.UPLOAD_EMAIL}">{$picture.UPLOAD_USERNAME}</a>
</td>
- <td class="{picture.WAITING_CLASS}" style="white-space:nowrap;">
- <label><input type="radio" name="action-{picture.ID_IMG}" value="validate" /> {lang:Validate}</label>
- <label><input type="radio" name="action-{picture.ID_IMG}" value="reject" /> {lang:Reject}</label>
+ <td style="white-space:nowrap;">
+ <label><input type="radio" name="action-{$picture.ID_IMG}" value="validate" /> {'Validate'|@translate}</label>
+ <label><input type="radio" name="action-{$picture.ID_IMG}" value="reject" /> {'Reject'|@translate}</label>
</td>
</tr>
- <!-- END picture -->
+ {/foreach}
+ {/if}
</table>
<p class="bottomButtons">
- <input type="hidden" name="list" value="{LIST}" />
- <input class="submit" type="submit" name="submit" value="{lang:Submit}" {TAG_INPUT_ENABLED}/>
- <input class="submit" type="submit" name="validate-all" value="{lang:Validate All}" {TAG_INPUT_ENABLED}/>
- <input class="submit" type="submit" name="reject-all" value="{lang:Reject All}" {TAG_INPUT_ENABLED}/>
- <input class="submit" type="reset" value="{lang:Reset}" />
+ <input type="hidden" name="list" value="{$LIST}" />
+ <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}/>
+ <input class="submit" type="submit" name="validate-all" value="{'Validate All'|@translate}" {$TAG_INPUT_ENABLED}/>
+ <input class="submit" type="submit" name="reject-all" value="{'Reject All'|@translate}" {$TAG_INPUT_ENABLED}/>
+ <input class="submit" type="reset" value="{'Reset'|@translate}" />
</p>
</form>