diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2012-03-24 11:20:07 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2012-03-24 11:20:07 -0500 |
commit | dab1d03d81c538966d03fb9318a4588a9e803b44 (patch) | |
tree | f51e27fa55887e9fb961766805fe43f0da56c5b9 /src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/confirm.html | |
parent | 5cd6238df496a3cea178e4596ecd87967cce1ce6 (diff) | |
download | bcfg2-dab1d03d81c538966d03fb9318a4588a9e803b44.tar.gz bcfg2-dab1d03d81c538966d03fb9318a4588a9e803b44.tar.bz2 bcfg2-dab1d03d81c538966d03fb9318a4588a9e803b44.zip |
Allow to run directly from a git checkout (#1037)
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/confirm.html')
-rw-r--r-- | src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/confirm.html | 117 |
1 files changed, 117 insertions, 0 deletions
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 %} + <div class="header"> + <h2>Confirm Removal</h2> + </div> + <br/> +{% endblock %} + +{% block sidebar %} +{% include "navbar.tmpl" %} +{% include "logout.tmpl" %} +{% endblock %} + +{% block content %} + +<form name="input" action="confirm.html?sub=true" method="post"> +Are you sure you want to remove these items? + +{% if interface %} +<ul> +<li> interface: {{ interface.mac_addr }} </li> +{% endif %} + + +{% if ips %} +<ul> +{% for ip in ips %} +<li> ip: {{ ip.ip_addr }} </li> +<ul> +{% for name in names %} +{% ifequal name.0 ip.id %} +<li> name: {{ name.1.name }} </li> +<ul> +{% endifequal %} +{% for cname in cnames %} +{% ifequal cname.0 name.1.id %} +<li> cname: {{ cname.1.name }} </li> +{% endifequal %} +{% endfor %} +</ul> +<ul> +{% for mx in mxs %} +{% ifequal mx.0 name.1.id %} +<li> mx: {{ mx.1.priority }} {{ mx.1.mx }} </li> +{% endifequal %} +{% endfor %} +</ul> +{% endfor %} +</ul> +{% endfor %} +</ul> +{% endif %} + +{% if names and not ips %} +<ul> +{% for name in names %} +<li> name: {{ name.name }} </li> +<ul> +{% for cname in cnames %} +{% ifequal cname.0 name.id %} +<li> cname: {{ cname.1.cname }} </li> +{% endifequal %} +{% endfor %} +</ul> +<ul> +{% for mx in mxs %} +{% ifequal mx.0 name.id %} +<li> mx: {{ mx.1.priority }} {{ mx.1.mx }} </li> +{% endifequal %} +{% endfor %} +</ul> +{% endfor %} +</ul> +{% endif %} + +{% if cnames and not names %} +<ul> +{% for cname in cnames %} +<li> cname: {{ cname.cname }} </li> +{% endfor %} +</ul> +{% endif %} + +{% if mxs and not names %} +<ul> +{% for mx in mxs %} +<li> mx: {{ mx.priority }} {{ mx.mx }} </li> +{% endfor %} +</ul> +{% endif %} + +{% if interface %} +</ul> +{% endif %} + +{% if zone_id %} +<ul> +{% ifequal type 'zonemx' %} +<li> mx: {{ zonemx.priority }} {{ zonemx.mx }} </li> +{% endifequal %} + +{% ifequal type 'nameserver' %} +<li> nameserver: {{ nameserver.name }} </li> +{% endifequal %} + +{% ifequal type 'address' %} +<li> address: {{ address.ip_addr }} </li> +{% endifequal %} +</ul> +{% endif %} + +<input type="submit" value="confirm"> +<input type="reset" value="cancel" onclick="history.back()"> +</form> + +{% endblock %} |