source: extensions/Copyrights/admin.tpl @ 11622

Revision 11622, 2.7 KB checked in by J.Commelin, 9 years ago (diff)

Small fixes. Fixed bug in admin page

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>{'Description'|@translate}</td>
22          <td><textarea name='descr' id='descr'>{$CRdescr}</textarea></td>
23        </tr>
24        <tr>
25          <td>{'Visible'|@translate}</td>
26          <td>{if $CRvisible != 0}
27            <input type='checkbox' name='visible' id='visible' value='show' checked='checked' />
28          {else}
29            <input type='checkbox' name='visible' id='visible' value='show' />
30            {/if}</td>
31        </tr>
32        <tr>
33          <td></td>
34          <td><input type='submit' value="{if $edit == 0}{'Create'|@translate}{else}{'Update'|@translate}{/if}" /></td>
35        </tr>
36      </table>
37  </fieldset>
38</form>
39{if $edit == 0}
40<form>
41  <fieldset>
42    <legend>{'Edit copyright'|@translate}</legend>
43    <table>
44      <tr>
45        <th>{'Name'|@translate}</th>
46        <th>{'URL'|@translate}</th>
47        <th>{'Description'|@translate}</th>
48        <th>{'Visible'|@translate}</th>
49        <th>{'Actions'|@translate}</th>
50      </tr>
51    {if not empty($CRs)}
52    {foreach from=$CRs item=CR}
53    {strip}
54      <tr class="{cycle values="row1,row2"}">
55        <td>{$CR.name}</td>
56        <td><a href="{$CR.url}">{$CR.url}</a></td>
57        <td>{$CR.desc}</td>
58        <td>{if $CR.visible != 0}{'Yes'|@translate}
59          {else}{'No'|@translate}{/if}
60        </td>
61        <td>
62          <a href="{$COPYRIGHTS_PATH}-edit&id={$CR.cr_id}">
63            <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/edit_s.png"
64            alt="{'Edit'|@translate}" title="{'Edit'|@translate}" />
65          </a>
66          <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'}');">
67            <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png"
68            id="btn_delete" alt="{'Delete'|@translate}" title="{'Delete copyright'|@translate}" />
69          </a>
70        </td>
71      </tr>
72    {/strip}
73    {/foreach}
74    {/if}
75    </table>
76  </fieldset>
77</form>
78{/if}
Note: See TracBrowser for help on using the repository browser.