Added entity column on cf_custom_fields.php page.
[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 class="tableHeader">{$i18n.label.thing_name}</td>
9           <td class="tableHeader">{$i18n.label.entity}</td>
10           <td class="tableHeader">{$i18n.label.type}</td>
11           <td class="tableHeader">{$i18n.menu.options}</td>
12           <td></td>
13           <td></td>
14         </tr>
15   {if $custom_fields}
16     {foreach $custom_fields as $field}
17         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
18           <td>{$field['label']|escape}</td>
19       {if CustomFields::ENTITY_TIME == $field['entity_type']}
20           <td>{$i18n.entity.time}</td>
21       {elseif CustomFields::ENTITY_USER == $field['entity_type']}
22           <td>{$i18n.entity.user}</td>
23       {else}
24           <td></td>
25       {/if}
26       {if CustomFields::TYPE_TEXT == $field['type']}
27           <td>{$i18n.label.type_text}</td>
28           <td></td>
29       {elseif CustomFields::TYPE_DROPDOWN == $field['type']}
30           <td>{$i18n.label.type_dropdown}</td>
31           <td><a href="cf_dropdown_options.php?field_id={$field['id']}">{$i18n.label.configure}</a></td>
32       {/if}
33           <td><a href="cf_custom_field_edit.php?id={$field['id']}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
34           <td><a href="cf_custom_field_delete.php?id={$field['id']}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
35         </tr>
36     {/foreach}
37   {/if}
38       </table>
39
40       <table width="100%">
41         <tr><td align="center"><br>{$forms.customFieldsForm.btn_add.control}</td></tr>
42       </table>
43 {/if}
44     </td>
45   </tr>
46 </table>
47 {$forms.customFieldsForm.close}