From dab1d03d81c538966d03fb9318a4588a9e803b44 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Sat, 24 Mar 2012 11:20:07 -0500 Subject: Allow to run directly from a git checkout (#1037) Signed-off-by: Sol Jerome --- .../Hostbase/hostbase/webtemplates/base.html | 34 ++++ .../Hostbase/hostbase/webtemplates/confirm.html | 117 +++++++++++++ .../Hostbase/hostbase/webtemplates/copy.html | 122 +++++++++++++ .../Server/Hostbase/hostbase/webtemplates/dns.html | 40 +++++ .../Hostbase/hostbase/webtemplates/dnsedit.html | 98 +++++++++++ .../Hostbase/hostbase/webtemplates/edit.html | 191 +++++++++++++++++++++ .../Hostbase/hostbase/webtemplates/errors.html | 31 ++++ .../Hostbase/hostbase/webtemplates/host.html | 80 +++++++++ .../webtemplates/hostbase/host_confirm_delete.html | 89 ++++++++++ .../hostbase/webtemplates/hostbase/log_detail.html | 23 +++ .../Hostbase/hostbase/webtemplates/index.html | 16 ++ .../Hostbase/hostbase/webtemplates/login.html | 37 ++++ .../Hostbase/hostbase/webtemplates/logout.html | 13 ++ .../Hostbase/hostbase/webtemplates/logout.tmpl | 6 + .../Hostbase/hostbase/webtemplates/logviewer.html | 27 +++ .../Hostbase/hostbase/webtemplates/navbar.tmpl | 5 + .../Server/Hostbase/hostbase/webtemplates/new.html | 102 +++++++++++ .../Hostbase/hostbase/webtemplates/remove.html | 89 ++++++++++ .../Hostbase/hostbase/webtemplates/results.html | 45 +++++ .../Hostbase/hostbase/webtemplates/search.html | 57 ++++++ .../Hostbase/hostbase/webtemplates/zoneedit.html | 81 +++++++++ .../Hostbase/hostbase/webtemplates/zonenew.html | 43 +++++ .../Hostbase/hostbase/webtemplates/zones.html | 37 ++++ .../Hostbase/hostbase/webtemplates/zoneview.html | 71 ++++++++ 24 files changed, 1454 insertions(+) create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/base.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/confirm.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/copy.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/dns.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/dnsedit.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/edit.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/errors.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/host.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/hostbase/host_confirm_delete.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/hostbase/log_detail.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/index.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/login.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/logout.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/logout.tmpl create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/logviewer.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/navbar.tmpl create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/new.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/remove.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/results.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/search.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zoneedit.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zonenew.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zones.html create mode 100644 src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zoneview.html (limited to 'src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates') diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/base.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/base.html new file mode 100644 index 000000000..1d7c5565b --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/base.html @@ -0,0 +1,34 @@ + + + + {% block title %}BCFG2 - Hostbase{% endblock %} + + + + {% block extra_header_info %}{% endblock %} + + + + + + +
+
+ {% block pagebanner %}{% endblock %} + {% block content %}{% endblock %} + +
+
+ + diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/confirm.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/confirm.html new file mode 100644 index 000000000..ca8b0cc07 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/confirm.html @@ -0,0 +1,117 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

Confirm Removal

+
+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + +
+Are you sure you want to remove these items? + +{% if interface %} +
    +
  • interface: {{ interface.mac_addr }}
  • +{% endif %} + + +{% if ips %} +
      +{% for ip in ips %} +
    • ip: {{ ip.ip_addr }}
    • +
        +{% for name in names %} +{% ifequal name.0 ip.id %} +
      • name: {{ name.1.name }}
      • +
          +{% endifequal %} +{% for cname in cnames %} +{% ifequal cname.0 name.1.id %} +
        • cname: {{ cname.1.name }}
        • +{% endifequal %} +{% endfor %} +
        +
          +{% for mx in mxs %} +{% ifequal mx.0 name.1.id %} +
        • mx: {{ mx.1.priority }} {{ mx.1.mx }}
        • +{% endifequal %} +{% endfor %} +
        +{% endfor %} +
      +{% endfor %} +
    +{% endif %} + +{% if names and not ips %} +
      +{% for name in names %} +
    • name: {{ name.name }}
    • +
        +{% for cname in cnames %} +{% ifequal cname.0 name.id %} +
      • cname: {{ cname.1.cname }}
      • +{% endifequal %} +{% endfor %} +
      +
        +{% for mx in mxs %} +{% ifequal mx.0 name.id %} +
      • mx: {{ mx.1.priority }} {{ mx.1.mx }}
      • +{% endifequal %} +{% endfor %} +
      +{% endfor %} +
    +{% endif %} + +{% if cnames and not names %} +
      +{% for cname in cnames %} +
    • cname: {{ cname.cname }}
    • +{% endfor %} +
    +{% endif %} + +{% if mxs and not names %} +
      +{% for mx in mxs %} +
    • mx: {{ mx.priority }} {{ mx.mx }}
    • +{% endfor %} +
    +{% endif %} + +{% if interface %} +
+{% endif %} + +{% if zone_id %} +
    +{% ifequal type 'zonemx' %} +
  • mx: {{ zonemx.priority }} {{ zonemx.mx }}
  • +{% endifequal %} + +{% ifequal type 'nameserver' %} +
  • nameserver: {{ nameserver.name }}
  • +{% endifequal %} + +{% ifequal type 'address' %} +
  • address: {{ address.ip_addr }}
  • +{% endifequal %} +
+{% endif %} + + + +
+ +{% endblock %} diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/copy.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/copy.html new file mode 100644 index 000000000..400ef58f2 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/copy.html @@ -0,0 +1,122 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

new host information

+
+
+{% endblock %} + +{% block sidebar %} +search hostbase +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + +
+ + + + + + + + + + + + + + + + + + + + + + {% else %} + + {% endif %} + + + + + + + + + + + + + + + + + + + + + + + + +
hostname
whatami + +
netgroup + +
class +
support +
csi
printq
outbound_smtp + {% if host.outbound_smtp %} +
primary_user (email address)
administrator (email address)
location
expiration_date YYYY-MM-DD

Interface

+ {% for choice in TYPE_CHOICES %} + {{ choice.1 }} + {% endfor %} +
dhcp +
mac_addr
ip_addr

Interface

+ {% for choice in TYPE_CHOICES %} + {{ choice.1 }} + {% endfor %} +
dhcp +
mac_addr
ip_addr
comments
+
+

+

+ +{% endblock %} + diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/dns.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/dns.html new file mode 100644 index 000000000..da179e5a1 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/dns.html @@ -0,0 +1,40 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

dns info for {{ host.hostname }}

+
+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} + +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + +{% for interface in host.interface_set.all %} + {% for ip in interface.ip_set.all %} + + {% endfor %} +{% endfor %} +{% endblock %} + diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/dnsedit.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/dnsedit.html new file mode 100644 index 000000000..b1b71ab67 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/dnsedit.html @@ -0,0 +1,98 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

