54 lines
2.0 KiB
HTML
54 lines
2.0 KiB
HTML
{% extends "other_base.html" %}
|
|
{% block title%}Post|COVID-19 Detector{% endblock %}
|
|
{% block content %}
|
|
<section class="page-header"></section>
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-6">
|
|
<h2 class="text-center" style="font-size: 28px; font-weight: bold;margin-top: 25px;margin-bottom: 10px;">发布讨论</h2>
|
|
<form method="POST" enctype="multipart/form-data"
|
|
action="{{ url_for('faqs.post',username=current_user.username)}}">
|
|
{{ form.hidden_tag() }}
|
|
<div class="form-group">
|
|
{{ form.title.label(class="form-control-label") }}
|
|
{{ form.title(class="form-control", style="font-weight: bold; font-size: 22px;width: 120%") }}
|
|
{% if form.title.errors %}
|
|
<ul class="errors">
|
|
{% for error in form.title.errors %}
|
|
<li>{{ error }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</div>
|
|
<div class="form-group">
|
|
{{ form.content.label(class="form-control-label") }}
|
|
{{ form.content(class="form-control", rows="10", style="font-size: 18px;width: 120%;") }}
|
|
{% if form.content.errors %}
|
|
<ul class="errors">
|
|
{% for error in form.content.errors %}
|
|
<li>{{ error }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
{{ form.images.label(class="form-control-label") }}
|
|
{{ form.images(class="form-control-file form-control-lg", multiple="multiple") }}
|
|
{% if form.images.errors %}
|
|
<ul class="errors">
|
|
{% for error in form.images.errors %}
|
|
<li>{{ error }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</div>
|
|
<div class="form-group">
|
|
<button type="submit" class="btn btn-primary btn-lg btn-block mt-4" style="font-size:18px">发布</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|