Adjusted charts.php for subgroups.
[timetracker.git] / WEB-INF / templates / cf_custom_fields.tpl
1 {$forms.customFieldsForm.open}
2 <table cellspacing="0" cellpadding="7" border="0" width="720">
3   <tr>
4     <td valign="top">
5 {if $user->can('manage_custom_fields')}
6       <table cellspacing="1" cellpadding="3" border="0" width="100%">
7         <tr>
8           <td width="50%" class="tableHeader">{$i18n.label.thing_name}</td>
9           <td class="tableHeader">{$i18n.label.type}</td>
10           <td class="tableHeader">{$i18n.menu.options}</td>
11           <td class="tableHeader">{$i18n.label.edit}</td>
12           <td class="tableHeader">{$i18n.label.delete}</td>
13         </tr>
14   {if $custom_fields}
15     {foreach $custom_fields as $field}
16         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
17           <td>{$field['label']|escape}</td>
18       {if CustomFields::TYPE_TEXT == $field['type']}
19           <td>{$i18n.label.type_text}</td>
20           <td></td>
21       {elseif CustomFields::TYPE_DROPDOWN == $field['type']}
22           <td>{$i18n.label.type_dropdown}</td>
23           <td><a href="cf_dropdown_options.php?field_id={$field['id']}">{$i18n.label.configure}</a></td>
24       {/if}
25           <td><a href="cf_custom_field_edit.php?id={$field['id']}">{$i18n.label.edit}</a></td>
26           <td><a href="cf_custom_field_delete.php?id={$field['id']}">{$i18n.label.delete}</a></td>
27         </tr>
28     {/foreach}
29   {/if}
30       </table>
31
32       <table width="100%">
33         <tr><td align="center"><br>{$forms.customFieldsForm.btn_add.control}</td></tr>
34       </table>
35 {/if}
36     </td>
37   </tr>
38 </table>
39 {$forms.customFieldsForm.close}