From 510c55e843ea0a1c049b39a9f57ff044190fcbd9 Mon Sep 17 00:00:00 2001 From: Ken Raffenetti Date: Tue, 29 Aug 2006 16:33:36 +0000 Subject: Added all the django application code includes database models, file templates, and web apps git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2135 ce84e21b-d406-0410-9b95-82705330c041 --- .../Hostbase/hostbase/webtemplates/confirm.html | 189 +++++++++++++ .../Server/Hostbase/hostbase/webtemplates/dns.html | 133 +++++++++ .../Hostbase/hostbase/webtemplates/dnsedit.html | 192 +++++++++++++ .../Hostbase/hostbase/webtemplates/edit.html | 314 +++++++++++++++++++++ .../Hostbase/hostbase/webtemplates/errors.html | 126 +++++++++ .../Hostbase/hostbase/webtemplates/host.html | 173 ++++++++++++ .../Server/Hostbase/hostbase/webtemplates/new.html | 191 +++++++++++++ .../Hostbase/hostbase/webtemplates/results.html | 141 +++++++++ .../Hostbase/hostbase/webtemplates/search.html | 183 ++++++++++++ 9 files changed, 1642 insertions(+) create mode 100644 src/lib/Server/Hostbase/hostbase/webtemplates/confirm.html create mode 100644 src/lib/Server/Hostbase/hostbase/webtemplates/dns.html create mode 100644 src/lib/Server/Hostbase/hostbase/webtemplates/dnsedit.html create mode 100644 src/lib/Server/Hostbase/hostbase/webtemplates/edit.html create mode 100644 src/lib/Server/Hostbase/hostbase/webtemplates/errors.html create mode 100644 src/lib/Server/Hostbase/hostbase/webtemplates/host.html create mode 100644 src/lib/Server/Hostbase/hostbase/webtemplates/new.html create mode 100644 src/lib/Server/Hostbase/hostbase/webtemplates/results.html create mode 100644 src/lib/Server/Hostbase/hostbase/webtemplates/search.html (limited to 'src/lib/Server/Hostbase/hostbase/webtemplates') diff --git a/src/lib/Server/Hostbase/hostbase/webtemplates/confirm.html b/src/lib/Server/Hostbase/hostbase/webtemplates/confirm.html new file mode 100644 index 000000000..96ed4ed4f --- /dev/null +++ b/src/lib/Server/Hostbase/hostbase/webtemplates/confirm.html @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Argonne National Laboratory
+ Mathematics + and Computer Science
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
MCS + Home > + +
+ + + +
+
+

Are you sure?

+Are you sure you want to remove these items? + +#if $interface +
    +
  • interface: $interface.__str__
  • +#end if + + +#if $ips +
      +#for $ip in $ips +
    • ip: $ip.__str__
    • +
        +#for $name in $names[$ip.id] +
      • name: $name.__str__
      • +
          +#for $cname in $cnames[$name.id] +
        • cname: $cname.__str__
        • +#end for +
        +
          +#for $mx in $mxs[$name.id] +
        • mx: $mx.priority $mx.__str__
        • +#end for +
        +#end for +
      +#end for +
    +#end if + +#if $names and not $ips +
      +#for $name in $names +
    • name: $name.__str__
    • +
        +#for $cname in $cnames[$name.id] +
      • cname: $cname.__str__
      • +#end for +
      +
        +#for $mx in $mxs[$name.id] +
      • mx: $mx.priority $mx.__str__
      • +#end for +
      +#end for +
    +#end if + +#if $cnames and not $names +
      +#for $cname in $cnames +
    • cname: $cname.__str__
    • +#end for +
    +#end if + +#if $mxs and not $names +
      +#for $mx in $mxs +
    • mx: $mx.priority $mx.__str__
    • +#end for +
    +#end if + +#if $interface +
+#end if + + + +
+
+ + + + + + + + + +

+ + + + + + +
U.S. Department of EnergyThe University of ChicagoOffice of Science - Department of Energy
+ + + +
Privacy & Security Notice | Contact Us
+ + + diff --git a/src/lib/Server/Hostbase/hostbase/webtemplates/dns.html b/src/lib/Server/Hostbase/hostbase/webtemplates/dns.html new file mode 100644 index 000000000..a937fb833 --- /dev/null +++ b/src/lib/Server/Hostbase/hostbase/webtemplates/dns.html @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Argonne National Laboratory
+ Mathematics + and Computer Science
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
MCS + Home > + +
+ + + +
+DNS Information for host "$host.hostname" + + #for $interface in $interfaces + #for $ip in $ips[$interface.id] +
  • ip_addr: $ip.ip_addr
  • + #for $name in $names[$ip.id] +
    • name: $name.name
      • + #for $cname in $cnames[$name.id] +
      • cname: $cname.cname
      • + #end for + #for $mx in $mxs[$name.id] +
      • mx: $mx.priority $mx.mx
      • + #end for +
    + #end for +
