1
0
Fork 0
yinghong-massage.de/templates/appointment.tera.html

40 lines
1.2 KiB
HTML
Raw Normal View History

2022-10-24 23:11:48 +00:00
{% extends "base.tera.html" %}
{% block content %}
<h2 class="h1 text-center">
{{ page.title }}
</h2>
<br>
2022-10-28 22:39:28 +00:00
<div class="row pb-4">
2022-10-24 23:11:48 +00:00
<div class="col d-flex align-content-center flex-wrap" style="min-width: 300px;">
{% set dir = page.path | trim_start_matches(pat="/") %}
{% set image_path = dir ~ config.extra.appointment_image_filename %}
{% set image = resize_image(path=image_path, width=500, height=500, op="fill") %}
<img
src="{{ image.url }}"
class="rounded d-block mx-auto img-fluid"
/>
</div>
<div class="col d-flex align-content-center flex-wrap ms-5 me-5 mt-3" style="min-width: 300px;">
<div>
{{ page.content | safe }}
</div>
</div>
</div>
2022-10-28 22:39:28 +00:00
<iframe id="iframe" src="/contact-form" width="100%" title="Kontakt-Formular"></iframe>
2022-10-24 23:11:48 +00:00
{% endblock content %}
2022-10-28 22:39:28 +00:00
{% block scripts %}
<script>
let iframe = document.querySelector("#iframe");
iframe.addEventListener('load', function() {
iframe.style.height = iframe.contentDocument.body.scrollHeight + 50 + 'px';
});
</script>
{% endblock %}