summaryrefslogtreecommitdiff
path: root/src/application/templates/old/new_topic.twig
diff options
context:
space:
mode:
authorJonas Kohl2024-12-10 17:15:10 +0100
committerJonas Kohl2024-12-10 17:15:10 +0100
commit7d685c5e64149e20c7dc8977f645e050be53ddfd (patch)
tree44a931c23979aaa2e22b079f8af9232f490eb4d3 /src/application/templates/old/new_topic.twig
parent7c9f91333da983da37d3dc837fa61ef0bff64549 (diff)
Add classic theme
Diffstat (limited to 'src/application/templates/old/new_topic.twig')
-rw-r--r--src/application/templates/old/new_topic.twig32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/application/templates/old/new_topic.twig b/src/application/templates/old/new_topic.twig
new file mode 100644
index 0000000..5063db1
--- /dev/null
+++ b/src/application/templates/old/new_topic.twig
@@ -0,0 +1,32 @@
+{% set title = __("New topic") %}
+{% set formId = "newtopic" %}
+{% set formError = getAndClearFormError(formId) %}
+
+{% extends "base.twig" %}
+
+{% block content %}
+<hr color="silver" noshade>
+
+<h1>{{ __("New topic") }}</h1>
+
+{% if formError %}
+ {% include "components/alert_error.twig" with { message: formError } %}
+{% endif %}
+<form action="{{ g.server.REQUEST_URI }}" method="post" enctype="multipart/form-data">
+ <input type="hidden" name="form_id" value="{{ formId }}">
+ <label for="i_title">{{ __("Topic title:") }}</label><br>
+ <input type="text" class="fw" id="i_title" name="title" value="{{ lastFormField(formId, "title") }}" required><br>
+ <br>
+ <label for="i_message">{{ __("Message:") }}</label><br>
+ {% include "components/post_editor.twig" with { name: "message", id: "i_message", value: lastFormField(formId, "message") } %}
+ <br>
+ <label for="i_files">{{ __("Attachments: <small>(max. %max_attachment_count% files, max. %max_attachment_size% MiB each)</small>", {
+ "max_attachment_count": constant("MAX_ATTACHMENT_COUNT"),
+ "max_attachment_size": constant("MAX_ATTACHMENT_SIZE") // (2**20),
+ }) }}</label><br>
+ <input type="file" name="files[]" id="i_files" multiple accept="*/*"><br>
+ <br>
+ <button type="submit">{{ __("Create topic") }}</button>
+</form>
+
+{% endblock %}