+ #end for + #end for +
+ + + + + + + + + +

+ + + + + + +
U.S. Department of EnergyThe University of ChicagoOffice of Science - Department of Energy
+ + + +
Privacy & Security Notice | Contact Us
+ + + diff --git a/src/lib/Server/Hostbase/hostbase/webtemplates/dnsedit.html b/src/lib/Server/Hostbase/hostbase/webtemplates/dnsedit.html new file mode 100644 index 000000000..9065153da --- /dev/null +++ b/src/lib/Server/Hostbase/hostbase/webtemplates/dnsedit.html @@ -0,0 +1,192 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Argonne National Laboratory
+ Mathematics + and Computer Science
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
MCS + Home > + +
+ + + +
+ +#set $cont = 1 + +#if $request.GET.has_key('sub') +ok, submitted +#end if + + +#if $cont +
+ +Edit DNS information below for individual IP addresses. + + + + + #for $interface in $interfaces + + + + + + + #for $ip in $ips[$interface.id] + + + #for $name in $names[$ip.id] + + + #for $cname in $cnames[$name.id] + + + #end for + + + #for $mx in $mxs[$name.id] + + + #end for + + + #end for + + + + + + + + + #end for + #end for +

interface type $interface.hdwr_type
mac_addr $interface.mac_addr


ip_addr$ip.ip_addr
name(dns) + + remove
cname + remove
cname
mx + + remove
mx +
name +
cname
mx +


+ +

+

+#end if +
+ + + + + + + + + +

+ + + + + + +
U.S. Department of EnergyThe University of ChicagoOffice of Science - Department of Energy
+ + + +
Privacy & Security Notice | Contact Us
+ + + diff --git a/src/lib/Server/Hostbase/hostbase/webtemplates/edit.html b/src/lib/Server/Hostbase/hostbase/webtemplates/edit.html new file mode 100644 index 000000000..71ca621a1 --- /dev/null +++ b/src/lib/Server/Hostbase/hostbase/webtemplates/edit.html @@ -0,0 +1,314 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Argonne National Laboratory
+ Mathematics + and Computer Science
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
MCS + Home > + +
+ + + +
+ + + + +#set $cont = 1 + +#if $request.GET.has_key('sub') +ok, submitted +#end if + +#if $cont +
+ + + + + + + + + + + + + + + + + + + + + + #else + + #end if + + + #else + + #end if + + + + + + + + + #for $interface in $interfaces + + + + #for $ip in $ips[$interface.id] + + + #end for + + + +
hostname
whatami
netgroup + +
class +
support +
csi
printq
dhcp + #if $host.dhcp +
outbound_smtp + #if $host.outbound_smtp +
primary_user
administrator
location
expiration_date YYYY-MM-DD

Interface +

+ #for $choice in $interface.TYPE_CHOICES + #if $interface.hdwr_type == $choice[0] + $choice[1] + #else + $choice[1] + #end if + #end for +
mac_addr + remove +
ip_addr + + remove +
+
+ + + + + + +
ip_addr
+
+ Add a New IP Address + + + + + #end for + + + + +
+
+ + + + + + + + + +

Interface

+ #for $choice in $type_choices + $choice[1] + #end for +
mac_addr
ip_addr
+
+Add a New Interface + + + + + + + + + +
comments
+edit detailed DNS information for this host +
+this host is +
+last update on $host.last
+

+

+#end if +
+ + + + + + + + + +

+ + + + + + +
U.S. Department of EnergyThe University of ChicagoOffice of Science - Department of Energy
+ + + +
Privacy & Security Notice | Contact Us
+ + + diff --git a/src/lib/Server/Hostbase/hostbase/webtemplates/errors.html b/src/lib/Server/Hostbase/hostbase/webtemplates/errors.html new file mode 100644 index 000000000..83f5cd014 --- /dev/null +++ b/src/lib/Server/Hostbase/hostbase/webtemplates/errors.html @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Argonne National Laboratory
+ Mathematics + and Computer Science
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
MCS + Home > + +
+ + + +
+#if $failures +There were errors in the following fields

+#for $failure in $failures + +$failure
+ +#end for +#end if +
+Press the back button on your browser and edit those field(s) +
+ + + + + + + + + +

