aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/admin/ws_checker.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/ws_checker.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/ws_checker.tpl')
-rw-r--r--template/yoga/admin/ws_checker.tpl170
1 files changed, 79 insertions, 91 deletions
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}