dns info for {{ host.hostname }}

+
+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} + +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + +
+ + + + + + {% for interface in interfaces %} + + + + + + + {% for ip in info %} + {% ifequal ip.0.interface interface %} + + + {% for name in ip.1 %} + + + {% for cname in cnames %} + {% ifequal name cname.name %} + + + {% endifequal %} + {% endfor %} + + + {% for mx in mxs %} + {% ifequal mx.0 name.id %} + {% for record in mx.1 %} + + + {% endfor %} + {% endifequal %} + {% endfor %} + + + {% endfor %} + + + + + + + + + {% endifequal %} + {% endfor %} + {% endfor %} +

interface type {{ interface.hdwr_type }}
mac_addr {{ interface.mac_addr }}


ip_addr{{ ip.0.ip_addr }}
name(dns) + + remove
cname + remove
cname
mx + + remove
mx +
name +
cname
mx +


+ +

+

+ +{% endblock %} diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/edit.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/edit.html new file mode 100644 index 000000000..961c9d143 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/edit.html @@ -0,0 +1,191 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

{{ host.hostname }}

+
+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} + +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + + + + + +
+
+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+ + {% if host.outbound_smtp %} + + {% else %} + + {% endif %}
+ +
+ +
+ +
+ + YYYY-MM-DD
+ {% for interface in interfaces %} + +
+ + {% if interface.0.dhcp %} + + {% else %} + + {% endif %}
+ + + remove
+ {% for ip in interface.1 %} + + + remove
+ {% endfor %} + + + +
+ +
+
+ Add a New IP Address
+ {% endfor %} + + + + +
+ +
+ + {% if host.dhcp %} + + {% else %} + + {% endif %}
+ +
+ +
+
+Add a New Interface
+ + + + +
+edit detailed DNS information for this host +
+this host is +
+last update on {{ host.last }}
+ + + + +{% endblock %} diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/errors.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/errors.html new file mode 100644 index 000000000..e5429b86c --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/errors.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

