source: branches/2.0/admin/template/goto/site_manager.tpl @ 4531

Last change on this file since 4531 was 4531, checked in by plg, 14 years ago

bug 1328: implements check_pwg_token at site management level.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1{* $Id: site_manager.tpl 4531 2009-12-19 20:49:03Z plg $ *}
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  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}" />
21  <p>
22    {'remote_site_local_create'|@translate}:
23    <input type="hidden" name="no_check" value="1"/>
24    <input type="hidden" name="galleries_url" value="{$local_listing.URL}" />
25    <input type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED} />
26  </p>
27</form>
28{/if}
29{if isset($local_listing.U_SYNCHRONIZE)}
30&nbsp;<a href="{$local_listing.U_SYNCHRONIZE}" title="{'remote_site_local_update'|@translate}">{'site_synchronize'|@translate}</a>
31<br/><br/>
32{/if}
33{/if}
34
35{if not empty($sites)}
36<table class="table2">
37        <tr class="throw">
38                <td>{'site_local'|@translate} / {'site_remote'|@translate}</td>
39                <td>{'Actions'|@translate}</td>
40        </tr>
41  {foreach from=$sites item=site name=site}
42  <tr style="text-align:left" class="{if $smarty.foreach.site.index is odd}row1{else}row2{/if}"><td>
43    <a href="{$site.NAME}">{$site.NAME}</a><br/>({$site.TYPE}, {$site.CATEGORIES} {'Categories'|@translate}, {$pwg->l10n_dec('%d element','%d elements',$site.IMAGES)})
44  </td><td>
45    [<a href="{$site.U_SYNCHRONIZE}" title="{'site_synchronize_hint'|@translate}">{'site_synchronize'|@translate}</a>]
46    {if isset($site.U_DELETE)}
47      [<a href="{$site.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|escape:'javascript'}');"
48                title="{'site_delete_hint'|@translate}" {$TAG_INPUT_ENABLED}>{'site_delete'|@translate}</a>]
49    {/if}
50    {if isset($site.remote)}
51      <br/>
52      [<a href="{$site.remote.U_TEST}" title="{'remote_site_test_hint'|@translate}" {$TAG_INPUT_ENABLED}>{'remote_site_test'|@translate}</a>]
53      [<a href="{$site.remote.U_GENERATE}" title="{'remote_site_generate_hint'|@translate}" {$TAG_INPUT_ENABLED}>{'remote_site_generate'|@translate}</a>]
54      [<a href="{$site.remote.U_CLEAN}" title="{'remote_site_clean_hint'|@translate}" {$TAG_INPUT_ENABLED}>{'remote_site_clean'|@translate}</a>]
55    {/if}
56    {if not empty($site.plugin_links)}
57        <br>
58      {foreach from=$site.plugin_links item=plugin_link}
59        [<a href="{$plugin_link.U_HREF}" title='{$plugin_link.U_HINT}' {$TAG_INPUT_ENABLED}>{$plugin_link.U_CAPTION}</a>]
60      {/foreach}
61    {/if}
62  </td></tr>
63  {/foreach}
64</table>
65{/if}
66
67<form action="{$F_ACTION}" method="post">
68  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}" />
69  <p>
70    <label for="galleries_url" >{'site_create'|@translate}</label>
71    <input type="text" name="galleries_url" id="galleries_url" />
72  </p>
73  <p>
74    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED} />
75  </p>
76</form>
Note: See TracBrowser for help on using the repository browser.