]> git.ipfire.org Git - people/jschlag/pbs.git/blob - src/templates/mirrors/edit.html
Move mirror templates into own subdirectory
[people/jschlag/pbs.git] / src / templates / mirrors / edit.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ _("Manage mirror %s") % mirror.hostname }}{% end block %}
4
5 {% block body %}
6 <ul class="breadcrumb">
7 <li>
8 <a href="/">{{ _("Home") }}</a>
9 <span class="divider">/</span>
10 </li>
11 <li>
12 <a href="/mirrors">{{ _("Mirrors") }}</a>
13 <span class="divider">/</span>
14 </li>
15 <li>
16 <a href="/mirror/{{ mirror.hostname }}">{{ mirror.hostname }}</a>
17 <span class="divider">/</span>
18 </li>
19 <li class="active">
20 <a href="/mirror/{{ mirror.hostname }}/edit">{{ _("Manage") }}</a>
21 </li>
22 </ul>
23
24 <div class="page-header">
25 <h2>{{ _("Manage mirror: %s") % mirror.hostname }}</h2>
26 </div>
27
28 <form class="form-horizontal" method="POST" action="">
29 {% raw xsrf_form_html() %}
30 <fieldset>
31 <div class="control-group">
32 <label class="control-label" for="name">{{ _("Hostname") }}</label>
33 <div class="controls">
34 <input type="text" class="input-xlarge" id="name" name="name" value="{{ mirror.hostname }}">
35
36 <p class="help-block">
37 {{ _("The canonical hostname.") }}
38 </p>
39 </div>
40 </div>
41
42 <div class="control-group">
43 <label class="control-label">{{ _("Supports HTTPS") }}</label>
44 <div class="controls">
45 <label class="checkbox">
46 <input type="checkbox" name="supports_https" {% if mirror.supports_https %}checked{% end %}>
47 {{ _("Check if this mirror server supports HTTPS.") }}
48 </label>
49 </div>
50 </div>
51 </fieldset>
52
53 <fieldset>
54 <legend>{{ _("Contact information") }}</legend>
55
56 <div class="control-group">
57 <label class="control-label" for="owner">{{ _("Owner") }}</label>
58 <div class="controls">
59 <input type="text" class="input-xlarge" id="owner" name="owner" value="{{ mirror.owner }}">
60
61 <p class="help-block">
62 {{ _("The owner of the mirror server.") }}
63 </p>
64 </div>
65 </div>
66
67 <div class="control-group">
68 <label class="control-label" for="contact">{{ _("Contact address") }}</label>
69 <div class="controls">
70 <input type="text" class="input-xlarge" id="contact" name="contact" value="{{ mirror.contact }}">
71
72 <p class="help-block">
73 {{ _("An email address to contact an administrator of the mirror.") }}
74 <br>
75 <em>{{ _("This won't be made public.") }}</em>
76 </p>
77 </div>
78 </div>
79
80 <div class="form-actions">
81 <button type="submit" class="btn btn-primary">{{ _("Save changes") }}</button>
82 <a class="btn" href="/mirror/{{ mirror.hostname }}">{{ _("Cancel") }}</a>
83 </div>
84 </fieldset>
85 </form>
86 {% end block %}