More work in progress on remote work plugin.
[timetracker.git] / WEB-INF / templates / cf_dropdown_options.tpl
index 32d1aab..b920d73 100644 (file)
@@ -2,40 +2,38 @@
   function chLocation(newLocation) { document.location = newLocation; }
 </script>
 
-{$forms.dropdownOptionsForm.open}
 <table cellspacing="0" cellpadding="7" border="0" width="720">
   <tr>
     <td valign="top">
-      {if $user->canManageTeam()}
+{if $user->can('manage_custom_fields')}
       <table cellspacing="1" cellpadding="3" border="0" width="100%">
         <tr>
-          <td width="70%" class="tableHeader">{$i18n.label.thing_name}</td>
-          <td class="tableHeader">{$i18n.label.edit}</td>
-          <td class="tableHeader">{$i18n.label.delete}</td>
+          <td width="80%" class="tableHeader">{$i18n.label.thing_name}</td>
+          <td></td>
+          <td></td>
         </tr>
-        {if $options}
-          {foreach $options as $key=>$val}
-        <tr bgcolor="{cycle values="#f5f5f5,#dedee5"}">
-          <td>{$val|escape:'html'}</td>
-          <td><a href="cf_dropdown_option_edit.php?id={$key}">{$i18n.label.edit}</a></td>
-          <td><a href="cf_dropdown_option_delete.php?id={$key}">{$i18n.label.delete}</a></td>
+  {if $options}
+    {foreach $options as $key=>$val}
+        <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
+          <td>{$val|escape}</td>
+          <td><a href="cf_dropdown_option_edit.php?id={$key}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
+          <td><a href="cf_dropdown_option_delete.php?id={$key}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
         </tr>
-          {/foreach}
-        {/if}
+    {/foreach}
+  {/if}
       </table>
-      
+
       <table width="100%">
         <tr>
           <td align="center">
             <br>
             <form>
-              <input type="button" onclick="chLocation('cf_dropdown_option_add.php?field_id={$field_id}');" value="{$i18n.button.add_option}">
+              <input type="button" onclick="chLocation('cf_dropdown_option_add.php?field_id={$field_id}');" value="{$i18n.button.add}">
             </form>
           </td>
         </tr>
       </table>
-      {/if}
+{/if}
     </td>
   </tr>
 </table>
-{$forms.dropdownOptionsForm.close}
\ No newline at end of file