+ + + + + + +
U.S. Department of EnergyThe University of ChicagoOffice of Science - Department of Energy
+ + + +
Privacy & Security Notice | Contact Us
+ + + + diff --git a/src/lib/Server/Hostbase/hostbase/webtemplates/host.html b/src/lib/Server/Hostbase/hostbase/webtemplates/host.html new file mode 100644 index 000000000..a9ec9014b --- /dev/null +++ b/src/lib/Server/Hostbase/hostbase/webtemplates/host.html @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Argonne National Laboratory
+ Mathematics + and Computer Science
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
MCS + Home > + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + #if $host.dhcp + + #else + + #end if + + #if $host.outbound_smtp + + #else + + #end if + + + + + + + + + #for $interface in $interfaces + + #if $interface.hdwr_type != 'no' + + #end if + + + #for $ip in $ips[$interface.id] + + + #end for + #end for + + + +
hostname $host.hostname
whatami $host.whatami
netgroup $host.netgroup
class $host.security_class
support $host.support
csi $host.csi
printq $host.printq
dhcp y
n
outbound_smtp y
n
primary_user $host.primary_user
administrator $host.administrator
location $host.location
expiration_date $host.expiration_date

Interface

$interface.hdwr_type
mac_addr $interface.mac_addr
ip_addr $ip.ip_addr
comments $host.comments
+see detailed DNS information for this host +

+this host is $host.status
+last update on $host.last
+
+ + + + + + + + + +

+ + + + + + +
U.S. Department of EnergyThe University of ChicagoOffice of Science - Department of Energy
+ + + +
Privacy & Security Notice | Contact Us
+ + + diff --git a/src/lib/Server/Hostbase/hostbase/webtemplates/new.html b/src/lib/Server/Hostbase/hostbase/webtemplates/new.html new file mode 100644 index 000000000..bb00e57b0 --- /dev/null +++ b/src/lib/Server/Hostbase/hostbase/webtemplates/new.html @@ -0,0 +1,191 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Argonne National Laboratory
+ Mathematics + and Computer Science
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
MCS + Home > + +
+ + + +
+ Enter new host information + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hostname
whatami
netgroup + +
class +
support +
csi
printq
dhcp +
outbound_smtp +
primary_user
administrator
location
expiration_date YYYY-MM-DD

Interface

+ #for $choice in $TYPE_CHOICES + $choice[1] + #end for +
mac_addr
ip_addr

Interface

+ #for $choice in $TYPE_CHOICES + $choice[1] + #end for +
mac_addr
ip_addr
comments
+
+

+

+
+ + + + + + + + + +

+ + + + + + +
U.S. Department of EnergyThe University of ChicagoOffice of Science - Department of Energy
+ + + +
Privacy & Security Notice | Contact Us
+ + + diff --git a/src/lib/Server/Hostbase/hostbase/webtemplates/results.html b/src/lib/Server/Hostbase/hostbase/webtemplates/results.html new file mode 100644 index 000000000..efae1143f --- /dev/null +++ b/src/lib/Server/Hostbase/hostbase/webtemplates/results.html @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Argonne National Laboratory
+ Mathematics + and Computer Science
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
MCS + Home > + +
+ + + +
+#if $hosts + + + + + + + + + + #for $host in $hosts + + #if $host[2] + + #else + + #end if + + + + #end for +
hostname status
$host[0] active inactive view edit
+#else +No hosts matched your query
+Click the back button on your browser to edit your search +#end if +
+ + + + + + + + + +

+ + + + + + +
U.S. Department of EnergyThe University of ChicagoOffice of Science - Department of Energy
+ + + +
Privacy & Security Notice | Contact Us
+ + + diff --git a/src/lib/Server/Hostbase/hostbase/webtemplates/search.html b/src/lib/Server/Hostbase/hostbase/webtemplates/search.html new file mode 100644 index 000000000..29a684b1a --- /dev/null +++ b/src/lib/Server/Hostbase/hostbase/webtemplates/search.html @@ -0,0 +1,183 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Argonne National Laboratory + Mathematics + and Computer Science
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
MCS + Home > + +
+ + + +
+

Welcome to the hostbase database!

+Find hosts using one or more of the searchable fields below.
+#*...or go to this + page to enter hostinfo-like queries

*# +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hostname
whatami
netgroup
class
support
csi
printq
dhcp + #for $choice in $yesno + $choice[1] + #end for +
outbound_smtp + #for $choice in $yesno + $choice[1] + #end for +
primary_user
administrator
location
expiration_date YYYY-MM-DD

Interface

+ #for $choice in $TYPE_CHOICES + $choice[1] + #end for +
mac_addr
ip_addr
name
dns_view + #for $choice in $DNS_CHOICES + $choice[1] + #end for +
cname
mx
+

+ +

+
+ + + + + + + + + +

+ + + + + + +
U.S. Department of EnergyThe University of ChicagoOffice of Science - Department of Energy
+ + + +
Privacy & Security Notice | Contact Us
+ + -- cgit v1.2.3-1-g7c22