From e28345d9a3ad5d417f0e36f1807fbde2d1e3204d Mon Sep 17 00:00:00 2001 From: Ken Raffenetti Date: Wed, 20 Sep 2006 20:35:06 +0000 Subject: web template changes git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2286 ce84e21b-d406-0410-9b95-82705330c041 --- .../Hostbase/hostbase/webtemplates/edit.html | 174 ++++++++++++--------- 1 file changed, 98 insertions(+), 76 deletions(-) (limited to 'src/lib/Server/Hostbase/hostbase/webtemplates/edit.html') diff --git a/src/lib/Server/Hostbase/hostbase/webtemplates/edit.html b/src/lib/Server/Hostbase/hostbase/webtemplates/edit.html index 87cfbd1a3..bee7acfd7 100644 --- a/src/lib/Server/Hostbase/hostbase/webtemplates/edit.html +++ b/src/lib/Server/Hostbase/hostbase/webtemplates/edit.html @@ -1,3 +1,23 @@ +{% extends "base.html" %} + +{% block pagebanner %} +
+

{{ host.hostname }}

+
+
+{% endblock %} + +{% block sidebar %} +new search + +{% endblock %} + +{% block content %} +
- + - + - + - + - #else + {% else %} - #end if + {% endif %} - #else + {% else %} - #end if + {% endif %} - + - + - + - - #for $interface in $interfaces + + {% for interface in interfaces %} - - #for $ip in $ips[$interface.id] + {% for ip in interface.1 %} - - #end for + {% endfor %}
hostname
whatami
netgroup
class
support
csi
printq
dhcp - #if $host.dhcp + {% if host.dhcp %}
outbound_smtp - #if $host.outbound_smtp + {% if host.outbound_smtp %}
primary_user
administrator
location
expiration_date YYYY-MM-DD
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 + {% for choice in interface.0.TYPE_CHOICES %} + {% ifequal interface.0.hdwr_type choice.0 %} + {{ choice.1 }} + {% else %} + {{ choice.1 }} + {% endifequal %} + {% endfor %}
mac_addr - remove + + remove
ip_addr - remove + + remove
-
+
- +
ip_addr
- Add a New IP Address + Add a New IP Address - #end for + {% endfor %} @@ -155,9 +175,9 @@ div#interface{ @@ -174,20 +194,22 @@ div#interface{ - +

Interface

- #for $choice in $type_choices - $choice[1] - #end for + {% for choice in TYPE_CHOICES %} + {{ choice.1 }} + {% endfor %}
mac_addr
comments
-edit detailed DNS information for this host +edit detailed DNS information for this host
this host is
-last update on $host.last
+last update on {{ host.last }}

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