28 lines
851 B
HTML
28 lines
851 B
HTML
{% extends "master.html" %}
|
|
{% from "_formhelpers.html" import render_field, render_switch %}
|
|
|
|
{% block title %}New Host Category{% 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 category</h6>
|
|
</div>
|
|
<div class="card-body">
|
|
<p>
|
|
Hosts carry categories of software. Example Rocky categories include
|
|
Rocky, Rocky SIGs, and Rocky Vault.
|
|
</p>
|
|
<form action="{{ url_for('base.host_category_new', host_id=host.id) }}" method="POST">
|
|
{{ render_field(form.category_id) }}
|
|
{% if is_admin %}{{ render_switch(form.always_up2date) }}{% endif %}
|
|
<p>
|
|
<input type="submit" class="btn btn-primary" value="Create">
|
|
{{ form.csrf_token }}
|
|
</p>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|