auto-expanding editor

This commit is contained in:
evilchili
2025-10-11 15:37:00 -07:00
parent bb3070aa1a
commit 8eb505f09e
6 changed files with 239 additions and 41 deletions
+11 -23
View File
@@ -1,36 +1,23 @@
<!DOCTYPE html>
<html>
<head>
{% block head %}
<meta charset="utf-8">
<title>{% block title %}TTFROG{% endblock %}</title>
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='site.css' ) }}">
{% block styles %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css' ) }}">
{% endblock %}
{% endblock %}
</head>
<body>
<nav>
{% for uri, name in breadcrumbs %}
<span>&nbsp; / <a href="{{ app.config.VIEW_URI }}{{ uri }}">{{ name }}</a></span>
{% endfor %}
</nav>
{% if session['user_id'] == 1 %}
Welcome, {{ user['name'] }}. [ <a href="{{ url_for('login') }}">LOGIN</a> ]
{% else %}
Welcome, <a href="{{ url_for('view', path='User/' + user['name']) }}">{{ user['name'] }}</a>.
{% endif %}
<nav>
Menu:
<ul>
{% block menu %}{% endblock %}
</ul>
</nav>
Last Edited By: {{ page.author.name }}
<br>
<form id='data_form' method='POST'>
<input type="hidden" id="data_form__id" name="uid" value="{{ page.uid }}">
<input name='title' id="data_form__title" type='text' value="{{ page.title }}">
<textarea name="body" id="data_form__body">{{ page.body }}</textarea>
</form>
<main class='page'>
{% block nav %}
{% include "nav.html" %}
{% endblock %}
<main>
{% for message in g.messages %}
<div class="alert">
{{ message }}
@@ -38,6 +25,7 @@
{% endfor %}
{% block content %}{% endblock %}
</main>
<footer>
{% block footer %}
{% endblock %}