aboutsummaryrefslogtreecommitdiffstats
path: root/root/html/includes/host_information.tt
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mageia.org>2010-10-02 13:31:35 +0000
committerOlivier Thauvin <nanardon@mageia.org>2010-10-02 13:31:35 +0000
commita9ade04230fc99e5d12e7bd1af1e2dd31907d15a (patch)
tree32f25d1699e483eb219400e44e2e96d782feb7ea /root/html/includes/host_information.tt
parent6f42c4ffb976cdffa257a09e4dcb33119750abfc (diff)
downloadmgamirrors-a9ade04230fc99e5d12e7bd1af1e2dd31907d15a.tar
mgamirrors-a9ade04230fc99e5d12e7bd1af1e2dd31907d15a.tar.gz
mgamirrors-a9ade04230fc99e5d12e7bd1af1e2dd31907d15a.tar.bz2
mgamirrors-a9ade04230fc99e5d12e7bd1af1e2dd31907d15a.tar.xz
mgamirrors-a9ade04230fc99e5d12e7bd1af1e2dd31907d15a.zip
- handle distributions, protocol andothers things
Diffstat (limited to 'root/html/includes/host_information.tt')
-rw-r--r--root/html/includes/host_information.tt50
1 files changed, 50 insertions, 0 deletions
diff --git a/root/html/includes/host_information.tt b/root/html/includes/host_information.tt
new file mode 100644
index 0000000..c0cb7cb
--- /dev/null
+++ b/root/html/includes/host_information.tt
@@ -0,0 +1,50 @@
+<!-- $Id$ -->
+<form action="[% action || c.uri_for() %]" method="POST">
+<input type="hidden" name="hostinfo" value="1">
+<table border=0>
+<tr><th>Country</th>
+<td>
+<select name="country">
+<option value=""></option>
+[% FOREACH country = c.model('Mirrors').country_list %]
+<option value="[% country.code %]" [% "selected=select" IF country.code == host.country %]>[% country.name | html %]</option>
+[% END %]
+</select>
+</td>
+</tr>
+
+<tr><th>City</th>
+<td>
+<input type="text" name="city" value="[% host.city | html %]">
+</td>
+</tr>
+
+[% FOREACH mirror = c.model('Mirrors').find_mirrors %]
+[% IF loop.first %]
+<tr><th>Synchronized from</th>
+<td>
+<select name="syncfrom">
+<option value="">Unknown</option>
+[% END %]
+[% IF mirror.public %]
+<option value="[% mirror.hostname | html %]" [% "selected=select" IF host.syncfrom == mirror.hostname %]>[% mirror.hostname | html %]</option>
+[% END %]
+[% IF loop.last %]
+</select>
+</td>
+</tr>
+[% END %]
+[% END %]
+<tr><th>Approximated bandwidth</th>
+<td>
+<select name="bandwidth">
+<option value=""></option>
+[% FOREACH bd = c.model('Mirrors').bandwidth_list %]
+<option value="[% bd.value %]" [% "selected=select" IF host.bandwidth == bd.value %]>[% bd.name | html %]</option>
+[% END %]
+</select>
+</td>
+</tr>
+</table>
+<input type="submit">
+</form>