summaryrefslogtreecommitdiffstats
path: root/webui_templates/system_netboot.tmpl
blob: 717e27bc40218f28714d4ffa462c62a86739d743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#extends cobbler.webui.master

#block body

<script language="Javascript">
function submit_netboot(value)
{
    document.getElementById("netboot").value=value;
    document.myform.submit();
}
</script>

<form name="myform" method="post" action="$base_url?mode=system_netboot">
    <input type="hidden" name="targetlist" id="targetlist" value="$targetlist"/>
    <input type="hidden" name="netboot" id="netboot" value="0"/>

    <table class="sortable">
    <thead>
        <caption>Change netboot of the following systems</caption>
        <tr>
            <th class="text">Name</th>
            <th class="text">Current Netboot</th>
        </tr>
    </thead>
    <tbody>
        #set $evenodd = 1
        #for $system in $systems
        #if $evenodd % 2 == 0
            #set $tr_class = "roweven"
        #else
            #set $tr_class = "rowodd"
        #end if
        #set $evenodd += 1

        <tr class="$tr_class">
            <td>
                ${system.name}
            </td>

            <td>
                #if str($system.netboot_enabled) != "False"
                    Yes
                #else
                    No
    	        #end if
            </td>

        </tr>
        #end for
    </tbody>
    </table>

    </p>

    <input type="button" name="pxeenable" onclick="javascript:submit_netboot(1)" value="Enable Netboot"/>
    <input type="button" name="pxedisable" onclick="javascript:submit_netboot(0)" value="Disable Netboot"/>
    <input type="button" name="cancel" onclick="javascript:history.go(-1)" value="Cancel"/>
</form>
#end block body