diff --git a/gosa-plugins/opsi/admin/opsi/properties.tpl b/gosa-plugins/opsi/admin/opsi/properties.tpl
index 4c7a8e5bacf2a2cc65e17043dea1d7d80aab9b73..3c66e0bd80a90917b97c07a46c73685acca3e75a 100644 (file)
-<h2>Opsi product properties</h2>
+<h3>{t}OPSI product properties{/t}</h3>
+
+
+{if $cfg_count == 0}
+<br>
+<b>{t}This OPSI product has no options.{/t}</b>
+<br>
+<br>
+
+{else}
<table>
{foreach from=$cfg item=item key=key}
<tr>
<td>{$key}</td>
- <td><input type='input' name='value_{$key}' value="{$item}"></td>
+ <td>
+{render acl=$ACL}
+ {if isset($item.VALUE_CNT)}
+ <select name="value_{$key}" style='width:180px;'>
+ {foreach from=$item.VALUE key=k item=i}
+ <option {if $item.CURRENT == $i} selected {/if} value="{$i}">{$i}</option>
+ {/foreach}
+ </select>
+ {else}
+ <input type='input' name='value_{$key}' value="{$item.CURRENT}" style='width:280px;'>
+ {/if}
+{/render}
+ </td>
</tr>
{/foreach}
</table>
-<p class="seperator"> </p>
+
+{/if}
+<hr>
<div style='width:100%; text-align: right; padding:3px;'>
<input type='submit' name='save_properties' value='{msgPool type='saveButton'}'>