<form method="POST" action="{{ form_action }}">
    {% csrf_token %}
    <input
        id="id_text"
        name="text"
        class="form-control form-control-lg{% if form.errors.text %} is-invalid{% endif %}"
        placeholder="Enter a post line"
        value="{{ form.text.value | default:'' }}"
        aria-describedby="id_text_feedback"
        required
    />
    {% if form.errors %}
        <div id="id_text_feedback" class="invalid-feedback">
            {{ form.errors.text.0 }}
        </div>
    {% endif %}
</form>