diff options
author | Jonas Kohl | 2024-12-10 17:15:10 +0100 |
---|---|---|
committer | Jonas Kohl | 2024-12-10 17:15:10 +0100 |
commit | 7d685c5e64149e20c7dc8977f645e050be53ddfd (patch) | |
tree | 44a931c23979aaa2e22b079f8af9232f490eb4d3 /src/application/templates/old/new_topic.twig | |
parent | 7c9f91333da983da37d3dc837fa61ef0bff64549 (diff) |
Add classic theme
Diffstat (limited to 'src/application/templates/old/new_topic.twig')
-rw-r--r-- | src/application/templates/old/new_topic.twig | 32 |
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 %} |