|
@@ -1,93 +1,91 @@
|
|
|
<div class="page-header">
|
|
|
<div class="page-header-title">
|
|
|
- <h1><%- @T('Chat') %> <small></small></h1>
|
|
|
+ <h1><%- @T('Chat Widget') %></h1>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <p><%- @T('With form you can add a formular to your web page witch directly generates a Ticket for you.') %></p>
|
|
|
-
|
|
|
- <div class="js-settings"></div>
|
|
|
-
|
|
|
- <hr>
|
|
|
-
|
|
|
- <h2><%- @T('Topics') %></h2>
|
|
|
-
|
|
|
-<% if _.isEmpty(@chats): %>
|
|
|
- <p><%- @T('You have no configured chat\'s right now.') %></p>
|
|
|
-<% else: %>
|
|
|
- <table class="settings-list">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th style="white-space: nowrap;"><%- @T('Name') %></th>
|
|
|
- <th style="white-space: nowrap;"><%- @T('Note') %></th>
|
|
|
- <th style="white-space: nowrap;"><%- @T('Max Queue') %></th>
|
|
|
- <th style="white-space: nowrap;"><%- @T('Delete') %></th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
-<% for chat in @chats: %>
|
|
|
- <tr data-id="<%= chat.id %>">
|
|
|
- <td>
|
|
|
- <label class="inline-label">
|
|
|
- <a class="js-edit is-clickable"><%= chat.name %></a>
|
|
|
- </label>
|
|
|
- <td>
|
|
|
- <label class="inline-label">
|
|
|
- <%= chat.note %>
|
|
|
- </label>
|
|
|
- <td>
|
|
|
- <label class="inline-label">
|
|
|
- <%= chat.max_queue %>
|
|
|
- </label>
|
|
|
- <td>
|
|
|
- <div class="settings-list-rowControls">
|
|
|
- <div class="btn btn--text js-remove">
|
|
|
- <%- @Icon('trash') %> <%- @T('Remove') %>
|
|
|
+ <p><%- @T('You can embedd this widget into your web page to allow visitors to directly chat with you.') %></p>
|
|
|
+
|
|
|
+ <h2><%- @T('Designer') %></h2>
|
|
|
+
|
|
|
+ <div class="browser chat-demo">
|
|
|
+ <div class="browser-head">
|
|
|
+ <form class="browser-input js-testurl" novalidate>
|
|
|
+ <input type="url" class="js-testurl-input" placeholder="zammad.org">
|
|
|
+ </form>
|
|
|
+ <div class="browser-control zoom-out js-zoom-out"><%- @Icon('zoom-out') %></div>
|
|
|
+ <div class="browser-control zoom-in js-zoom-in"><%- @Icon('zoom-in') %></div>
|
|
|
+ </div>
|
|
|
+ <div class="browser-body js-demo">
|
|
|
+ <iframe class="js-iframe"></iframe>
|
|
|
+ <style>@import "/assets/chat/chat.css";</style>
|
|
|
+ <div class="chat-demo-animationHolder">
|
|
|
+ <div class="js-chat zammad-chat zammad-chat-is-visible zammad-chat-is-open" style="bottom: 0px;">
|
|
|
+ <div class="zammad-chat-header js-chat-open js-backgroundColor">
|
|
|
+ <div class="zammad-chat-header-controls">
|
|
|
+ <span class="zammad-chat-agent-status" data-status="online">Online</span>
|
|
|
+ <span class="zammad-chat-header-icon">
|
|
|
+ <svg class="zammad-chat-header-icon-open" viewBox="0 0 13 7"><path d="M10.807 7l1.4-1.428-5-4.9L6.5-.02l-.7.7-4.9 4.9 1.414 1.413L6.5 2.886 10.807 7z" fill-rule="evenodd"></path></svg>
|
|
|
+ <svg class="zammad-chat-header-icon-close js-chat-close" viewBox="0 0 13 13"><path d="m2.241.12l-2.121 2.121 4.243 4.243-4.243 4.243 2.121 2.121 4.243-4.243 4.243 4.243 2.121-2.121-4.243-4.243 4.243-4.243-2.121-2.121-4.243 4.243-4.243-4.243" fill-rule="evenodd"></path></svg>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="zammad-chat-agent">
|
|
|
+ <img class="zammad-chat-agent-avatar" src="/assets/images/chat-demo-avatar.png">
|
|
|
+ <span class="zammad-chat-agent-sentence">
|
|
|
+ <span class="zammad-chat-agent-name">John Smith</span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="zammad-chat-welcome zammad-chat-is-hidden">
|
|
|
+ <svg class="zammad-chat-icon" viewBox="0 0 24 24"><path d="M2 5C2 4 3 3 4 3h16c1 0 2 1 2 2v10C22 16 21 17 20 17H4C3 17 2 16 2 15V5zM12 17l6 4v-4h-6z" fill-rule="evenodd"></path></svg>
|
|
|
+ <span class="zammad-chat-welcome-text"><strong>Chatten</strong> sie mit uns!</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
-<% end %>
|
|
|
- <tr class="settings-list-controlRow">
|
|
|
- <td>
|
|
|
- <td>
|
|
|
- <td>
|
|
|
- <td>
|
|
|
- <div class="btn btn--text js-add">
|
|
|
- <%- @Icon('plus-small') %> <%- @T('Add') %>
|
|
|
+ <div class="zammad-chat-body">
|
|
|
+ <div class="zammad-chat-timestamp"><strong>Heute</strong> 14:45</div>
|
|
|
+ <div class="zammad-chat-message zammad-chat-message--customer">
|
|
|
+ <span class="zammad-chat-message-body js-backgroundColor">Hello! I need help with your product.</span>
|
|
|
+ </div>
|
|
|
+ <div class="zammad-chat-message zammad-chat-message--agent">
|
|
|
+ <span class="zammad-chat-message-body">Hi! Which one of our products?</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
-<% end %>
|
|
|
- <hr>
|
|
|
-
|
|
|
- <h2><%- @T('Widget Designer') %></h2>
|
|
|
+ <form class="zammad-chat-controls">
|
|
|
+ <textarea class="zammad-chat-input" rows="1" placeholder="Ihre Nachricht..."></textarea>
|
|
|
+ <button type="submit" class="zammad-chat-button zammad-chat-send js-backgroundColor">Senden</button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
<form class="js-params">
|
|
|
-
|
|
|
<fieldset>
|
|
|
- <div class="input form-group">
|
|
|
+ <div class="input form-group formGroup--halfSize">
|
|
|
<div class="formGroup-label">
|
|
|
- <label for="form-chat-title"><%- @T('Title of the Chat') %></label>
|
|
|
+ <label for="form-chat-title"><%- @T('Chat Title') %></label>
|
|
|
</div>
|
|
|
<div class="controls">
|
|
|
<input type="text" id="form-chat-title" name="title" value="<strong>Chat</strong> with us!">
|
|
|
</div>
|
|
|
+ <span class="help-block"><%- @T('Shown when the chat is closed.') %></span>
|
|
|
</div>
|
|
|
- <div class="input form-group">
|
|
|
+ <div class="input form-group formGroup--halfSize">
|
|
|
<div class="formGroup-label">
|
|
|
<label for="form-chat-background"><%- @T('Background color') %></label>
|
|
|
</div>
|
|
|
<div class="controls">
|
|
|
<input type="text" id="form-chat-background" name="background" value="">
|
|
|
</div>
|
|
|
+ <span class="help-block"><%- @T('Can be in any CSS color format.') %></span>
|
|
|
</div>
|
|
|
- <div class="input form-group">
|
|
|
+ <div class="input form-group formGroup--halfSize">
|
|
|
<div class="formGroup-label">
|
|
|
- <label for="form-chat-fontsize"><%- @T('Fontsize') %></label>
|
|
|
+ <label for="form-chat-fontsize"><%- @T('Font size') %></label>
|
|
|
</div>
|
|
|
<div class="controls">
|
|
|
<input type="text" id="form-chat-fontsize" name="fontSize" value="12px">
|
|
|
</div>
|
|
|
+ <span class="help-block"><%- @T('The default font size is 12px.') %></span>
|
|
|
</div>
|
|
|
</fieldset>
|
|
|
|
|
@@ -126,7 +124,7 @@
|
|
|
|
|
|
<p><%- @T('You need to add the following Java Script code snipped to your web page') %>:
|
|
|
|
|
|
-<pre>
|
|
|
+ <pre>
|
|
|
<script src="<%= @baseurl %>/assets/chat/chat.min.js"></script>
|
|
|
|
|
|
<script>
|
|
@@ -138,4 +136,58 @@ $(function() {
|
|
|
</script></pre>
|
|
|
</form>
|
|
|
|
|
|
+ <div class="js-settings"></div>
|
|
|
+
|
|
|
+ <hr>
|
|
|
+
|
|
|
+ <h2><%- @T('Topics') %></h2>
|
|
|
+
|
|
|
+<% if _.isEmpty(@chats): %>
|
|
|
+ <p><%- @T('You have no configured chat\'s right now.') %></p>
|
|
|
+<% else: %>
|
|
|
+ <table class="settings-list">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th style="white-space: nowrap;"><%- @T('Name') %></th>
|
|
|
+ <th style="white-space: nowrap;"><%- @T('Note') %></th>
|
|
|
+ <th style="white-space: nowrap;"><%- @T('Max Queue') %></th>
|
|
|
+ <th style="white-space: nowrap;"><%- @T('Delete') %></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+<% for chat in @chats: %>
|
|
|
+ <tr data-id="<%= chat.id %>">
|
|
|
+ <td>
|
|
|
+ <label class="inline-label">
|
|
|
+ <a class="js-edit is-clickable"><%= chat.name %></a>
|
|
|
+ </label>
|
|
|
+ <td>
|
|
|
+ <label class="inline-label">
|
|
|
+ <%= chat.note %>
|
|
|
+ </label>
|
|
|
+ <td>
|
|
|
+ <label class="inline-label">
|
|
|
+ <%= chat.max_queue %>
|
|
|
+ </label>
|
|
|
+ <td>
|
|
|
+ <div class="settings-list-rowControls">
|
|
|
+ <div class="btn btn--text js-remove">
|
|
|
+ <%- @Icon('trash') %> <%- @T('Remove') %>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+<% end %>
|
|
|
+ <tr class="settings-list-controlRow">
|
|
|
+ <td>
|
|
|
+ <td>
|
|
|
+ <td>
|
|
|
+ <td>
|
|
|
+ <div class="btn btn--text js-add">
|
|
|
+ <%- @Icon('plus-small') %> <%- @T('Add') %>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+<% end %>
|
|
|
+ <hr>
|
|
|
+
|
|
|
</div>
|