aboutsummaryrefslogtreecommitdiffstats
path: root/root/html/pages/new/confirm.tt
blob: 2dde830021ff5134c59f2cb1b093726d73676c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>