source: trunk/admin/template/goto/site_manager.tpl @ 2598

Last change on this file since 2598 was 2558, checked in by rvelices, 16 years ago
  • fix undefined smarty foreach loop name
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1{* $Id: site_manager.tpl 2558 2008-09-21 11:02:04Z rvelices $ *}
2<div class="titrePage">
3  <h2>{'Site manager'|@translate}</h2>
4</div>
5
6{if not empty($remote_output)}
7<div class="remoteOutput">
8  <ul>
9    {foreach from=$remote_output item=remote_line}
10    <li class="{$remote_line.CLASS}">{$remote_line.CONTENT}</li>
11    {/foreach}
12  </ul>
13</div>
14{/if}
15
16{if isset($local_listing)}
17{'remote_site_local_found'|@translate} {$local_listing.URL}
18{if isset($local_listing.CREATE)}
19<form action="{$F_ACTION}" method="post">
20  <p>
21    {'remote_site_local_create'|@translate}:
22    <input type="hidden" name="no_check" value="1"/>
23    <input type="hidden" name="galleries_url" value="{$local_listing.URL}" />
24    <input type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED} />
25  </p>
26</form>
27{/if}
28{if isset($local_listing.U_SYNCHRONIZE)}
29&nbsp;<a href="{$local_listing.U_SYNCHRONIZE}" title="{'remote_site_local_update'|@translate}">{'site_synchronize'|@translate}</a>
30<br/><br/>
31{/if}
32{/if}
33
34{if not empty($sites)}
35<table class="table2">
36        <tr class="throw">
37                <td>{'site_local'|@translate} / {'site_remote'|@translate}</td>
38                <td>{'Actions'|@translate}</td>
39        </tr>
40  {foreach from=$sites item=site name=site}
41  <tr style="text-align:left" class="{if $smarty.foreach.site.index is odd}row1{else}row2{/if}"><td>
42    <a href="{$site.NAME}">{$site.NAME}</a><br/>({$site.TYPE}, {$site.CATEGORIES} {'Categories'|@translate}, {$pwg->l10n_dec('%d element','%d elements',$site.IMAGES)})
43  </td><td>
44    [<a href="{$site.U_SYNCHRONIZE}" title="{'site_synchronize_hint'|@translate}">{'site_synchronize'|@translate}</a>]
45    {if isset($site.U_DELETE)}
46      [<a href="{$site.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|escape:'javascript'}');"
47                title="{'site_delete_hint'|@translate}" {$TAG_INPUT_ENABLED}>{'site_delete'|@translate}</a>]
48    {/if}
49    {if isset($site.remote)}
50      <br/>
51      [<a href="{$site.remote.U_TEST}" title="{'remote_site_test_hint'|@translate}" {$TAG_INPUT_ENABLED}>{'remote_site_test'|@translate}</a>]
52      [<a href="{$site.remote.U_GENERATE}" title="{'remote_site_generate_hint'|@translate}" {$TAG_INPUT_ENABLED}>{'remote_site_generate'|@translate}</a>]
53      [<a href="{$site.remote.U_CLEAN}" title="{'remote_site_clean_hint'|@translate}" {$TAG_INPUT_ENABLED}>{'remote_site_clean'|@translate}</a>]
54    {/if}
55    {if not empty($site.plugin_links)}
56        <br>
57      {foreach from=$site.plugin_links item=plugin_link}
58        [<a href="{$plugin_link.U_HREF}" title='{$plugin_link.U_HINT}' {$TAG_INPUT_ENABLED}>{$plugin_link.U_CAPTION}</a>]
59      {/foreach}
60    {/if}
61  </td></tr>
62  {/foreach}
63</table>
64{/if}
65
66<form action="{$F_ACTION}" method="post">
67  <p>
68    <label for="galleries_url" >{'site_create'|@translate}</label>
69    <input type="text" name="galleries_url" id="galleries_url" />
70  </p>
71  <p>
72    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED} />
73  </p>
74</form>
Note: See TracBrowser for help on using the repository browser.