Form.html gebaut, Blöcke ausgelagert

This commit is contained in:
2024-01-13 16:19:52 +01:00
parent f3202c7235
commit a1ee5f3ea0
4 changed files with 33 additions and 17 deletions

View File

@@ -1,21 +1,9 @@
<html>
<head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<title>{% block title %}{% endblock %}</title>
<head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<title>{% block title %}{% endblock %}</title>
</head>
<body>
<h1>Homepage</h1>
<input type="radio" class="btn-check" name="options-base" id="option5" autocomplete="off" checked>
<label class="btn" for="option5">Fuck yes!</label>
<input type="radio" class="btn-check" name="options-base" id="option6" autocomplete="off">
<label class="btn" for="option6">Fuck no!</label>
<input type="radio" class="btn-check" name="options-base" id="option7" autocomplete="off">
<label class="btn" for="option7">Fuck you!</label>
<button type="button" class="btn btn-primary">Submit</button>
{% block content %}{% endblock %}
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
</body>

18
templates/form.html Normal file
View File

@@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block title %}
Title: Form
{% endblock %}
{% block content %}
<input type="radio" class="btn-check" name="options-base" id="option5" autocomplete="off" checked>
<label class="btn" for="option5">Fuck yes!</label>
<input type="radio" class="btn-check" name="options-base" id="option6" autocomplete="off">
<label class="btn" for="option6">Fuck no!</label>
<input type="radio" class="btn-check" name="options-base" id="option7" autocomplete="off">
<label class="btn" for="option7">Fuck you!</label>
<button type="button" class="btn btn-primary">Submit</button>
{% endblock %}

View File

@@ -1,3 +1,9 @@
{% extends "base.html" %}
{% block title %}Homepage{% endblock %}
{% block content %}<h1>Test</h1>{% endblock %}
{% block title %}
Title: Index
{% endblock %}
{% block content %}
Content: Index
{% endblock %}