39 lines
1.5 KiB
HTML
39 lines
1.5 KiB
HTML
{% extends "base.html" %} {% block main_content %}
|
|
<div class="container-fluid">
|
|
<h3 class="offset-3">{{page_title}}</h3>
|
|
<div class="row">
|
|
<form action="" method="POST">
|
|
{% for field in form %}
|
|
{% if field.type == 'HiddenField' or field.type == 'CSRFTokenField' %}
|
|
{{field}}
|
|
{% elif field.type != 'SubmitField' %}
|
|
<div class="input-group">
|
|
{{ field.label( class="input-group-text col-3 justify-content-end", title=HELP[field.name] ) }}
|
|
{% if field.type == 'SelectField' %}
|
|
{{ field( class="form-select col-9" ) }}
|
|
{% else %}
|
|
{{ field( class="form-control col-9" ) }}
|
|
{% endif %}
|
|
</div class="">
|
|
{% endif %}
|
|
{% endfor %}
|
|
<div class="form-row col-12">
|
|
{{form.submit(class="btn btn-primary offset-2 col-2 mt-4" )}}
|
|
</div class="row">
|
|
</div class="form">
|
|
</div class="row">
|
|
</div class="container">
|
|
{% endblock main_content %}
|
|
{% block script_content %}
|
|
<script>
|
|
$("label").each( function() {
|
|
$(this).attr('data-bs-toggle', "tooltip")
|
|
$(this).attr('data-bs-placement', "right")
|
|
} )
|
|
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
|
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
|
|
return new bootstrap.Tooltip(tooltipTriggerEl)
|
|
})
|
|
</script>
|
|
{% endblock script_content %}
|