| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <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" style="background-color: #5468FF;">
- <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">4 Mitarbeiter involviert</div>
- </div>
- </div>
- <div class="header-actions">
- <button class="icon-button tooltip" data-tooltip="Search">
- <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">
- <circle cx="11" cy="11" r="8"></circle>
- <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
- </svg>
- </button>
- <button class="icon-button tooltip" data-tooltip="Resource Library">
- <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="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path>
- <path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>
- </svg>
- </button>
- <button class="icon-button tooltip" data-tooltip="Settings">
- <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">
- <circle cx="12" cy="12" r="3"></circle>
- <path
- d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z">
- </path>
- </svg>
- </button>
- </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-primary">
- <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 ..."
- autofocus="autofocus" />
- <button type="submit" class="btn btn-primary" aria-label="Kommentar speichern">
- <i class="icon icon-lg cil-chevron-right"></i>
- </button>
- </form>
- <div class="chat-input" style="display: none;">
- <div class="input-container">
- <div class="input-actions">
- <button class="btn input-btn" id="attachBtn" title="Attach file">
- <i class="icon icon-lg cil-paperclip"></i>
- </button>
- </div>
- <input type="text" id="messageInput" placeholder="Type a message, use # for tasks, @ for people...">
- </div>
- <button class="send-btn" id="sendBtn">
- <i class="icon icon-lg cil-chevron-right"></i>
- </button>
- <!-- File Upload Preview -->
- <div class="file-preview" id="filePreview" style="display:none;">
- <div class="file-preview-header">
- <span>File to upload</span>
- <button class="file-preview-close" onclick="closeFilePreview()">
- <i class="fas fa-times"></i>
- </button>
- </div>
- <div class="file-preview-content">
- <div class="file-preview-icon">
- <i class="fas fa-file"></i>
- </div>
- <div class="file-preview-details">
- <div class="file-preview-name">document.pdf</div>
- <div class="file-preview-size">3.2 MB</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- window.setTimeout(function() {
- const content = document.getElementById("chatContent");
- if (content) content.scrollTop = content.scrollHeight;
- }, 1000);
- </script>
|