Added entity type as read only field on custom field edit page.
[timetracker.git] / WEB-INF / templates / cf_custom_field_edit.tpl
index 44669a1..62e2a26 100644 (file)
@@ -2,12 +2,16 @@
 <table cellspacing="4" cellpadding="7" border="0">
   <tr>
     <td>
-{if $user->canManageTeam()}
+{if $user->can('manage_custom_fields')}
       <table cellspacing="1" cellpadding="2" border="0">
         <tr>
           <td align="right">{$i18n.label.thing_name} (*):</td>
           <td>{$forms.fieldForm.name.control}</td>
         </tr>
+        <tr>
+          <td align="right">{$i18n.label.entity}:</td>
+          <td>{$forms.fieldForm.entity.control} <a href="https://www.anuko.com/lp/tt_39.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
+        </tr>
         <tr>
           <td align="right">{$i18n.label.type}:</td>
           <td>{$forms.fieldForm.type.control}</td>
@@ -28,4 +32,4 @@
     </td>
   </tr>
 </table>
-{$forms.fieldForm.close}
\ No newline at end of file
+{$forms.fieldForm.close}