| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <div class="chat-container" id="chat"
- hx-on::after-swap="const content = this.querySelector('#chatContent'); if (content) content.scrollTop = content.scrollHeight;">
- <div class="header">
- <div class="header-left">
- <div class="avatar">
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
- stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <path
- d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z">
- </path>
- </svg>
- </div>
- <div class="course-info">
- <div class="course-title">{{ forderungen_details[0].Kunde_Text }} / {{ forderungen_details[0].Beleg_Nr }}</div>
- <div class="course-participants">Kommentare zum Beleg</div>
- </div>
- </div>
- </div>
- {% include 'forderungen/details/details_kommentare.html' %}
- <div class="input-area">
- <div class="toolbar">
- <form id="comment-form" method="post" action="{{ detail_url }}" hx-post="{{ detail_url }}"
- hx-target="#comments-history" hx-swap="outerHTML" hx-push-url="false"
- hx-sync="#comments-history:replace"
- hx-disabled-elt="#comment-form input, #comment-form button, #comments-history button"
- hx-on::after-request="if (event.detail.successful) this.querySelector('[name=Kommentar]').value = ''">
- <input type="hidden" name="_csrf" value="{{ request.state.principal.csrf }}" />
- <button type="button" class="btn btn-outline-secondary" aria-label="Dateianhang (noch nicht verfügbar)" disabled>
- <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" />
- <button type="submit" class="btn btn-primary" aria-label="Kommentar speichern">
- <i class="icon icon-lg cil-chevron-right"></i>
- </button>
- </form>
- </div>
- </div>
- </div>
- <script>
- window.setTimeout(function() {
- const content = document.getElementById("chatContent");
- if (content) content.scrollTop = content.scrollHeight;
- }, 1000);
- </script>
|