1 {% extends
"../base.html" %}
3 {% block title %}{{ _(
"Add new mirror") }}{% end block %}
6 <ul class=
"breadcrumb">
8 <a href=
"/">{{ _(
"Home") }}
</a>
9 <span class=
"divider">/
</span>
12 <a href=
"/mirrors">{{ _(
"Mirrors") }}
</a>
13 <span class=
"divider">/
</span>
16 <a href=
"/mirror/new">{{ _(
"New mirror") }}
</a>
20 <div class=
"page-header">
21 <h2>{{ _(
"Add a new mirror") }}
</h2>
24 <form class=
"form-horizontal" method=
"POST" action=
"">
25 {% raw xsrf_form_html() %}
27 <div class=
"control-group {% if hostname_missing %}error{% end %}">
28 <label class=
"control-label" for=
"name">{{ _(
"Hostname") }}
</label>
29 <div class=
"controls">
30 <input type=
"text" class=
"input-xlarge" id=
"name" name=
"name"
31 {% if _hostname %}
value=
"{{ _hostname }}"{% end %}
>
33 <p class=
"help-block">
34 {{ _(
"Enter the canonical hostname of the mirror.") }}
39 <div class=
"control-group {% if path_invalid %}error{% end %}">
40 <label class=
"control-label" for=
"name">{{ _(
"Path") }}
</label>
41 <div class=
"controls">
42 <input type=
"text" class=
"input-xlarge" id=
"path" name=
"path"
43 {% if path %}
value=
"{{ path }}"{% end %}
>
45 <p class=
"help-block">
46 {{ _(
"The path to the files on the server.") }}
51 <div class=
"form-actions">
52 <button type=
"submit" class=
"btn btn-primary">{{ _(
"Create new mirror") }}
</button>