summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/new.html
blob: 2dcd6271fff8fc3b32f35ca4a4832cb4a435a492 (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
{% extends "base.html" %}

{% block pagebanner %}
  <div class="header">
      <h2>new host information</h2>
  </div>
  <br/>
{% endblock %}

{% block sidebar %}
<a href="/hostbase/" class="sidebar">search hostbase</a>
{% include "logout.tmpl" %}
{% endblock %}

{% block content %}

<form name="hostdata" action="?sub=true" method="post">
<input type="hidden" name="host">
<table border="0" width="100%">
   <colgroup>
   <col width="150">
   <col width="*">
   <tr> <td> <b>hostname</b></td>
   <td> <input name="hostname" type="text" ></td></tr>
   <tr> <td> <b>whatami</b></td>
   <td>
   <select name="whatami">
   {% for choice in WHATAMI_CHOICES %}
   <option value="{{ choice.0 }}">{{ choice.1 }}
   {% endfor %}
   </select>
   </td></tr>
   <tr> <td> <b>netgroup</b></td>
   <td>
   <select name="netgroup">
   {% for choice in NETGROUP_CHOICES %}
   <option value="{{ choice.0 }}">{{ choice.1 }}
   {% endfor %}
   </select>
   </td></tr>
   <tr> <td> <b>class</b></td>
   <td>
   <select name="security_class">
   {% for choice in CLASS_CHOICES %}
   <option value="{{ choice.0 }}">{{ choice.1 }}
   {% endfor %}
   </select></td></tr>
   <tr> <td> <b>support</b></td>
   <td>
   <select name="support">
   {% for choice in SUPPORT_CHOICES %}
   <option value="{{ choice.0 }}">{{ choice.1 }}
   {% endfor %}
   </select></td></tr>
   <tr> <td> <b>csi</b></td>
   <td> <input name="csi" type="text" ></td></tr>
   <tr> <td> <b>printq</b></td>
   <td> <input name="printq" type="text" ></td></tr>
   <tr> <td> <b>outbound_smtp</b></td>
   <td>
   <input type="checkbox" name="outbound_smtp"></td></tr>
   <tr> <td> <b>primary_user</b></td>
   <td> <input name="primary_user" type="text" size="32" > (email address)</td></tr>
   <tr> <td> <b>administrator</b></td>
   <td> <input name="administrator" type="text" size="32" > (email address)</td></tr>
   <tr> <td> <b>location</b></td>
   <td> <input name="location" type="text" ></td></tr>
   <tr> <td> <b>expiration_date</b></td>
   <td> <input name="expiration_date" type="text" size="10" >YYYY-MM-DD</td></tr>
   <tr> <td><br><b>Interface</b></td><td><br>
   {% for choice in TYPE_CHOICES %}
   <input type="radio" name="hdwr_type_new" value="{{ choice.0 }}" >{{ choice.1 }}
   {% endfor %}
   </td></tr>
   <tr> <td> <b>dhcp</b></td>
   <td>
   <input type="checkbox" name="dhcp_new"></td></tr>
   <tr> <td> <b>mac_addr</b></td>
   <td> <input name="mac_addr_new" type="text"></td></tr>
   <tr> <td> <b>ip_addr</b></td>
   <td> <input name="ip_addr_new" type="text"></td></tr>
   <tr> <td><br><b>Interface</b></td><td><br>
   {% for choice in TYPE_CHOICES %}
   <input type="radio" name="hdwr_type_new2" value="{{ choice.0 }}" >{{ choice.1 }}
   {% endfor %}
   </td></tr>
   <tr> <td> <b>dhcp</b></td>
   <td>
   <input type="checkbox" name="dhcp_new2"></td></tr>
   <tr> <td> <b>mac_addr</b></td>
   <td> <input name="mac_addr_new2" type="text"></td></tr>
   <tr> <td> <b>ip_addr</b></td>
   <td> <input name="ip_addr_new2" type="text"></td></tr>
   <tr> <td> <b>comments</b></td>
   <td> <textarea rows="10" cols="50" name="comments"></textarea></td></tr>
</table>
<br>
<p><input type="submit" value="Submit">
</form>

{% endblock %}