summaryrefslogtreecommitdiffstats
path: root/webui_templates/profile_edit.tmpl
blob: eab13bef6d3a1ea18eceb8c4931d8968ae600808 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#extends cobbler.webui.master

#block body
<form method="post" action="/profile_save">
<fieldset id="cform">
    <legend>Edit a Profile</legend>

<!--
       cobbler profile add -name=string -distro=string [-kickstart=url]
       [-kopts=string] [-ksmeta=string] [-virt-file-size=gigabytes]
       [-virt-ram=megabytes] [-virt-type=string] [-virt-path=string]
-->

    <label for="name">Profile Name</label>
    <input type="text" size="32" style="width: 150px;" name="name" id="name"
        #if $profile
            value="$profile.name"
        #end if
    />
    <br/>

    <label for="distro">Distribution</label>
    <select name="distro" id="distro">
        #for $distro in $distros:
        <option name="$distro.name"
             #if $profile and $profile.distro == $distro
                 selected="true"
             #end if
        >$distro.name
        </option>
        #end for
    </select>
    <br/>

    <!-- should allow freeform input but still show a list of choices? -->
    <!-- probably should implement a combo box eventually -->

    <label for="ksfile">Kickstart File</label>
    <input type="text" size="128" style="width: 150px;" name="kopts" id="kopts"
        #if $profile
            value="$profile.kickstart" 
        #end if
    />
    <br/>

    <label for="kopts">Kernel Options</label>
    <input type="text" size="128" style="width: 150px;" name="kopts" id="kopts"
    />
    <br/>

    <label for="ksmeta">Kickstart Metadata</label>
    <input type="text" size="128" style="width: 150px;" name="ksmeta" id="ksmeta"
        #if $profile
           value="$profile.ks_meta"
        #end if
    />
    <br/>

    <label for="virtfilesize">Virt File Size (GB)</label>
    <input type="text" size="128" style="width: 150px;" name="virtfilesize" id="virtfilesize"
        #if $profile
           value="$profile.virt_file_size"
        #end if
    />
    <br/>

    <label for="virtram">Virt RAM (MB)</label>
    <input type="text" size="128" style="width: 150px;" name="virtram" id="virtram"
        #if $profile
           value="$profile.virt_ram"
        #end if
    />
    <br/>

    <label for="virttype">Virt Type (xenpv, qemu)</label>
    <input type="text" size="128" style="width: 150px;" name="virttype" id="virttype"
        #if $profile
           value="$profile.virt_type"
        #end if
    />
    <br/>

    <label for="virtpath">Virt Path</label>
    <input type="text" size="128" style="width: 150px;" name="virtpath" id="virtpath"
        #if $profile
           value="$profile.virt_path"
        #end if
    />
    <br/>

    <label for="repos">Repo Names</label>
    <input type="text" size="128" style="width: 150px;" name="repos" id="repos"
        #if $profile
           value="$profile.repos"
        #end if
    />
    <br/>

    <label for="dhcptag">DHCP Tag</label>
    <input type="text" size="128" style="width: 150px;" name="dhcptag" id="dhcptag"
        #if $profile
           value="$profile.dhcp_tag" 
        #end if
    />
    <br/>


    <input type="submit" name="submit" value="Save"/>
    <input type="reset" name="reset" value="Reset"/>

</fieldset>
#end block body