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

{% block pagebanner %}
  <div class="header">
      <h2>Welcome to Hostbase!</h2>
      <p>search for hosts using one or more of the fields below
  </div>
  <br/>
{% endblock %}

{% block sidebar %}
<a href="/hostbase/new" class="sidebar">add a new host</a><br>
<a href="/hostbase/zones" class="sidebar">zone file information</a><br>
{% include "logout" %}
{% endblock %}

{% block content %}
<!-- ...or go to <a href="hostinfo">this</a>
 page to enter hostinfo-like queries<br><br> -->
<form name="input" action="?sub=true" method="post">
<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> <input name="whatami" type="text" ></td></tr>
   <td> </td></tr>
   <tr> <td> <b>netgroup</b></td>
   <td> <input name="netgroup" type="text" ></td></tr>
   <tr> <td> <b>class</b></td>
   <td> <input name="security_class" type="text" ></td></tr>
   <tr> <td> <b>support</b></td>
   <td> <input name="support" type="text" ></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>dhcp</b></td>
   <td>
   {% for choice in yesno %}
   <input type="radio" name="dhcp" value="{{ choice.0 }}" >{{ choice.1 }}
   {% endfor %}
   </td></tr>
   <tr> <td> <b>outbound_smtp</b></td>
   <td>
   {% for choice in yesno %}
   <input type="radio" name="outbound_smtp" value="{{ choice.0 }}" >{{ choice.1 }}
   {% endfor %}
   </td></tr>
   <tr> <td> <b>primary_user</b></td>
   <td> <input name="primary_user" type="text" size="32" ></td></tr>
   <tr> <td> <b>administrator</b></td>
   <td> <input name="administrator" type="text" size="32" ></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" value="{{ choice.0 }}" >{{ choice.1 }}
   {% endfor %}
   </td></tr>
   <tr> <td> <b>mac_addr</b></td>
   <td> <input name="mac_addr" type="text"></td></tr>
   <tr> <td> <b>ip_addr</b></td>
   <td> <input name="ip_addr" type="text"></td></tr>
   <tr> <td> <b>name</b></td>
   <td> <input name="name" type="text"></td></tr>
   <tr> <td><b>dns_view</b></td><td>
   {% for choice in DNS_CHOICES %}
   <input type="radio" name="dns_view" value="{{ choice.0 }}" >{{ choice.1 }}
   {% endfor %}
   </td></tr>
   <tr> <td> <b>cname</b></td>
   <td> <input name="cname" type="text"></td></tr>
   <tr> <td> <b>mx</b></td>
   <td> <input name="mx" type="text"></td></tr>
</table>
<p>
<input type="submit" value="Search">
</form>
{% endblock %}