This commit is contained in:
Holger Sielaff
2024-09-10 12:32:53 +02:00
parent 1531b0f6d3
commit be447f4862
9 changed files with 179 additions and 7 deletions

View File

@@ -12,6 +12,7 @@
<i class="fa fa-search" onclick="document.getElementById('search_q_form').submit();"></i>
</span>
</div>
{# {{ form.captcha }} #}
</div>
</div>
</div>

View File

@@ -0,0 +1,50 @@
{% extends 'base.html' %}
{% block content %}
<style type="text/css" rel="stylesheet">
.form_wrapper label,
.form_wrapper legend {
display: block;
/*
float: left;
width: 25%;
*/
font-size: initial;
margin-bottom: 1em;
}
.form_wrapper textarea,
.form_wrapper input {
display: block;
/*
float: left;
width: 74%;
*/
margin-bottom: 1em;
width: 100%;
}
.form_wrapper fieldset input {
display: initial;
float: initial;
width: initial;
}
.form_wrapper fieldset {
width: 100%;
}
</style>
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
<div class="form_wrapper">
<form method="post" action="?">
{% csrf_token %}
{{ form.as_div }}
<input type="submit" value="Submit" />
</form>
</div>
{% endblock %}