Code

Some minor changes
[gosa.git] / gosa-core / plugins / admin / sudo / options.tpl
2 <select name='option'>
3 {foreach from=$options item=item key=key}
4  <option value='{$key}'>{$item.NAME} ({$map[$item.TYPE]})</option>
5 {/foreach}
6 </select>
9 <table>
10 {foreach from=$sudoOption item=item key=key}
11  <tr>
12   <td>{$key}</td>
13   <td style="width:20px;">
14    {if $item.NEGATE}
15     <img src='images/negate.png' alt="!">
16    {/if}
17   </td>
18   <td>
20   {if $options[$item.NAME].TYPE == "STRING"}
21    <input type='text' name='option_value__{$key}' value="{$item.VALUE.0}" style='width:280px;'> 
22   {elseif $options[$item.NAME].TYPE == "INTEGER"}
23    <input type='text' name='option_value__{$key}' value="{$item.VALUE.0}" style='width:280px;'>
24   {elseif $options[$item.NAME].TYPE == "BOOLEAN"}
25    <input type='checkbox' value="1" name='option_value__{$key}'>
26   {elseif $options[$item.NAME].TYPE == "BOOL_INTEGER"}
27    <select name="option_selection__{$key}">
28     <option {if $item.VALUE == "FALSE"} selected {/if}value="FALSE">FALSE</option>
29     <option {if $item.VALUE == "TRUE"} selected {/if}value="TRUE">TRUE</option>
30     <option {if $item.VALUE != "TRUE" && $item.VALUE != "FALSE"} selected {/if}value="STRING">STRING</option>
31     <input type='text' value="{$item.VALUE.0}" style='width:280px;' name='option_value__{$key}'>
32    </select> 
33   {elseif $options[$item.NAME].TYPE == "STRING_BOOL"}
34    <select name="option_selection__{$key}">
35     <option {if $item.VALUE == "FALSE"} selected {/if}value="FALSE">FALSE</option>
36     <option {if $item.VALUE == "TRUE"} selected {/if}value="TRUE">TRUE</option>
37     <option {if $item.VALUE != "TRUE" && $item.VALUE != "FALSE"} selected {/if}value="STRING">STRING</option>
38     <input type='text' value="{$item.VALUE.0}" style='width:280px;' name='option_value__{$key}'>
39    </select> 
40   {else}
41    {$options[$item.NAME].TYPE} 
42   {/if}
43   </td>
44  </tr>
45 {/foreach}
46 </table>