]> git.ipfire.org Git - people/jschlag/pbs.git/blob - src/templates/mirrors/edit.html
bootstrap4: port mirror sites to bootstrap 4
[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 <div class="row">
7 <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
8 <nav aria-label="breadcrumb" role="navigation">
9 <ol class="breadcrumb">
10 <li class="breadcrumb-item"><a href="/">{{ _("Home") }}</a></li>
11 <li class="breadcrumb-item"><a href="/mirrors">{{ _("Mirrors") }}</a></li>
12 <li class="breadcrumb-item">
13 <a href="/mirror/{{ mirror.hostname }}">{{ mirror.hostname }}</a>
14 </li>
15 <li class="breadcrumb-item active">
16 <a href="/mirror/{{ mirror.hostname }}/edit">{{ _("Manage") }}</a>
17 </li>
18 </ol>
19 </nav>
20 </div>
21 </div>
22
23 <div class="row">
24 <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
25 <h2 style="word-wrap: break-word;">
26 {{ _("Manage mirror: %s") % mirror.hostname }}
27 </h2>
28 </div>
29 </div>
30
31 <div class="row">
32 <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
33 <form method="POST" action="">
34 {% raw xsrf_form_html() %}
35 <fieldset>
36 <div class="form-group">
37 <label for="name">{{ _("Hostname") }}</label>
38 <input type="text" class="form-control" id="name" name="name"
39 aria-describedby="nameHelp" value="{{ mirror.hostname }}">
40 <small id="nameHelp" class="form-text text-muted">
41 {{ _("The canonical hostname.") }}
42 </small>
43 </div>
44 <div class="form-check">
45 <label class="form-check-label">
46 <input class="form-check-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 </fieldset>
51 <fieldset>
52 <legend>{{ _("Contact information") }}</legend>
53 <div class="form-group">
54 <label for="owner">{{ _("Owner") }}</label>
55 <input type="text" class="form-control" id="owner" name="owner"
56 aria-describedby="ownerHelp" placeholder="{{ _("Owner") }}" value="{{ mirror.owner }}">
57 <small id="ownerHelp" class="form-text text-muted">
58 {{ _("The owner of the mirror server.") }}
59 </small>
60 </div>
61 <div class="form-group">
62 <label for="contact">{{ _("Contact address") }}</label>
63 <input type="text" class="form-control" id="contact" name="contact"
64 aria-describedby="contactHelp" placeholder="{{ _("Contact address") }}" value="{{ mirror.contact }}">
65 <small id="contactHelp" class="form-text text-muted">
66 {{ _("An email address to contact an administrator of the mirror.") }}
67 <br>
68 <em>{{ _("This won't be made public.") }}</em>
69 </small>
70 </div>
71
72 </fieldset>
73 <button type="submit" class="btn btn-primary">{{ _("Save changes") }}</button>
74 <a class="btn" href="/mirror/{{ mirror.hostname }}">{{ _("Cancel") }}</a>
75 </form>
76 </div>
77 </div>
78 {% end block %}