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