| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <div class="chat-container" id="chat"
- hx-on::after-swap="const content = this.querySelector('#chatContent'); if (content) content.scrollTop = content.scrollHeight;">
- <h2 class="gc-section-title" id="comments-title"><i class="icon cil-chat-bubble" aria-hidden="true"></i> Kommentare</h2>
- <p class="gc-section-description">{{ forderungen_details[0].Kunde_Text }} / {{ forderungen_details[0].Beleg_Nr }}</p>
- {% include 'forderungen/details/details_kommentare.html' %}
- <div class="input-area">
- <div class="toolbar">
- <form id="comment-form" method="post" action="{{ detail_post_url|default(detail_url) }}" hx-post="{{ detail_post_url|default(detail_url) }}"
- hx-target="#comments-history" hx-swap="outerHTML" hx-push-url="false"
- hx-sync="#comments-history:replace"
- hx-disabled-elt="#comments-history button" enctype="multipart/form-data" hx-encoding="multipart/form-data"
- data-max-file-size="{{ upload_max_bytes|default(50 * 1024 * 1024) }}" data-max-file-size-mb="{{ upload_max_mb|default(50) }}">
- <input type="hidden" name="_csrf" value="{{ request.state.principal.csrf }}" />
- <input type="file" name="attachments" id="comment-attachments" multiple hidden>
- <input type="hidden" name="attachment_ids" value="[]">
- <div class="gc-comment-compose">
- <button type="button" class="btn btn-outline-secondary" data-gc-attach aria-label="Dateien anhängen" title="Dateien anhängen">
- <i class="icon icon-lg cil-paperclip"></i>
- </button>
- <input type="hidden" name="source" value="comments" />
- <input type="text" class="message-input" id="comment" name="Kommentar" placeholder="Kommentieren ..."
- aria-label="Kommentar" aria-describedby="attachment-hint" />
- <button type="submit" class="btn btn-primary" disabled>Abschicken
- </button>
- </div>
- <p class="gc-upload-hint" id="attachment-hint">Dateien hier ablegen oder über die Büroklammer auswählen. Max. {{ upload_max_mb|default(50) }} MB je Datei.</p>
- <ul class="gc-upload-queue" aria-label="Ausgewählte Dateien"></ul>
- <p class="gc-upload-status" role="status" aria-live="polite"></p>
- </form>
- </div>
- </div>
- </div>
- <script>
- window.setTimeout(function() {
- const content = document.getElementById("chatContent");
- if (content) content.scrollTop = content.scrollHeight;
- }, 1000);
- </script>
|