Code

Updated opsi
[gosa.git] / gosa-plugins / opsi / admin / opsi / properties.tpl
index 9ab2ceb620a7f26f9079ad46b11d53c3053518d2..79d12c6425d4bae0e6fbedc0a40e914dbca70c96 100644 (file)
@@ -1,9 +1,9 @@
-<h2><img src='plugins/opsi/images/product.png' class='center' alt=''>&nbsp;{t}Opsi product properties{/t}</h2>
+<h2>{t}Opsi product properties{/t}</h2>
 
 
 {if $cfg_count == 0}
 <br>
-<b>{t}This product has no options.{/t}</b>
+<b>{t}This OPSI product has no options.{/t}</b>
 <br>
 <br>
 
 {foreach from=$cfg item=item key=key}
        <tr>
                <td>{$key}</td>
-               <td><input type='input' name='value_{$key}' value="{$item}"></td>
+               <td>
+                       {if $item.VALUE_CNT}
+                               <select name="value_{$key}" style='width:180px;'>
+                               {foreach from=$item.VALUE key=k item=i}
+                                       <option {if $item.DEFAULT == $i} selected {/if} value="{$i}">{$i}</option>
+                               {/foreach}
+                               </select>
+                       {else}
+                               <input type='input' name='value_{$key}' value="{$item.DEFAULT}" style='width:280px;'>
+                       {/if}
+
+               </td>
        </tr>
 {/foreach}
 </table>