mirrormanager-rocky/templates/rocky/host_netblock_new.html

32 lines
1.1 KiB
HTML
Raw Normal View History

2024-08-29 23:13:29 +00:00
{% extends "master.html" %}
{% from "_formhelpers.html" import render_field %}
{% block title %}New Host netblock{% endblock %}
{%block tag %}home{% endblock %}
{% block content %}
<div class="card my-3 mx-auto col-6">
<div class="card-header">
<h6 class="mb-0">Add host netblock</h6>
</div>
<div class="card-body">
<p>
Netblocks are used to try to guide and end user to a site-specific mirror.
For example, a university might list their netblocks, and the mirrorlist
CGI would return the university-local mirror rather than a country-local
mirror. Format is one of 18.0.0.0/255.0.0.0, 18.0.0.0/8, an IPv6
prefix/length, or a DNS hostname. Values must be public IP addresses
(no RFC1918 private space addresses).
</p>
<form action="{{ url_for('base.host_netblock_new', host_id=host.id) }}" method="POST">
{{ render_field(form.netblock) }}
{{ render_field(form.name) }}
<p>
<input type="submit" class="btn btn-primary" value="Create">
{{ form.csrf_token }}
</p>
</form>
</div>
</div>
{% endblock %}