diff options
Diffstat (limited to 'root/html/includes/new')
-rw-r--r-- | root/html/includes/new/confirm.tt | 2 | ||||
-rw-r--r-- | root/html/includes/new/host_information.tt | 19 | ||||
-rw-r--r-- | root/html/includes/new/new_host.tt | 9 | ||||
-rw-r--r-- | root/html/includes/new/url_form.tt | 4 |
4 files changed, 14 insertions, 20 deletions
diff --git a/root/html/includes/new/confirm.tt b/root/html/includes/new/confirm.tt index b3eb3f3..e0bb7d4 100644 --- a/root/html/includes/new/confirm.tt +++ b/root/html/includes/new/confirm.tt @@ -1,4 +1,6 @@ <div id="foo"> +<p>Really adding [% c.session.new_uri | html %] ?</p> + [% c.prototype.form_remote_tag({ url => c.uri_for('confirm'), update => 'foo' } ) %] <input type="hidden" name="confirm" value="1"> <input type="submit"> diff --git a/root/html/includes/new/host_information.tt b/root/html/includes/new/host_information.tt deleted file mode 100644 index 78c04c2..0000000 --- a/root/html/includes/new/host_information.tt +++ /dev/null @@ -1,19 +0,0 @@ -Enter Info for [% uri.host %] - -<form action="[% c.uri_for() %]" method="POST"> -<input type="hidden" name="url" value="[% uri | html %]"> -<input type="hidden" name="hostinfo" value="1"> - -[% location.name %] / [% location.continent %]<br> - -Country: -<select name="country"> -<option value="">--</option> -[% FOREACH country = c.model('Mirrors').country_list %] -<option value="[% country.code %]" [% "selected=select" IF country.code == location.code %]>[% country.name | html %]</option> -[% END %] -</select> - -City: <input type="text" name="city"> -<input type="submit"> -</form> diff --git a/root/html/includes/new/new_host.tt b/root/html/includes/new/new_host.tt new file mode 100644 index 0000000..a4296d2 --- /dev/null +++ b/root/html/includes/new/new_host.tt @@ -0,0 +1,9 @@ +Enter Info for [% uri.host %] + +<form action="[% c.uri_for() %]" method="POST"> +<input type="hidden" name="url" value="[% uri | html %]"> +<input type="hidden" name="hostinfo" value="1"> + +[% location.name %] / [% location.continent %]<br> + +[% INCLUDE 'host_information.tt' %] diff --git a/root/html/includes/new/url_form.tt b/root/html/includes/new/url_form.tt index f8840b9..169fe73 100644 --- a/root/html/includes/new/url_form.tt +++ b/root/html/includes/new/url_form.tt @@ -1,5 +1,7 @@ <form action="[% c.uri_for() %]" method="POST"> -Enter the url to the top level mirror tree:<br> +Enter the url to the top level mirror tree, supported protocol are +[% c.model('Mirrors').protocol_list.join(', ') | html %].<br> + <input type="text" name="url" size=40 value="[% c.req.param('url') | html %]"> <input type=submit> </form> |