Code

Made faiScript w3c conform
[gosa.git] / gosa-plugins / fai / admin / fai / faiGroupHandle.tpl
1 {if $mode == "remove"}
3 <b>{t}Please select the objects you want to remove:{/t}</b>
4 <br>
5 <br>
6 <table summary="{t}FAI object removal{/t}">
7 {foreach from=$FAI_group item=item key=key}
8         <tr>
9                 <td>
10                         {if $item.freezed}
11                                 {image path="images/lists/locked.png"}
13                         {else}
14                                 <input type='checkbox' name='{$mode}_{$key}'
15                         {if $item.selected} checked {/if}>
16                         {/if}
17                 </td>
18                 <td>
19                         {image path="{$types.$key.IMG}" title="{$types.$key.NAME}"}
20                                 class='center'>
21                 </td>
22                 <td style='width:150px;'>{$types.$key.NAME}</td>
23                 <td style='width:80px;'>{if $item.freezed}<i>({t}Freezed{/t})</i>{/if}</td>
24                 <td><i>({$item.description.0})</i></td>
25         </tr>
26 {/foreach}
27 </table>
29 {elseif $mode == "edit"}
31 <b>{t}Select the object you want to edit:{/t}</b>
32 <br>
33 <br>
34 <table summary="{t}FAI group edit{/t}">
35 {foreach from=$FAI_group item=item key=key}
36         <tr>
37                 <td>
38                 <input type='radio' name='{$mode}_selected' value='{$key}'
39                {if $item.selected} checked {/if}>
40                 </td>
41                 <td>
42                         {image path="{$types.$key.IMG}" title="{$types.$key.NAME}"}
43                                 class='center'>
44                 </td>
45                 <td style='width:150px;'>{$types.$key.NAME}</td>
46                 <td><i>({$item.description.0})</i>
47                 </td>
48         </tr>
49 {/foreach}
50 </table>
52 {elseif $mode == "copy"}
54 <b>{t}Select the object you want to copy:{/t}</b>
55 <br>
56 <br>
57 <table summary="{t}FAI group copy{/t}">
58 {foreach from=$FAI_group item=item key=key}
59         <tr>
60                 <td>
61                         <input type='checkbox' name='{$mode}_{$key}'
62                         {if $item.selected} checked {/if}>
63                 </td>
64                 <td>
65                         {image path="{$types.$key.IMG}" title="{$types.$key.NAME}"}
66                                 class='center'>
67                 </td>
68                 <td style='width:150px;'>{$types.$key.NAME}</td>
69                 <td><i>({$item.description.0})</i>
70                 </td>
71         </tr>
72 {/foreach}
73 </table>
75 {/if}
76 <br>
77 <br>
78 <input type='hidden' value='faiGroupHandle' name='faiGroupHandle'>
79 <p class='seperator'></div>
80 <div style='text-align:right; padding:5px'>
81         <button type='submit' name='faiGroupHandle_apply'>{msgPool type=applyButton}</button>
83         &nbsp;
84         <button type='submit' name='faiGroupHandle_cancel'>{msgPool type=cancelButton}</button>
86 </div>