Search Results

+
+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + +{% if failures %} +There were errors in the following fields

+{% for failure in failures %} + +{{ failure }}
+{% comment %} +{{ failure.1|join:", " }} +{% endcomment %} + +{% endfor %} +{% endif %} +
+Press the back button on your browser and edit those field(s) + +{% endblock %} diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/host.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/host.html new file mode 100644 index 000000000..d6b8873bc --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/host.html @@ -0,0 +1,80 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

{{ host.hostname }}

+
+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} + +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + + + + + + + + + + + + + + + + + + + + + {% if host.outbound_smtp %} + + {% else %} + + {% endif %} + + + + + + + + + {% for interface in host.inserface_set.all %} + + {% ifnotequal interface.0.hdwr_type 'no' %} + + {% endifnotequal %} + {% if interface.0.dhcp %} + + + {% endif %} + {% for ip in interface.1 %} + + + {% endfor %} + {% endfor %} + + + +
hostname {{ host.hostname }}
whatami {{ host.whatami }}
netgroup {{ host.netgroup }}
class {{ host.security_class }}
support {{ host.support }}
csi {{ host.csi }}
printq {{ host.printq }}
outbound_smtp y
n
primary_user {{ host.primary_user }}
administrator {{ host.administrator }}
location {{ host.location }}
expiration_date {{ host.expiration_date }}

Interface

{{ interface.0.hdwr_type }}
mac_addr {{ interface.0.mac_addr }}
ip_addr {{ ip.ip_addr }}
comments + {{ host.comments|linebreaksbr }}
+
+see detailed DNS information for this host +

+this host is {{ host.status }}
+last update on {{ host.last }}
+ +{% endblock %} diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/hostbase/host_confirm_delete.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/hostbase/host_confirm_delete.html new file mode 100644 index 000000000..b5d794b50 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/hostbase/host_confirm_delete.html @@ -0,0 +1,89 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

Are you sure you want to remove {{ object.hostname }}?

+
+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} + +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + + + + + + + + + + + + + + + + + + + + + {% if host.dhcp %} + + {% else %} + + {% endif %} + + {% if host.outbound_smtp %} + + {% else %} + + {% endif %} + + + + + + + + + {% for interface in interfaces %} + + {% ifnotequal interface.0.hdwr_type 'no' %} + + {% endifnotequal %} + + + {% for ip in interface.1 %} + + + {% endfor %} + {% endfor %} + + + +
hostname {{ object.hostname }}
whatami {{ object.whatami }}
netgroup {{ object.netgroup }}
class {{ object.security_class }}
support {{ object.support }}
csi {{ object.csi }}
printq {{ object.printq }}
dhcp y
n
outbound_smtp y
n
primary_user {{ object.primary_user }}
administrator {{ object.administrator }}
location {{ object.location }}
expiration_date {{ object.expiration_date }}

Interface

{{ interface.0.hdwr_type }}
mac_addr {{ interface.0.mac_addr }}
ip_addr {{ ip.ip_addr }}
comments + {{ object.comments|linebreaksbr }}
+
+see detailed DNS information for this host +

+this host is {{ object.status }}
+last update on {{ object.last }}
+ +
+ + +
+ +{% endblock %} + diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/hostbase/log_detail.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/hostbase/log_detail.html new file mode 100644 index 000000000..aa9679cbd --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/hostbase/log_detail.html @@ -0,0 +1,23 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

Change Logs for {{ object.hostname }}

+
+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + +
    +
  • Hostname:{{ object.hostname }}
  • +
  • Date:{{ object.date }}
  • +
  • Log:{{ object.log }}
  • +
