/usr/share/koji-web/scripts/hostedit.chtml is in koji-servers 1.10.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #from kojiweb import util
#include "includes/header.chtml"
<h4>Edit host $host.name</h4>
<form action="hostedit">
$util.authToken($self, form=True)
<table>
<tr>
<th>Name</th>
<td>$host.name</td>
</tr>
<tr>
<th>ID</th>
<td>
$host.id
<input type="hidden" name="hostID" value="$host.id"/>
</td>
</tr>
<tr>
<th>Arches</th>
<td><input type="text" name="arches" value="$host.arches"/></td>
</tr>
<tr>
<th>Capacity</th>
<td><input type="text" name="capacity" value="$host.capacity"/></td>
</tr>
<tr>
<th>Description</th>
<td><textarea name="description" rows="6" cols="50">$util.escapeHTML($host.description)</textarea></td>
</tr>
<tr>
<th>Comment</th>
<td><textarea name="comment" rows="2" cols="50">$util.escapeHTML($host.comment)</textarea></td>
</tr>
<tr>
<th>Enabled?</th>
<td><input type="checkbox" name="enabled" value="yes" #if $host.enabled then 'checked="checked"' else ''#/>
</tr>
<tr>
<th>Channels</th>
<td>
<select name="channels" multiple="multiple">
#for $channel in $allChannels
<option value="$channel.name" #if $channel in $hostChannels then 'selected="selected"' else ''#>$channel.name</option>
#end for
</select>
</td>
<tr>
<td><button type="submit" name="save" value="Save">Save</button></td>
<td><button type="submit" name="cancel" value="Cancel">Cancel</button></td>
</tr>
</table>
</form>
#include "includes/footer.chtml"
|