Changeset 2260 for trunk/template


Ignore:
Timestamp:
Mar 7, 2008, 3:07:55 AM (17 years ago)
Author:
rvelices
Message:
  • some more smarty migration (admin upload ws_checker profile and plugin)
Location:
trunk/template/yoga
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/admin/plugin.tpl

    r2222 r2260  
    1 <!-- DEV TAG: not smarty migrated -->
     1{* $Id$ *}
    22<div class="titrePage">
    3   <h2>{PLUGIN_TITLE}</h2>
     3  <h2>{$PLUGIN_TITLE}</h2>
    44</div>
    55
    66
    7 {PLUGIN_ADMIN_CONTENT}
     7{$PLUGIN_ADMIN_CONTENT}
  • trunk/template/yoga/admin/profile.tpl

    r2222 r2260  
    1 <!-- DEV TAG: not smarty migrated -->
     1{* $Id$ *}
    22<div class="titrePage">
    3   <h2>{lang:Profile}</h2>
     3  <h2>{'Profile'|@translate}</h2>
    44</div>
    55
    6 {PROFILE_CONTENT}
     6{$PROFILE_CONTENT}
  • trunk/template/yoga/admin/upload.tpl

    r2222 r2260  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
    32<div class="titrePage">
    4   <h2>{lang:waiting} {TABSHEET_TITLE}</h2>
    5   {TABSHEET}
     3  <h2>{'waiting'|@translate} {$TABSHEET_TITLE}</h2>
     4  {$TABSHEET}
    65</div>
    76
    8 <h3>{lang:title_upload}</h3>
     7<h3>{'title_upload'|@translate}</h3>
    98
    10 <form action="{F_ACTION}" method="post" id="waiting">
    11   <table style="width:100%;" >
     9<form action="{$F_ACTION}" method="post" id="waiting">
     10  <table style="width:99%;" >
    1211    <tr class="throw">
    13       <th style="width:20%;">{lang:category}</th>
    14       <th style="width:20%;">{lang:date}</th>
    15       <th style="width:20%;">{lang:file}</th>
    16       <th style="width:20%;">{lang:thumbnail}</th>
    17       <th style="width:20%;">{lang:Author}</th>
     12      <th style="width:20%;">{'category'|@translate}</th>
     13      <th style="width:20%;">{'date'|@translate}</th>
     14      <th style="width:20%;">{'file'|@translate}</th>
     15      <th style="width:20%;">{'thumbnail'|@translate}</th>
     16      <th style="width:20%;">{'Author'|@translate}</th>
    1817      <th style="width:1px;">&nbsp;</th>
    1918    </tr>
    20     <!-- BEGIN picture -->
    21     <tr>
    22       <td class="{picture.WAITING_CLASS}" style="white-space:nowrap;">{picture.CATEGORY_IMG}</td>
    23       <td class="{picture.WAITING_CLASS}" style="white-space:nowrap;">{picture.DATE_IMG}</td>
    24       <td class="{picture.WAITING_CLASS}" style="white-space:nowrap;">
    25         <a href="{picture.PREVIEW_URL_IMG}" title="{picture.FILE_TITLE}">{picture.FILE_IMG}</a>
     19   
     20    {if not empty($pictures) }
     21    {foreach from=$pictures item=picture name=picture_loop}
     22    <tr class="{if $smarty.foreach.picture_loop.index is odd}row1{else}row2{/if}">
     23      <td style="white-space:nowrap;">{$picture.CATEGORY_IMG}</td>
     24      <td style="white-space:nowrap;">{$picture.DATE_IMG}</td>
     25      <td style="white-space:nowrap;">
     26        <a href="{$picture.PREVIEW_URL_IMG}" title="{$picture.FILE_TITLE}">{$picture.FILE_IMG}</a>
    2627      </td>
    27       <td class="{picture.WAITING_CLASS}" style="white-space:nowrap;">
    28         <!-- BEGIN thumbnail -->
    29         <a href="{picture.thumbnail.PREVIEW_URL_TN_IMG}" title="{picture.thumbnail.FILE_TN_TITLE}">{picture.thumbnail.FILE_TN_IMG}</a>
    30         <!-- END thumbnail -->
     28      <td style="white-space:nowrap;">
     29        {if not empty($picture.thumbnail) }
     30        <a href="{$picture.thumbnail.PREVIEW_URL_TN_IMG}" title="{$picture.thumbnail.FILE_TN_TITLE}">{$picture.thumbnail.FILE_TN_IMG}</a>
     31        {/if}
    3132      </td>
    32       <td class="{picture.WAITING_CLASS}" style="white-space:nowrap;">
    33         <a href="mailto:{picture.UPLOAD_EMAIL}">{picture.UPLOAD_USERNAME}</a>
     33      <td style="white-space:nowrap;">
     34        <a href="mailto:{$picture.UPLOAD_EMAIL}">{$picture.UPLOAD_USERNAME}</a>
    3435      </td>
    35       <td class="{picture.WAITING_CLASS}" style="white-space:nowrap;">
    36         <label><input type="radio" name="action-{picture.ID_IMG}" value="validate" /> {lang:Validate}</label>
    37         <label><input type="radio" name="action-{picture.ID_IMG}" value="reject" /> {lang:Reject}</label>
     36      <td style="white-space:nowrap;">
     37        <label><input type="radio" name="action-{$picture.ID_IMG}" value="validate" /> {'Validate'|@translate}</label>
     38        <label><input type="radio" name="action-{$picture.ID_IMG}" value="reject" /> {'Reject'|@translate}</label>
    3839      </td>
    3940    </tr>
    40     <!-- END picture -->
     41    {/foreach}
     42    {/if}
    4143  </table>
    4244
    4345  <p class="bottomButtons">
    44     <input type="hidden" name="list" value="{LIST}" />
    45     <input class="submit" type="submit" name="submit" value="{lang:Submit}" {TAG_INPUT_ENABLED}/>
    46     <input class="submit" type="submit" name="validate-all" value="{lang:Validate All}" {TAG_INPUT_ENABLED}/>
    47     <input class="submit" type="submit" name="reject-all" value="{lang:Reject All}" {TAG_INPUT_ENABLED}/>
    48     <input class="submit" type="reset" value="{lang:Reset}" />
     46    <input type="hidden" name="list" value="{$LIST}" />
     47    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}/>
     48    <input class="submit" type="submit" name="validate-all" value="{'Validate All'|@translate}" {$TAG_INPUT_ENABLED}/>
     49    <input class="submit" type="submit" name="reject-all" value="{'Reject All'|@translate}" {$TAG_INPUT_ENABLED}/>
     50    <input class="submit" type="reset" value="{'Reset'|@translate}" />
    4951  </p>
    5052
  • trunk/template/yoga/admin/ws_checker.tpl

    r2222 r2260  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
    32
    43<div class="titrePage">
    54  <ul class="categoryActions">
    6     <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>
     5    <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>
    76  </ul>
    8   <h2>{lang:title_wscheck} - {lang:web_services}</h2>
     7  <h2>{'title_wscheck'|@translate} - {'web_services'|@translate}</h2>
    98</div>
    109
    11 <!-- BEGIN update_result -->
     10{if !empty($update_results)}
    1211<ul>
    13   {update_result.UPD_ELEMENT}
     12  {foreach from=$update_results item=result}
     13  <li>$result</li>
     14  {/foreach}
    1415</ul>
    15 <!-- END update_result -->
    16 
    17 <!-- Add Access -->
    18 <form method="post" name="adding_access" action="{F_STATUS_ACTION}">
     16{/if}
     17
     18{* Add Access *}
     19<form method="post" name="adding_access" action="{$F_STATUS_ACTION}">
    1920  <!-- Current Default -->
    2021  <fieldset>
    21     <legend>{lang:ws_adding_legend}</legend>
     22    <legend>{'ws_adding_legend'|@translate}</legend>
    2223    <table>
    23     <!-- Access key -->
    24       <tr>
    25         <td>
    26           <label for="KeyName">{lang:Confidential partner key} </label>
     24    {* Access key *}
     25      <tr>
     26        <td>
     27          <label for="KeyName">{'Confidential partner key'|@translate} </label>
    2728        </td>
    2829        <td>
    2930          <input type="text" maxlength="35" size="35" name="add_partner"
    30             id="add_partner" value="{F_ADD_PARTNER}"
    31             title="{lang:Basis of access key calculation}" />
    32         </td>
    33       </tr>
    34 
    35     <!-- Target (cat/ids, tag/ids, or list/ids ids=id,id-id,...) -->
    36       <tr>
    37         <td>
    38           <label for="Access">{lang:Target}</label>
     31            id="add_partner" value="{$F_ADD_PARTNER}"
     32            title="{'Basis of access key calculation'|@translate}" />
     33        </td>
     34      </tr>
     35
     36    {* Target (cat/ids, tag/ids, or list/ids ids=id,id-id,...) *}
     37      <tr>
     38        <td>
     39          <label for="Access">{'Target'|@translate}</label>
    3940        </td>
    4041        <td>
    4142          <input type="text" maxlength="128" size="35" name="add_target"
    42             id="add_target" value="{F_ADD_ACCESS}"
    43             title="{lang:Facultative and restrictive option}" />
    44           <i><small> ({lang:Access: see help text for more})
     43            id="add_target" value="{$F_ADD_ACCESS}"
     44            title="{'Facultative and restrictive option'|@translate}" />
     45          <i><small> ({'Access: see help text for more'|@translate})
    4546          </small></i>
    4647        </td>
    4748      </tr>
    4849
    49     <!-- Restricted access to specific request -->
    50       <tr>
    51         <td>
    52           <label for="add_request">{lang:Restrict access to}</label>
     50    {* Restricted access to specific request *}
     51      <tr>
     52        <td>
     53          <label for="add_request">{'Restrict access to'|@translate}</label>
    5354        </td>
    5455        <td>
     
    5657            onfocus="this.className='focus';"
    5758            onblur="this.className='nofocus';">
    58             <!-- BEGIN add_request -->
    59             <option value="{add_request.VALUE}"
    60               {add_request.SELECTED}>{add_request.CONTENT}
    61             </option>
    62             <!-- END add_request -->
     59            <option value=""></option>
     60            {html_options values=$add_requests output=$add_requests}
    6361          </select>
    64           <i><small> ({lang:ws_Methods})</small></i>
    65         </td>
    66       </tr>
    67 
    68      <!-- Limit number of images information to be return -->
     62          <i><small> ({'ws_Methods'|@translate})</small></i>
     63        </td>
     64      </tr>
     65
     66     {* Limit number of images information to be return *}
    6967     <tr>
    7068        <td>
    71           <label for="add_limit">{lang:Returned images limit}</label>
     69          <label for="add_limit">{'Returned images limit'|@translate}</label>
    7270        </td>
    7371        <td>
     
    7573            onfocus="this.className='focus';"
    7674            onblur="this.className='nofocus';">
    77             <!-- BEGIN add_limit -->
    78             <option value="{add_limit.VALUE}"
    79               {add_limit.SELECTED}>{add_limit.CONTENT}
    80             </option>
    81             <!-- END add_limit -->
     75            {html_options values=$add_limits output=$add_limits}
    8276          </select>
    8377        </td>
    8478      </tr>
    8579
    86     <!-- Open service is postponed by n days -->
    87     <!-- In comment currently
    88       <tr>
    89         <td>
    90           <label for="add_start">{lang:Postponed availability in days}</label>
     80    {* Open service is postponed by n days *}
     81    {* In comment currently
     82      <tr>
     83        <td>
     84          <label for="add_start">{'Postponed availability in days'|@translate}</label>
    9185        </td>
    9286        <td>
     
    10195          </select>
    10296        </td>
    103       </tr> -->
    104 
    105     <!-- Opened service only for n days -->
    106       <tr>
    107         <td>
    108           <label for="add_end">{lang:Duration in days}</label>
     97      </tr>
     98    *}
     99
     100    {* Opened service only for n days *}
     101      <tr>
     102        <td>
     103          <label for="add_end">{'Duration in days'|@translate}</label>
    109104        </td>
    110105        <td>
     
    112107            onfocus="this.className='focus';"
    113108            onblur="this.className='nofocus';">
    114             <!-- BEGIN add_end -->
    115             <option value="{add_end.VALUE}"
    116               {add_end.SELECTED}>{add_end.CONTENT}
    117             </option>
    118             <!-- END add_end -->
     109            {html_options values=$add_ends output=$add_ends}
    119110          </select>
    120111        </td>
    121112      </tr>
    122113
    123     <!-- Idendify your partner (name / website / phone) as you want -->
    124       <tr>
    125         <td>
    126           <label for="add_Comment">{lang:ws_Comment}</label>
     114    {* Idendify your partner (name / website / phone) as you want *}
     115      <tr>
     116        <td>
     117          <label for="add_Comment">{'ws_Comment'|@translate}</label>
    127118          <br />
    128119        </td>
    129120        <td>
    130121          <textarea name="add_comment" id="add_comment"
    131             rows="4" cols="80">{lang:Comment to identify your partner clearly}</textarea> 
    132         </td>
    133       </tr>
    134 
    135     <!-- Add submit button -->
     122            rows="4" cols="80">{'Comment to identify your partner clearly'|@translate}</textarea> 
     123        </td>
     124      </tr>
     125
     126    {* Add submit button *}
    136127      <tr>
    137128        <td>
     
    139130        <td>
    140131          <input class="submit" type="submit" name="wsa_submit" style="width: 10em; padding-top: 3px;"
    141             value="{lang:Submit}" {TAG_INPUT_ENABLED}
    142             title="{lang:Add this access definition}" />
     132            value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}
     133            title="{'Add this access definition'|@translate}" />
    143134        </td>
    144135      </tr>     
     
    147138</form>
    148139
    149 <!-- BEGIN acc_list -->
     140{if !empty($access_list)}
    150141<!-- Access list -->
    151 <form method="post" name="preferences" action="{F_STATUS_ACTION}">
    152   <input type="hidden" name="partner_prev" value="{F_PREV_PARTNER}">
    153   <input type="hidden" name="request_prev" value="{F_PREV_REQUEST}">
    154   <input type="hidden" name="high_prev" value="{F_PREV_HIGH}">
    155   <input type="hidden" name="normal_prev" value="{F_PREV_NORMAL}">
    156   <input type="hidden" name="order_prev" value="{F_PREV_ORDER}">
    157   <input type="hidden" name="dir5n_prev" value="{F_PREV_DIR5N}">
     142<form method="post" name="preferences" action="{$F_STATUS_ACTION}">
     143  <input type="hidden" name="partner_prev" value="{$F_PREV_PARTNER}">
     144  <input type="hidden" name="request_prev" value="{$F_PREV_REQUEST}">
     145  <input type="hidden" name="high_prev" value="{$F_PREV_HIGH}">
     146  <input type="hidden" name="normal_prev" value="{$F_PREV_NORMAL}">
     147  <input type="hidden" name="order_prev" value="{$F_PREV_ORDER}">
     148  <input type="hidden" name="dir5n_prev" value="{$F_PREV_DIR5N}">
    158149  <!-- Delete / Update Selected -->
    159150  <fieldset>
    160     <legend>{lang:ws_update_legend}</legend>
     151    <legend>{'ws_update_legend'|@translate}</legend>
    161152    <table class="table2">
    162153      <tr class="throw">
    163154        <th>&nbsp;</th>
    164         <th>{lang:ws_KeyName}</th>
    165         <th>{lang:ws_Access}</th>
    166         <th>{lang:ws_End}</th>
    167         <th>{lang:ws_Request}</th>
    168         <th>{lang:ws_Limit}</th>
    169         <th>{lang:ws_Comment}</th>
    170       </tr>
    171       <!-- BEGIN access -->
    172       <tr class="{acc_list.access.CLASS}">
     155        <th>{'ws_KeyName'|@translate}</th>
     156        <th>{'ws_Access'|@translate}</th>
     157        <th>{'ws_End'|@translate}</th>
     158        <th>{'ws_Request'|@translate}</th>
     159        <th>{'ws_Limit'|@translate}</th>
     160        <th>{'ws_Comment'|@translate}</th>
     161      </tr>
     162      {foreach from=$access_list item=access name=access_loop}
     163      <tr class="{if $smarty.foreach.access_loop.index is odd}row1{else}row2{/if}">
    173164        <td>
    174165          <input type="radio" name="selection"
    175             value="{acc_list.access.ID}" id="selection-{acc_list.access.ID}">
    176         </td>
    177         <td><label for="selection-{acc_list.access.ID}">{acc_list.access.NAME}</label></td>
    178         <td>{acc_list.access.TARGET}</td>
    179         <td>{acc_list.access.END}</td>
    180         <td>{acc_list.access.REQUEST}</td>
    181         <td>{acc_list.access.LIMIT}</td>
    182         <td>{acc_list.access.COMMENT}</td>
    183       </tr>
    184       <!-- END user -->
     166            value="{$access.ID}" id="selection-{$access.ID}">
     167        </td>
     168        <td><label for="selection-{$access.ID}">{$access.NAME}</label></td>
     169        <td>{$access.TARGET}</td>
     170        <td>{$access.END}</td>
     171        <td>{$access.REQUEST}</td>
     172        <td>{$access.LIMIT}</td>
     173        <td>{$access.COMMENT}</td>
     174      </tr>
     175      {/foreach}
    185176    </table>
    186177
     
    188179    <tr>   
    189180    <td>
    190     {lang:ws_delete_legend}
     181    {'ws_delete_legend'|@translate}
    191182    </td>
    192183    <td>
     
    194185      value="true">
    195186    <input class="submit" type="submit" name="wsX_submit" style="width: 10em; padding-top: 3px;"
    196       value="{lang:Delete}" {TAG_INPUT_ENABLED}>
     187      value="{'Delete'|@translate}" {$TAG_INPUT_ENABLED}>
    197188    </td>
    198189    </tr>
     
    203194    <td>
    204195    <span class="property">
    205       <label for="upd_end">{lang:Modify End from Now +} </label>
     196      <label for="upd_end">{'Modify End from Now +'|@translate} </label>
    206197    </span>
    207198    <select name="upd_end" id="upd_end"  style="width: 10em"
    208199      onfocus="this.className='focus';"
    209200      onblur="this.className='nofocus';">
    210     <!-- BEGIN upd_end -->
    211       <option value="{acc_list.upd_end.VALUE}" {acc_list.upd_end.SELECTED}>
    212         {acc_list.upd_end.CONTENT}
    213       </option>
    214     <!-- END upd_end -->
     201      {html_options values=$add_ends output=$add_ends}
    215202    </select>
    216203    <input class="submit" type="submit" name="wsu_submit" style="width: 10em; padding-top: 3px;"
    217        value="{lang:Submit}" {TAG_INPUT_ENABLED}>
    218     </td>
    219     <td>
    220     <i><small> ({lang:Web Services availability duration in days})</small></i>
     204       value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
     205    </td>
     206    <td>
     207    <i><small> ({'Web Services availability duration in days'|@translate})</small></i>
    221208    </td>
    222209    </tr>
     
    225212  </fieldset>
    226213</form>
    227 <!-- BEGIN ws_status -->
    228     <h3>{acc_list.ws_status.VALUE}</h3>
    229 <!-- END ws_status -->
    230 <!-- END acc_list -->
     214{/if}
     215
     216{if isset($WS_STATUS)}
     217    <h3>{$WS_STATUS}</h3>
     218{/if}
  • trunk/template/yoga/upgrade.tpl

    • Property svn:eol-style set to LF
    • Property svn:keywords set to Author Date Id Revision
Note: See TracChangeset for help on using the changeset viewer.