Translation files work.
[timetracker.git] / WEB-INF / templates / cf_dropdown_options.tpl
1 <script>
2   function chLocation(newLocation) { document.location = newLocation; }
3 </script>
4
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
6   <tr>
7     <td valign="top">
8 {if $user->can('manage_custom_fields')}
9       <table cellspacing="1" cellpadding="3" border="0" width="100%">
10         <tr>
11           <td width="70%" class="tableHeader">{$i18n.label.thing_name}</td>
12           <td class="tableHeader">{$i18n.label.edit}</td>
13           <td class="tableHeader">{$i18n.label.delete}</td>
14         </tr>
15   {if $options}
16     {foreach $options as $key=>$val}
17         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
18           <td>{$val|escape}</td>
19           <td><a href="cf_dropdown_option_edit.php?id={$key}">{$i18n.label.edit}</a></td>
20           <td><a href="cf_dropdown_option_delete.php?id={$key}">{$i18n.label.delete}</a></td>
21         </tr>
22     {/foreach}
23   {/if}
24       </table>
25
26       <table width="100%">
27         <tr>
28           <td align="center">
29             <br>
30             <form>
31               <input type="button" onclick="chLocation('cf_dropdown_option_add.php?field_id={$field_id}');" value="{$i18n.button.add}">
32             </form>
33           </td>
34         </tr>
35       </table>
36 {/if}
37     </td>
38   </tr>
39 </table>