aboutsummaryrefslogtreecommitdiffstats
path: root/root/html/pages/new/confirm.tt
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mageia.org>2010-10-03 15:36:00 +0000
committerOlivier Thauvin <nanardon@mageia.org>2010-10-03 15:36:00 +0000
commitddcf19029c7b58b2ea236bd14e6c1456949f0fc0 (patch)
tree725f066cac991b43163f1e08a5954b6071634f3d /root/html/pages/new/confirm.tt
parent114b46067622cc0c68d007711cf58f74e25411b8 (diff)
downloadmgamirrors-ddcf19029c7b58b2ea236bd14e6c1456949f0fc0.tar
mgamirrors-ddcf19029c7b58b2ea236bd14e6c1456949f0fc0.tar.gz
mgamirrors-ddcf19029c7b58b2ea236bd14e6c1456949f0fc0.tar.bz2
mgamirrors-ddcf19029c7b58b2ea236bd14e6c1456949f0fc0.tar.xz
mgamirrors-ddcf19029c7b58b2ea236bd14e6c1456949f0fc0.zip
- use google maps for location, improve messages
Diffstat (limited to 'root/html/pages/new/confirm.tt')
-rw-r--r--root/html/pages/new/confirm.tt24
1 files changed, 24 insertions, 0 deletions
diff --git a/root/html/pages/new/confirm.tt b/root/html/pages/new/confirm.tt
new file mode 100644
index 0000000..2dde830
--- /dev/null
+++ b/root/html/pages/new/confirm.tt
@@ -0,0 +1,24 @@
+<div id="foo">
+<h2>Confirmation</h2>
+
+<p>The URL [% c.session.new_uri | html %] has been succefully validated.</p>
+
+<p>Please confirm the addition into the database.</p>
+
+[% IF c.session.hostinfo %]
+<p>This URL refer to new mirror [% new_uri.host %]
+[% IF c.session.hostinfo.country %]
+[% cinfo = c.model('Mirrors').country_info(c.session.hostinfo.country) %]
+located in [% cinfo.name | html %] ([% cinfo.continent | html %])
+[%- END -%].</p>
+[% ELSE %]
+[% END %]
+
+[% IF exists_url %]
+<p>This url will replace the currently invalid url [% exists_url.url | html %].</p>
+[% END %]
+
+[% c.prototype.form_remote_tag({ url => c.uri_for('confirm'), update => 'foo' } ) %]
+<input type="submit" name="confirm" value="Yes, add it">
+</form>
+</div>