Starte Flask-Transformation

This commit is contained in:
phil 2020-09-03 12:15:26 +00:00
parent 80193feb76
commit d15403403b
6 changed files with 62 additions and 47 deletions

21
htman/templates/base.html Normal file
View file

@ -0,0 +1,21 @@
<!doctype html>
<html lang="en">
<head>
{% block head %}
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% block styles %}
<!-- Bootstrap CSS -->
{{ bootstrap.load_css() }}
{% endblock %}
<title>Wiki-Zugangsverwaltung</title>
{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
{% block scripts %}
{{ bootstrap.load_js() }}
{% endblock %}
</body>
</html>

View file

@ -1,18 +1,11 @@
<!DOCTYPE html>
<html xml:lang="de" lang="de"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:py="http://genshi.edgewall.org/">
<xi:include href="layout.html" />
{% extends "base.html" %}
<head/>
{% block content %}
<body>
<form name="show_htpasswd" action="manage" method="POST">
<label for="name">Wiki:</label>
<input type="text" size="30" name="zone" id="name" />
<input type="submit" name="submit" value="Show" />
</form>
</body>
</html>
{% endblock %}

View file

@ -3,7 +3,7 @@
xmlns:py="http://genshi.edgewall.org/" py:strip="">
<py:match path="head" once="true">
<head py:attrs="select('@*')">
# <head py:attrs="select('@*')">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>${title}</title>
<link rel="stylesheet" href="${css_url}" type="text/css" />