aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/admin
diff options
context:
space:
mode:
Diffstat (limited to 'template/yoga/admin')
-rw-r--r--template/yoga/admin/plugin.tpl6
-rw-r--r--template/yoga/admin/profile.tpl6
-rw-r--r--template/yoga/admin/upload.tpl68
-rw-r--r--template/yoga/admin/ws_checker.tpl170
4 files changed, 120 insertions, 130 deletions
diff --git a/template/yoga/admin/plugin.tpl b/template/yoga/admin/plugin.tpl
index 8a10b02cf..5a0a1fbe7 100644
--- a/template/yoga/admin/plugin.tpl
+++ b/template/yoga/admin/plugin.tpl
@@ -1,7 +1,7 @@
-<!-- DEV TAG: not smarty migrated -->
+{* $Id$ *}
<div class="titrePage">
- <h2>{PLUGIN_TITLE}</h2>
+ <h2>{$PLUGIN_TITLE}</h2>
</div>
-{PLUGIN_ADMIN_CONTENT}
+{$PLUGIN_ADMIN_CONTENT}
diff --git a/template/yoga/admin/profile.tpl b/template/yoga/admin/profile.tpl
index 383841a79..f6326319c 100644
--- a/template/yoga/admin/profile.tpl
+++ b/template/yoga/admin/profile.tpl
@@ -1,6 +1,6 @@
-<!-- DEV TAG: not smarty migrated -->
+{* $Id$ *}
<div class="titrePage">
- <h2>{lang:Profile}</h2>
+ <h2>{'Profile'|@translate}</h2>
</div>
-{PROFILE_CONTENT}
+{$PROFILE_CONTENT}
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>
diff --git a/template/yoga/admin/ws_checker.tpl b/template/yoga/admin/ws_checker.tpl
index b61d75176..cce3c7f49 100644
--- a/template/yoga/admin/ws_checker.tpl
+++ b/template/yoga/admin/ws_checker.tpl
@@ -1,93 +1,87 @@
-<!-- DEV TAG: not smarty migrated -->
-<!-- $Id$ -->
+{* $Id$ *}
<div class="titrePage">
<ul class="categoryActions">
- <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
+ <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li>
</ul>
- <h2>{lang:title_wscheck} - {lang:web_services}</h2>
+ <h2>{'title_wscheck'|@translate} - {'web_services'|@translate}</h2>
</div>
-<!-- BEGIN update_result -->
+{if !empty($update_results)}
<ul>
- {update_result.UPD_ELEMENT}
+ {foreach from=$update_results item=result}
+ <li>$result</li>
+ {/foreach}
</ul>
-<!-- END update_result -->
+{/if}
-<!-- Add Access -->
-<form method="post" name="adding_access" action="{F_STATUS_ACTION}">
+{* Add Access *}
+<form method="post" name="adding_access" action="{$F_STATUS_ACTION}">
<!-- Current Default -->
<fieldset>
- <legend>{lang:ws_adding_legend}</legend>
+ <legend>{'ws_adding_legend'|@translate}</legend>
<table>
- <!-- Access key -->
+ {* Access key *}
<tr>
<td>
- <label for="KeyName">{lang:Confidential partner key} </label>
+ <label for="KeyName">{'Confidential partner key'|@translate} </label>
</td>
<td>
<input type="text" maxlength="35" size="35" name="add_partner"
- id="add_partner" value="{F_ADD_PARTNER}"
- title="{lang:Basis of access key calculation}" />
+ id="add_partner" value="{$F_ADD_PARTNER}"
+ title="{'Basis of access key calculation'|@translate}" />
</td>
</tr>
- <!-- Target (cat/ids, tag/ids, or list/ids ids=id,id-id,...) -->
+ {* Target (cat/ids, tag/ids, or list/ids ids=id,id-id,...) *}
<tr>
<td>
- <label for="Access">{lang:Target}</label>
+ <label for="Access">{'Target'|@translate}</label>
</td>
<td>
<input type="text" maxlength="128" size="35" name="add_target"
- id="add_target" value="{F_ADD_ACCESS}"
- title="{lang:Facultative and restrictive option}" />
- <i><small> ({lang:Access: see help text for more})
+ id="add_target" value="{$F_ADD_ACCESS}"
+ title="{'Facultative and restrictive option'|@translate}" />
+ <i><small> ({'Access: see help text for more'|@translate})
</small></i>
</td>
</tr>
- <!-- Restricted access to specific request -->
+ {* Restricted access to specific request *}
<tr>
<td>
- <label for="add_request">{lang:Restrict access to}</label>
+ <label for="add_request">{'Restrict access to'|@translate}</label>
</td>
<td>
<select name="add_request" id="add_request" style="width: 18em"
onfocus="this.className='focus';"
onblur="this.className='nofocus';">
- <!-- BEGIN add_request -->
- <option value="{add_request.VALUE}"
- {add_request.SELECTED}>{add_request.CONTENT}
- </option>
- <!-- END add_request -->
+ <option value=""></option>
+ {html_options values=$add_requests output=$add_requests}
</select>
- <i><small> ({lang:ws_Methods})</small></i>
+ <i><small> ({'ws_Methods'|@translate})</small></i>
</td>
</tr>
- <!-- Limit number of images information to be return -->
+ {* Limit number of images information to be return *}
<tr>
<td>
- <label for="add_limit">{lang:Returned images limit}</label>
+ <label for="add_limit">{'Returned images limit'|@translate}</label>
</td>
<td>
<select name="add_limit" id="add_limit" style="width: 10em"
onfocus="this.className='focus';"
onblur="this.className='nofocus';">
- <!-- BEGIN add_limit -->
- <option value="{add_limit.VALUE}"
- {add_limit.SELECTED}>{add_limit.CONTENT}
- </option>
- <!-- END add_limit -->
+ {html_options values=$add_limits output=$add_limits}
</select>
</td>
</tr>
- <!-- Open service is postponed by n days -->
- <!-- In comment currently
+ {* Open service is postponed by n days *}
+ {* In comment currently
<tr>
<td>
- <label for="add_start">{lang:Postponed availability in days}</label>
+ <label for="add_start">{'Postponed availability in days'|@translate}</label>
</td>
<td>
<select name="add_start" id="add_start" style="width: 10em"
@@ -100,100 +94,97 @@
<!-- END add_start -->
</select>
</td>
- </tr> -->
+ </tr>
+ *}
- <!-- Opened service only for n days -->
+ {* Opened service only for n days *}
<tr>
<td>
- <label for="add_end">{lang:Duration in days}</label>
+ <label for="add_end">{'Duration in days'|@translate}</label>
</td>
<td>
<select name="add_end" id="add_end" style="width: 10em"
onfocus="this.className='focus';"
onblur="this.className='nofocus';">
- <!-- BEGIN add_end -->
- <option value="{add_end.VALUE}"
- {add_end.SELECTED}>{add_end.CONTENT}
- </option>
- <!-- END add_end -->
+ {html_options values=$add_ends output=$add_ends}
</select>
</td>
</tr>
- <!-- Idendify your partner (name / website / phone) as you want -->
+ {* Idendify your partner (name / website / phone) as you want *}
<tr>
<td>
- <label for="add_Comment">{lang:ws_Comment}</label>
+ <label for="add_Comment">{'ws_Comment'|@translate}</label>
<br />
</td>
<td>
<textarea name="add_comment" id="add_comment"
- rows="4" cols="80">{lang:Comment to identify your partner clearly}</textarea>
+ rows="4" cols="80">{'Comment to identify your partner clearly'|@translate}</textarea>
</td>
</tr>
- <!-- Add submit button -->
+ {* Add submit button *}
<tr>
<td>
</td>
<td>
<input class="submit" type="submit" name="wsa_submit" style="width: 10em; padding-top: 3px;"
- value="{lang:Submit}" {TAG_INPUT_ENABLED}
- title="{lang:Add this access definition}" />
+ value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}
+ title="{'Add this access definition'|@translate}" />
</td>
</tr>
</table>
</fieldset>
</form>
-<!-- BEGIN acc_list -->
+{if !empty($access_list)}
<!-- Access list -->
-<form method="post" name="preferences" action="{F_STATUS_ACTION}">
- <input type="hidden" name="partner_prev" value="{F_PREV_PARTNER}">
- <input type="hidden" name="request_prev" value="{F_PREV_REQUEST}">
- <input type="hidden" name="high_prev" value="{F_PREV_HIGH}">
- <input type="hidden" name="normal_prev" value="{F_PREV_NORMAL}">
- <input type="hidden" name="order_prev" value="{F_PREV_ORDER}">
- <input type="hidden" name="dir5n_prev" value="{F_PREV_DIR5N}">
+<form method="post" name="preferences" action="{$F_STATUS_ACTION}">
+ <input type="hidden" name="partner_prev" value="{$F_PREV_PARTNER}">
+ <input type="hidden" name="request_prev" value="{$F_PREV_REQUEST}">
+ <input type="hidden" name="high_prev" value="{$F_PREV_HIGH}">
+ <input type="hidden" name="normal_prev" value="{$F_PREV_NORMAL}">
+ <input type="hidden" name="order_prev" value="{$F_PREV_ORDER}">
+ <input type="hidden" name="dir5n_prev" value="{$F_PREV_DIR5N}">
<!-- Delete / Update Selected -->
<fieldset>
- <legend>{lang:ws_update_legend}</legend>
+ <legend>{'ws_update_legend'|@translate}</legend>
<table class="table2">
<tr class="throw">
<th>&nbsp;</th>
- <th>{lang:ws_KeyName}</th>
- <th>{lang:ws_Access}</th>
- <th>{lang:ws_End}</th>
- <th>{lang:ws_Request}</th>
- <th>{lang:ws_Limit}</th>
- <th>{lang:ws_Comment}</th>
+ <th>{'ws_KeyName'|@translate}</th>
+ <th>{'ws_Access'|@translate}</th>
+ <th>{'ws_End'|@translate}</th>
+ <th>{'ws_Request'|@translate}</th>
+ <th>{'ws_Limit'|@translate}</th>
+ <th>{'ws_Comment'|@translate}</th>
</tr>
- <!-- BEGIN access -->
- <tr class="{acc_list.access.CLASS}">
+ {foreach from=$access_list item=access name=access_loop}
+ <tr class="{if $smarty.foreach.access_loop.index is odd}row1{else}row2{/if}">
<td>
<input type="radio" name="selection"
- value="{acc_list.access.ID}" id="selection-{acc_list.access.ID}">
- </td>
- <td><label for="selection-{acc_list.access.ID}">{acc_list.access.NAME}</label></td>
- <td>{acc_list.access.TARGET}</td>
- <td>{acc_list.access.END}</td>
- <td>{acc_list.access.REQUEST}</td>
- <td>{acc_list.access.LIMIT}</td>
- <td>{acc_list.access.COMMENT}</td>
+ value="{$access.ID}" id="selection-{$access.ID}">
+ </td>
+ <td><label for="selection-{$access.ID}">{$access.NAME}</label></td>
+ <td>{$access.TARGET}</td>
+ <td>{$access.END}</td>
+ <td>{$access.REQUEST}</td>
+ <td>{$access.LIMIT}</td>
+ <td>{$access.COMMENT}</td>
</tr>
- <!-- END user -->
+ {/foreach}
</table>
<table>
<tr>
<td>
- {lang:ws_delete_legend}
+ {'ws_delete_legend'|@translate}
</td>
<td>
<input type="radio" name="delete_confirmation"
value="true">
<input class="submit" type="submit" name="wsX_submit" style="width: 10em; padding-top: 3px;"
- value="{lang:Delete}" {TAG_INPUT_ENABLED}>
+ value="{'Delete'|@translate}" {$TAG_INPUT_ENABLED}>
</td>
</tr>
</table>
@@ -202,29 +193,26 @@
<tr>
<td>
<span class="property">
- <label for="upd_end">{lang:Modify End from Now +} </label>
+ <label for="upd_end">{'Modify End from Now +'|@translate} </label>
</span>
<select name="upd_end" id="upd_end" style="width: 10em"
onfocus="this.className='focus';"
onblur="this.className='nofocus';">
- <!-- BEGIN upd_end -->
- <option value="{acc_list.upd_end.VALUE}" {acc_list.upd_end.SELECTED}>
- {acc_list.upd_end.CONTENT}
- </option>
- <!-- END upd_end -->
+ {html_options values=$add_ends output=$add_ends}
</select>
<input class="submit" type="submit" name="wsu_submit" style="width: 10em; padding-top: 3px;"
- value="{lang:Submit}" {TAG_INPUT_ENABLED}>
+ value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
</td>
<td>
- <i><small> ({lang:Web Services availability duration in days})</small></i>
+ <i><small> ({'Web Services availability duration in days'|@translate})</small></i>
</td>
</tr>
</table>
</fieldset>
</form>
-<!-- BEGIN ws_status -->
- <h3>{acc_list.ws_status.VALUE}</h3>
-<!-- END ws_status -->
-<!-- END acc_list -->
+{/if}
+
+{if isset($WS_STATUS)}
+ <h3>{$WS_STATUS}</h3>
+{/if}