+ +{% endblock %} diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/index.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/index.html new file mode 100644 index 000000000..92258b648 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/index.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} +{% block pagebanner %} +
+

Welcome to Hostbase!

+

Hostbase is a web based management tools for Bcfg2 Hosts

+
+
+{% endblock %} +{% block sidebar %} +login to hostbase
+search for hosts
+zone file information +{% endblock %} +{% block content %} +{% endblock %} + diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/login.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/login.html new file mode 100644 index 000000000..ec24a0fc0 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/login.html @@ -0,0 +1,37 @@ +{% extends "base.html" %} +{% block pagebanner %} +
+

Login to Hostbase!

+

You must login to manage hosts

+
+
+{% endblock %} +{% block sidebar %} +search for hosts
+add a new host
+zone file information +{% endblock %} +{% block content %} + {% if form.has_errors %} + {{ form.username.errors|join:", " }} +

Login Failed.

+ {% endif %} + {% if user.is_authenticated %} +

Welcome, {{ user.username }}. Thanks for logging in.

+ {% else %} +

Welcome, user. Please log in.

+
+ +
+ +
+ + {% if next %} + + {% else %} + + {% endif %} + +
+ {% endif %} +{% endblock %} diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/logout.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/logout.html new file mode 100644 index 000000000..994f631a8 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/logout.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} +{% block pagebanner %} +
+

You are logged out of Hostbase!

+
+
+{% endblock %} +{% block sidebar %} +Login to Hostbase +{% endblock %} +{% block content %} +{% endblock %} + diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/logout.tmpl b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/logout.tmpl new file mode 100644 index 000000000..e71e90e76 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/logout.tmpl @@ -0,0 +1,6 @@ +

+{% if logged_in %} +logout +{% else %} +login +{% endif %} diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/logviewer.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/logviewer.html new file mode 100644 index 000000000..806ccd63d --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/logviewer.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} + +{% block pagebanner %} +

+

Change Logs for {{ hostname }}

+
+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + +{% if host.get_logs %} + +{% else %} +There are no logs for this host
+{% endif %} + +{% endblock %} diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/navbar.tmpl b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/navbar.tmpl new file mode 100644 index 000000000..877d427d0 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/navbar.tmpl @@ -0,0 +1,5 @@ +
host search
+add a new host
+zone file information
+add a zone
+ diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/new.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/new.html new file mode 100644 index 000000000..2dcd6271f --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/new.html @@ -0,0 +1,102 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

new host information

+
+
+{% endblock %} + +{% block sidebar %} +search hostbase +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hostname
whatami + +
netgroup + +
class +
support +
csi
printq
outbound_smtp +
primary_user (email address)
administrator (email address)
location
expiration_date YYYY-MM-DD

Interface

+ {% for choice in TYPE_CHOICES %} + {{ choice.1 }} + {% endfor %} +
dhcp +
mac_addr
ip_addr

Interface

+ {% for choice in TYPE_CHOICES %} + {{ choice.1 }} + {% endfor %} +
dhcp +
mac_addr
ip_addr
comments
+
+

+

+ +{% endblock %} + diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/remove.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/remove.html new file mode 100644 index 000000000..4329200dd --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/remove.html @@ -0,0 +1,89 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

Are you sure you want to remove {{ host.hostname }}?

+
+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} + +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + + + + + + + + + + + + + + + + + + + + + {% if host.dhcp %} + + {% else %} + + {% endif %} + + {% if host.outbound_smtp %} + + {% else %} + + {% endif %} + + + + + + + + + {% for interface in interfaces %} + + {% ifnotequal interface.0.hdwr_type 'no' %} + + {% endifnotequal %} + + + {% for ip in interface.1 %} + + + {% endfor %} + {% endfor %} + + + +
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.0.hdwr_type }}
mac_addr {{ interface.0.mac_addr }}
ip_addr {{ ip.ip_addr }}
comments + {{ host.comments|linebreaksbr }}
+
+see detailed DNS information for this host +

+this host is {{ host.status }}
+last update on {{ host.last }}
+ +
+ + +
+ +{% endblock %} + diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/results.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/results.html new file mode 100644 index 000000000..45b22058d --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/results.html @@ -0,0 +1,45 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

Search Results

