aif-ng_configgen/app/templates/generator.html

74 lines
2.3 KiB
HTML
Raw Normal View History

{% extends "base.html" %}{% block title %}AIF-NG Configurator | Generator{% endblock %}{% block body %}
<div class="jumbotron">
<h1>Generator</h1>
<p class="lead"><span style="color: red; ">WARNING:</span> Please note that this site may have you submit sensitive
information such as passwords, usernames, and the like.</br>
In the interests of full disclosure and respect for privacy, it is important that you know that <b>these are
entirely viewable to me, or whomever runs the instance of this website</b>.</br>
It is <b><i>highly</i></b> recommended that you generate it with dummy values for those sensitive fields
(denoted with <span style="color: blue; "><code>*sensitive</code></span>), and replace those locally in a
plaintext editor or XML editor of your choice after downloading the generated configuration file.</p>
</div>
<div class="flashes">
{% for message in get_flashed_messages() %}
<h3>{{ message }}</h3>
{% endfor %}
</div>
<ul id="top">
<li><a href="#ver">Version</a></li>
<li><a href="#disk">Disk</a></li>
<li><a href="#net">Network</a></li>
<li><a href="#sys">System</a></li>
<li><a href="#pac">Pacman</a></li>
<li><a href="#boot">Bootloader</a></li>
<li><a href="#scripts">Scripts</a></li>
</ul>
{% from "_formhelper.html" import render_field %}
<form method=post>
<!-- VERSION -->
<h2 id="ver">Version</h2>
<p>This version should match the version of AIF-NG that you are running. It must match a <a
href="https://git.square-r00t.net/AIF-NG/refs/">valid git reference</a> (tag, branch, commit, etc.) for
the
project.</p>
<p>{{ render_field(form.version) }}</p>
<a href="#top">(back to top)</a>
<!-- STORAGE -->
<h2 id="disk">Disk</h2>
<p></p>
<!-- NETWORK -->
<h2 id="net">Network</h2>
<p></p>
<!-- SYSTEM -->
<h2 id="sys">System</h2>
<p></p>
<!-- PACMAN -->
<h2 id="pac">Pacman</h2>
<p></p>
<!-- BOOTLOADER -->
<h2 id="boot">Bootloader</h2>
<p></p>
<!-- SCRIPTS -->
<h2 id="scripts">Scripts</h2>
<p></p>
<input type="submit" value="Generate"/>
</form>
{% if form.errors %}
<ul class="errors">
{%- for field_name, field_errors in form.errors|dictsort if field_errors %}
{%- for error in field_errors %}
<li>{{ form[field_name].label }}: {{ error }}</li>
{%- endfor %}
{%- endfor %}
</ul>
{% endif %}
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script src="../js/multiform.js"></script>
{% endblock %}