source: extensions/Copyrights/admin.tpl @ 10936

Last change on this file since 10936 was 10874, checked in by J.Commelin, 13 years ago

First commit to repository

File size: 2.4 KB
Line 
1<div class = "titlePage">
2  <h2>{'Copyrights'|@translate}</h2>
3</div>
4
5<form action='{$COPYRIGHTS_PATH}-{if $edit == 0}create{else}update{/if}'
6      method='POST'>
7  <fieldset>
8    <legend>{if $edit == 0}{'Create copyright'|@translate}
9            {else}{'Update copyright'|@translate}{/if}</legend>
10      {if $edit != 0}<input type='hidden' name='id' id='id' value='{$CRid}' />{/if}
11      <table>
12        <tr>
13          <td>{'Name'|@translate}</td>
14          <td><input type='text' name='name' id='name' value='{$CRname}' /></td>
15        </tr>
16        <tr>
17          <td>{'URL'|@translate}</td>
18          <td><input type='text' name='url'  id='url'  value='{$CRurl}' /></td>
19        </tr>
20        <tr>
21          <td>{'Visible'|@translate}</td>
22          <td>{if $CRvisible != 0}
23            <input type='checkbox' name='visible' id='visible' value='show' checked='checked' />
24          {else}
25            <input type='checkbox' name='visible' id='visible' value='show' />
26            {/if}</td>
27        </tr>
28        <tr>
29          <td></td>
30          <td><input type='submit' value="{if $edit == 0}{'Create'|@translate}{else}{'Update'|@translate}{/if}" /></td>
31        </tr>
32      </table>
33  </fieldset>
34</form>
35{if $edit == 0}
36<form>
37  <fieldset>
38    <legend>{'Edit copyright'|@translate}</legend>
39    <table>
40      <tr>
41        <th>{'Name'|@translate}</th>
42        <th>{'URL'|@translate}</th>
43        <th>{'Visible'|@translate}</th>
44        <th>{'Actions'|@translate}</th>
45      </tr>
46    {if not empty($CRs)}
47    {foreach from=$CRs item=CR}
48    {strip}
49      <tr class="{cycle values="row1,row2"}">
50        <td>{$CR.name}</td>
51        <td><a href="{$CR.url}">{$CR.url}</a></td>
52        <td>{if $CR.visible != 0}{'Yes'|@translate}
53          {else}{'No'|@translate}{/if}
54        </td>
55        <td>
56          <a href="{$COPYRIGHTS_PATH}-edit&id={$CR.cr_id}">
57            <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/edit_s.png"
58            alt="{'Edit'|@translate}" title="{'Edit'|@translate}" />
59          </a>
60          <a href="{$COPYRIGHTS_PATH}-delete&id={$CR.cr_id}" onclick="return confirm(document.getElementById('btn_delete').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');">
61            <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png"
62            id="btn_delete" alt="{'Delete'|@translate}" title="{'Delete copyright'|@translate}" />
63          </a>
64        </td>
65      </tr>
66    {/strip}
67    {/foreach}
68    {/if}
69    </table>
70  </fieldset>
71</form>
72{/if}
Note: See TracBrowser for help on using the repository browser.