+
+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + +{% if hosts %} + + + + + + + + + + + + {% for host in hosts %} + + + + + + + + + {% endfor %} +
hostname status
{{ host.0 }} {{ host.2 }} view edit copy logs
+{% else %} +No hosts matched your query
+Click the back button on your browser to edit your search +{% endif %} + +{% endblock %} diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/search.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/search.html new file mode 100644 index 000000000..409d418fe --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/search.html @@ -0,0 +1,57 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

Welcome to Hostbase!

+

search for hosts using one or more of the fields below +

+
+{% endblock %} + +{% block sidebar %} +add a new host
+zone file information
+{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} +{% comment %} + ...or go to this + page to enter hostinfo-like queries

+{% endcomment %} + +
+
+
+
+
+
+
+
+ + {% for choice in yesno %} + {{ choice.1 }} + {% endfor %}
+
+
+
+
+
+ {% for choice in TYPE_CHOICES %} + {{ choice.1 }} + {% endfor %}
+ + {% for choice in yesno %} + {{ choice.1 }} + {% endfor %}
+
+
+ + {% for choice in DNS_CHOICES %} + {{ choice.1 }} + {% endfor %}
+
+

+ +

+{% endblock %} diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zoneedit.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zoneedit.html new file mode 100644 index 000000000..ee355ee87 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zoneedit.html @@ -0,0 +1,81 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

Zones

+

Edit information for {{ zone }} +

+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} + +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + + + + + +
+
+ {{ form.zone }}
+ {{ form.admin }}
+ {{ form.primary_master }}
+ {{ form.expire }}
+ {{ form.retry }}
+ {{ form.refresh }}
+ {{ form.ttl }}
+{% for ns in nsforms %} + {{ ns.name }}
+{% endfor %} + +
+ {{ nsadd.name }}
+ {{ nsadd.name }}
+
+Add NS records
+{% for mx in mxforms %} + {{ mx.priority }} {{ mx.mx }}
+{% endfor %} +
+ {{ mxadd.priority }} {{ mxadd.mx }}
+ {{ mxadd.priority }} {{ mxadd.mx }}
+
+Add MX records
+{% for a in aforms %} + {{ a.ip_addr }}
+{% endfor %} +
+ {{ addadd.ip_addr }}
+ {{ addadd.ip_addr }}
+
+Add A records
+ {{ form.aux }}
+

+

+ +{% endblock %} diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zonenew.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zonenew.html new file mode 100644 index 000000000..b59fa9e3c --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zonenew.html @@ -0,0 +1,43 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

Zones

+

Enter information for a new zone to be generated by Hostbase +

+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} +
+
+ {{ form.as_p}} + +

+

+
+{% endblock %} + diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zones.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zones.html new file mode 100644 index 000000000..c773e7922 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zones.html @@ -0,0 +1,37 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

Zones

+

Hostbase generates DNS zone files for the following zones. +

+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} +{% if zone_list %} + + + + + + + + + {% for zone in zone_list|dictsort:"zone" %} + + + + + {% endfor %} +
zone
{{ zone.zone }} view edit
+{% else %} +There is no zone data currently in the database
+{% endif %} +{% endblock %} + diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zoneview.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zoneview.html new file mode 100644 index 000000000..fa12e3ec5 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/zoneview.html @@ -0,0 +1,71 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

Zones

+

Hostbase generates DNS zone files for the following zones. +

+
+{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} + +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + + + + + + + + + + + + + + + + + + + + + + + + + + {% if addresses %} + + + {% endif %} + + + + +
zone {{ zone.zone }}
serial {{ zone.serial }}
admin {{ zone.admin }}
primary_master {{ zone.primary_master }}
expire {{ zone.expire }}
retry {{ zone.retry }}
refresh {{ zone.refresh }}
ttl {{ zone.ttl }}
nameservers + {% for nameserver in zone.nameservers.all %} + {{ nameserver.name }}
+ {% endfor %} +
mxs + {% for mx in zone.mxs.all %} + {{ mx.priority }} {{ mx.mx }}
+ {% endfor %} +
A records + {% for address in sof.addresses.all %} + {{ address.ip_addr }}
+ {% endfor %} +
aux + {{ zone.aux|linebreaksbr }} +
+

+{% endblock %} + -- cgit v1.2.3-1-g7c22